资讯动态

【深度学习】Paper reading: SinGAN(ICCV 2019)

发布时间:2026/10/23 4:02:27 来源:尧图企业网站定制
Paper还在读先挖个坑代码正在训练中。。。运行问题LZ自己下载了一张Ruby的图片按照官网的Train部分结果报错缺少模块。。。ModuleNotFoundError: No module named skimage安装对应模块//更新下conda conda update -n base -c defaults conda conda install scikit-image1.开始训练重新运行代码python main_train.py --input_name Ruby.jpg正式开始训练了训练模型时LZ的gpu使用情况后面会增加。。。同时跑两个程序也太难为LZ的小笔记本了利用率直接飙到100%未完待续。。。等训练出结果了在继续更新LZ发现的下载ruby的尺寸为3543x4961结果速度很慢并且很吃现存好吧只好先换成官方代码中的trees3,也是秋天到了嘛。这张图的尺寸为250x167,训练大概一上午可能LZ笔记本比较渣渣。。。2. Random samples运行下面代码这个根据自己的实际情况修改下文件名就行python random_samples.py --input_name training_image_file_name --mode random_samples --gen_start_scale generation start scale number运行代码进行Random Samples,起始的Scale为0然后生成了50幅图片放其中几张挑选了几张差异比较大的但是基本上没有很明显的很假的痕迹。3.Animation from a single imagepython animation.py --input_name input_file_name然后又开始新一轮的训练但是速度快多了狂风来一番。。。4. Harmonizationpython harmonization.py --input_name training_image_file_name --ref_name naively_pasted_reference_image_file_name --harmonization_start_scale scale to inject结果呢scale 1scale 35. Editingpython editing.py --input_name training_image_file_name --ref_name edited_image_file_name --editing_start_scale scale to inject原来的图是出来的结果是还有一张出来的结果scale 1scale 2运行出结果了但是会报错python editing.py --input_name trees3.png --ref_name stone_edit.png --editing_start_scale 1 Random Seed: 6417 Traceback (most recent call last): File editing.py, line 63, in module out (1-mask)*realmask*out RuntimeError: The size of tensor a (168) must match the size of tensor b (167) at non-singleton dimension 2有空查下原因6. Paint to Imagepython paint2image.py --input_name training_image_file_name --ref_name paint_image_file_name --paint_start_scale scale to injectscale 1scale 2scale 37. Super Resolution// LZ默认就是python3,所以直接python就可以了 python3 SR.py --input_name LR_image_file_name然后就又开始训练了。。。这是重建的结果光从效果上看果然是相当酷炫的工作呢

读完文章,也想定制专属网站?

尧图设计师 24 小时内与您沟通定制方案

免费获取报价 →
↑