04 2021 档案

visio 下载安装
摘要:https://blog.csdn.net/dta0502/article/details/81981840 阅读全文

posted @ 2021-04-28 20:35 cltt 阅读(118) 评论(0) 推荐(0) 编辑

模型测试需要的时间
摘要:time_start = time.time() SR_left = net() torch.cuda.synchronize() time_end = time.time() 阅读全文

posted @ 2021-04-25 16:16 cltt 阅读(92) 评论(0) 推荐(0) 编辑

读取图片,按顺序保存到其他文件夹
摘要:import os from PIL import Image path = './hr/' cnt =1 file_list = os.listdir(path) for i in range(len(file_list)): path_l = path+file_list[i]+'/hr0.pn 阅读全文

posted @ 2021-04-25 16:04 cltt 阅读(179) 评论(0) 推荐(0) 编辑

计算模型参数量
摘要:参考: https://blog.csdn.net/weixin_43379058/article/details/108433197 tensorflow model = CPASSRnet(sess, args) num_params = 0 for variable in tf.trainab 阅读全文

posted @ 2021-04-23 18:38 cltt 阅读(275) 评论(0) 推荐(0) 编辑

linux 下一个脚本中按顺序执行多个命令
摘要:a.sh #!/bin/bashpython main.py ...... || python main.py ...... || python main.py ...... || python main.py ...... bash a.sh 即可 阅读全文

posted @ 2021-04-23 11:13 cltt 阅读(545) 评论(0) 推荐(0) 编辑

void* mkldnn::impl::memory_tracking::registry_t::get(const key_t&, void*) const: Assertion `size() == 0' failed.
摘要:问题来源:用CPU进行模型测试(测试某张图片时出现问题,改图片之前的测试是正常的) 问题环境:python 3.6.2 torch 1.3.1 CPU信息 解决办法:换用大显存的GPU测试 目前还没有其他好的解决办法,希望路过的大佬能提供帮助 阅读全文

posted @ 2021-04-21 15:05 cltt 阅读(137) 评论(0) 推荐(0) 编辑

不能装torch 1.6.0
摘要:python 3.6.2可以装torch1.6.0 python3.6.0 不行 新建虚拟环境 python==3.6.2 即可 阅读全文

posted @ 2021-04-19 10:38 cltt 阅读(639) 评论(0) 推荐(0) 编辑

tensorflow 断点续训
摘要:all_model_checkpoint_paths失去断点之前的模型路径 checkpoint 断点续训,count改变可能只从当前模型开始保存,因此all_model_checkpoint_paths失去断点之前的模型路径参考链接:https://blog.csdn.net/changefore 阅读全文

posted @ 2021-04-19 10:37 cltt 阅读(94) 评论(0) 推荐(0) 编辑

在Matlab2018b中配置MinGW-w64 C/C++ 编译器
摘要:参考:https://blog.csdn.net/fjswcjswzy/article/details/108635211 matlab2018b 编译出现问题 在(https://jmeubank.github.io/tdm-gcc/articles/2020-03/9.2.0-release)上 阅读全文

posted @ 2021-04-16 11:19 cltt 阅读(1449) 评论(0) 推荐(0) 编辑

电脑忽然黑屏
摘要:尝试关机重启 台式机 需要长按电源键 关机 10s后重启 更新系统后 如果没有网络 需要用360 ,或者其他管家软件进行网络修复 阅读全文

posted @ 2021-04-16 09:45 cltt 阅读(38) 评论(0) 推荐(0) 编辑

Linux中drwxr-xr-x.的意思和权限
摘要:drwxr-x 从左往右一次是所有者 所属组 其他用户 权限 7 = all rights6 = read and write5 = read and execute4 = read only3 = execute and write2 = write only1 = execute only0 = 阅读全文

posted @ 2021-04-12 16:40 cltt 阅读(5970) 评论(0) 推荐(0) 编辑

tensorflow 和cuda对应关系
摘要:VersionPython versionCompilerBuild tools tensorflow-1.11.0 2.7, 3.3-3.6 GCC 4.8 Bazel 0.15.0 tensorflow-1.10.0 2.7, 3.3-3.6 GCC 4.8 Bazel 0.15.0 tenso 阅读全文

posted @ 2021-04-07 20:58 cltt 阅读(3929) 评论(0) 推荐(0) 编辑

apt-get update 升级错误
摘要:W: GPG error: http://mirrors.cloud.aliyuncs.com/ubuntu xenial-backports InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed 阅读全文

posted @ 2021-04-07 20:56 cltt 阅读(574) 评论(0) 推荐(0) 编辑

修改模型参数名
摘要:import torch import torch.nn as nn import torch.nn.functional as F from torchvision import models from model import TTSR from option import args # mod 阅读全文

posted @ 2021-04-07 20:53 cltt 阅读(332) 评论(0) 推荐(0) 编辑

tensor转化为ndarray
摘要:# -*- coding: utf-8 -*- import tensorflow as tf # 创建张量 t = tf.constant([1, 2, 3, 4], tf.float32) # 创建会话 session = tf.Session() # 张量转化为ndarray array = 阅读全文

posted @ 2021-04-07 20:49 cltt 阅读(994) 评论(0) 推荐(0) 编辑

从float64到uint8的有损转换
摘要:从float64(x)范围[0,1]到uint8(y)范围[0,255]的转换 y = (x*255).astype(np.uint8)) 阅读全文

posted @ 2021-04-07 20:48 cltt 阅读(805) 评论(0) 推荐(0) 编辑

torch.load()加载模型,提示xxx.pt is a zip archive(did you mean to use torch.jit.load()?)
摘要:参考链接 https://blog.csdn.net/irober/article/details/115144522?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-0&spm=1001.2101.3001.4242 t 阅读全文

posted @ 2021-04-02 10:00 cltt 阅读(2605) 评论(0) 推荐(0) 编辑

matlab 访问某个文件夹下的所有文件
摘要:img_list =dir('./...');for i =1:length(img_list)%从1开始,左右都是闭区间 fprintf('%s \n',img_list(i).name);%img_list(i)为structend%别忘了一个for对应一个end 阅读全文

posted @ 2021-04-02 09:57 cltt 阅读(285) 评论(0) 推荐(0) 编辑

vgg等模型下载很慢
摘要:vgg等模型由于权限或网速原因无法在云服务器正常下载 可以先下载好放到本地(有时候在云服务器上没有权限下载) import torch import torch.nn as nn import torch.nn.functional as F from torchvision import mode 阅读全文

posted @ 2021-04-02 09:50 cltt 阅读(304) 评论(0) 推荐(0) 编辑

关于gan的基本介绍
摘要:https://zhuanlan.zhihu.com/p/40402713 阅读全文

posted @ 2021-04-02 09:45 cltt 阅读(66) 评论(0) 推荐(0) 编辑

matab 从多个文件夹读数据,分别计算指标
摘要:clear all; close all; clc load modelparameters.mat blocksizerow = 96; blocksizecol = 96; blockrowoverlap = 0; blockcoloverlap = 0; dataset = {'DICM',' 阅读全文

posted @ 2021-04-02 09:43 cltt 阅读(114) 评论(0) 推荐(0) 编辑

os.listdir()顺序
摘要:import os from PIL import Image path = './input' file_list = os.listdir(path) for i in range(len(file_list)): print(file_list[i]) import os from PIL i 阅读全文

posted @ 2021-04-01 15:03 cltt 阅读(615) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示