随笔分类 -  图像超分辨率

从不同文件夹读取.png图片并保存到一个文件夹下
摘要:import os from glob import glob from PIL import Image path = './' for i in range(4): path_ = path+ str(i+1) file_list = glob(os.path.join(path_,'*.png 阅读全文

posted @ 2021-05-15 15:37 cltt 阅读(169) 评论(0) 推荐(0) 编辑

python版本图片下采样
摘要:# file_list = os.listdir(path) # # for i in range(len(file_list)): # print(file_list[i]) # name = file_list[i].split('.')[-2] # path_hr = path+'/'+fil 阅读全文

posted @ 2021-05-15 15:36 cltt 阅读(557) 评论(0) 推荐(0) 编辑

利用保存好的图片进行PSNR测试
摘要:from util_ import calc_psnr_and_ssim import torch import numpy as np from glob import glob #import glob是错的 import os from PIL import Image from torchv 阅读全文

posted @ 2021-05-15 15:33 cltt 阅读(370) 评论(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) 编辑

从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) 编辑

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) 编辑

图像数据读取
摘要:input_list = sorted([os.path.join("/root/userfolder/cl/TTSR/dataset/CUFED/train/input/input", name) for name in os.listdir("/root/userfolder/cl/TTSR/d 阅读全文

posted @ 2021-03-31 15:12 cltt 阅读(166) 评论(0) 推荐(0) 编辑

图片的读取
摘要:import torch import cv2 as cv from PIL import Image import numpy as np a = cv.imread('woman.png') print(a.shape)#[H,W,C] print(a.dtype) c = Image.open 阅读全文

posted @ 2020-11-29 11:19 cltt 阅读(112) 评论(0) 推荐(0) 编辑

Learning Parallax Attention for Stereo Image Super-Resolution
摘要:论文理解:https://blog.csdn.net/muyiyushan/article/details/89197083 https://blog.csdn.net/GracePro/article/details/100637822?utm_medium=distribute.pc_relev 阅读全文

posted @ 2020-11-05 14:50 cltt 阅读(276) 评论(0) 推荐(0) 编辑

模型训练-----数据处理
摘要:参考链接:https://blog.csdn.net/lqz790192593/article/details/89762081https://www.cnblogs.com/qyh1499816254/p/11356887.html在DataLoader 中,iter(dataloader) 返回 阅读全文

posted @ 2020-10-10 21:21 cltt 阅读(175) 评论(0) 推荐(0) 编辑

PSNR和SSIM的区别
摘要:PSNR:Peak Signal to Noise Ratio,峰值信噪比,单位是dB,数值越大表示失真越小。PSNR是最普遍和使用最为广泛的一种图像客观评价指标,然而它是基于对应像素点间的误差, 即基于误差敏感的图像质量评价。由于并未考虑到人眼的视觉特性(人眼对空间频率较低的对比差异敏感度较高,人 阅读全文

posted @ 2020-09-19 08:43 cltt 阅读(1608) 评论(0) 推荐(0) 编辑

SRFBN
摘要:转载自:https://blog.csdn.net/NCU_wander/article/details/105529494 1、** list变量前面加星号,字典变量前面加两个星号;是将其作为参量进行传递,传递进去之后仍然保持其原字典或者list的原性质;最为常见的就是argparse模块中的参数 阅读全文

posted @ 2020-09-18 14:34 cltt 阅读(281) 评论(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

导航

统计

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