随笔分类 -  Inpainting Code

摘要:总共数据是202599张图片,在这里的分了训练集162770(比例0.8),验证集19867(比例0.098),测试集19962(比例0.096) 这里是采用建立连接的方式 1 rel_link = os.path.relpath(in_file, out_dir) # 得到从out_file到in 阅读全文
posted @ 2021-04-07 11:21 临近边缘 阅读(575) 评论(0) 推荐(0)
摘要:img处理 1 trainset = train_dataset.InpaintDataset(opt) 2 print('The overall number of images equals to %d' % len(trainset)) View Code 1 def __init__(sel 阅读全文
posted @ 2021-03-29 20:38 临近边缘 阅读(201) 评论(0) 推荐(0)
摘要:# random_bbox 确定mask=0的位置和大小参数:[t, l, h, w ] 1 bboxes = random_bbox(config, batch_size=ground_truth.size(0)) # 随机确定128*128的方形区域 2 def random_bbox(conf 阅读全文
posted @ 2021-03-28 19:42 临近边缘 阅读(135) 评论(0) 推荐(0)
摘要:# config 1 # data parameters 2 dataset_name: paris 3 data_with_subfolder: False # 是否有子文件夹 4 train_data_path: F:\\pycharm\\Dataset\\paris\\paris_eval_g 阅读全文
posted @ 2021-03-27 21:44 临近边缘 阅读(81) 评论(0) 推荐(0)