上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: def tensor2im(image_tensor, imtype=np.uint8, normalize=True): image_numpy = image_tensor.cpu().float().detach().numpy() if normalize: image_numpy = (i 阅读全文
posted @ 2021-02-22 09:36 皮卡皮卡妞 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: 采用GAN结构: 1、<A Surface Defect Detection Method Based on Positive Samples> 思路: 训练目的:abnormal输入经过GAN结构恢复得到normal输出。 测试阶段:abnormal输入和normal输出计算LBP值,比较得到瑕疵 阅读全文
posted @ 2021-02-19 14:43 皮卡皮卡妞 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 采用Auto-encoder结构: 仅仅基于normal图像做训练。 思路重述: 训练目的:normal图像和abnormal经过Auto-encoder结构后均可以得到normal图像。 测试阶段:normal输入和normal输出的相似性较大,abnormal输入和normal输出的相似性较小。 阅读全文
posted @ 2021-02-19 13:59 皮卡皮卡妞 阅读(164) 评论(0) 推荐(0) 编辑
摘要: glass_img = cv2.imread(glass_dir + glass_img_name) test_img = cv2.imread(test_dir + test_img_name) all_w = max(test_img.shape[1], glass_img.shape[1])* 阅读全文
posted @ 2021-01-15 16:31 皮卡皮卡妞 阅读(108) 评论(0) 推荐(0) 编辑
摘要: import cv2 import os for fi in os.listdir('./CCimage/'): I=cv2.imread('./CCimage/'+fi) cv2.imwrite('./CCimage/'+fi.split('.')[0]+'.png',I) os.remove(' 阅读全文
posted @ 2021-01-11 15:58 皮卡皮卡妞 阅读(124) 评论(0) 推荐(0) 编辑
摘要: import os import shutil ''' num=0 for fi in os.listdir('./train_A/'): shutil.copy('./train_A/'+fi,'./all/'+str(num)+'_'+fi) shutil.copy('./train_B/'+' 阅读全文
posted @ 2021-01-07 15:21 皮卡皮卡妞 阅读(39) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-01-07 14:52 皮卡皮卡妞 阅读(1) 评论(0) 推荐(0) 编辑
摘要: import os import shutil num=0 for fi in os.listdir("./3/"): for fii in os.listdir("./3/"+fi): num=num+1 print(".................fi,fii",fi,fii,num) im 阅读全文
posted @ 2020-12-31 11:08 皮卡皮卡妞 阅读(109) 评论(0) 推荐(0) 编辑
摘要: static int StaticVideo_test(std::string videodir) { { VideoCapture capture; capture.open(videodir); double rate = capture.get(CAP_PROP_FPS); int delay 阅读全文
posted @ 2020-12-28 16:13 皮卡皮卡妞 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1、VS2019 2、 阅读全文
posted @ 2020-12-23 14:40 皮卡皮卡妞 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页