Skip to content

Commit ff69ded

Browse files
committed
Update test.py
1 parent 17ff972 commit ff69ded

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.html linguist-language=py
2+
*.md linguist-language=py
3+
*.ipynb linguist-language=py

One Day One GAN/day13/cyclegan/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Hi ,my name is Chen Yang ,I am a sophomore in ocean university of China .I do so
1414

1515
大名鼎鼎的 cycleGAN 就不用我多介绍了吧,那个大家每一次一讲到深度学习,总有人会放出来的那张图片,马变斑马的那个,就是出自于大名鼎鼎的 cycleGAN 了
1616

17-
![horse2zebra](./cyclegan/horse2zebra.gif)
17+
![horse2zebra](./horse2zebra.gif)
1818

1919
![68747470733a2f2f6a756e79616e7a2e6769746875622e696f2f4379636c6547414e2f696d616765732f7465617365725f686967685f7265732e6a7067](https://ws2.sinaimg.cn/large/006tNc79ly1g2n89418lmj31le0rlqi1.jpg)
2020

One Day One GAN/day13/cyclegan/test.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
# Upsample image
4949
with torch.no_grad():
5050
sr_image = generator(image_tensor).cpu()
51-
5251
# Save image
5352
fn = image_path.split("/")[-1]
5453
img_grid = torch.cat((image_tensor.cpu(),sr_image), 3)
55-
save_image(img_grid, f"images/outputs/sr-{opt.checkpoint_model[-5]}-{fn[:-4]}.tif",nrow=1,normalize=True)
54+
save_image(img_grid, f"images/outputs/{fn}",nrow=1,normalize=True)

0 commit comments

Comments
 (0)