junyanz / pytorch-CycleGAN-and-pix2pix

Image-to-Image Translation in PyTorch
Other
22.93k stars 6.31k forks source link

How to see pictures in Google clab? #1017

Open YXD123450 opened 4 years ago

YXD123450 commented 4 years ago

If I want to see pictures during training ,where should I put the 'python -m visdom.server' ?

junyanz commented 4 years ago

visdom may not work in Google Colab. You can see saved results at ./checkpoints/[your_experiment_name]/web/index.html.

YXD123450 commented 4 years ago

Thanks for your answer.By the way, how could I set epochs? 200 is too much.

发自我的iPhone

------------------ Original ------------------ From: Jun-Yan Zhu <notifications@github.com> Date: 周四,5月 7,2020 3:41 上午 To: junyanz/pytorch-CycleGAN-and-pix2pix <pytorch-CycleGAN-and-pix2pix@noreply.github.com> Cc: YXD123450 <1346265656@qq.com>, Author <author@noreply.github.com> Subject: Re: [junyanz/pytorch-CycleGAN-and-pix2pix] How to see pictures in Google clab? (#1017)

visdom may not work in Google Colab. You can see saved results at ./checkpoints/[your_experiment_name]/web/index.html.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

junyanz commented 4 years ago

See the flags.

YXD123450 commented 4 years ago

If I want to set 40 epochs should I change that 100 to 20 or 40? And do I have to change the 100 on the next row?------------------ 原始邮件 ------------------ 发件人: "Jun-Yan Zhu"<notifications@github.com>; 发送时间: 2020年5月7日(星期四) 凌晨4:57 收件人: "junyanz/pytorch-CycleGAN-and-pix2pix"<pytorch-CycleGAN-and-pix2pix@noreply.github.com>; 抄送: "沉默的企鹅"<1346265656@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [junyanz/pytorch-CycleGAN-and-pix2pix] How to see pictures in Google clab? (#1017)

See the flags.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Yu700 commented 4 years ago

The checkpoints has nothing,how to do it?

YXD123450 commented 4 years ago

看你名字,像是中国人;Please translate these words if you are not Chinese. 训练那部分,的代码,就是:python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan ,这部分需要改成:!python train.py --dataroot ./datasets/horse2zebra --name horse2zebra --checkpoints_dir /content/pytorch-CycleGAN-and-pix2pix/checks --model cycle_gan 这代码里面,checkpoints_dir是为了指定文件夹,checks是我自己改的名字,这个名字可以自己定,训练过程的图片在这里

------------------ 原始邮件 ------------------ 发件人: "Yu700"<notifications@github.com>; 发送时间: 2020年5月7日(星期四) 晚上8:53 收件人: "junyanz/pytorch-CycleGAN-and-pix2pix"<pytorch-CycleGAN-and-pix2pix@noreply.github.com>; 抄送: "沉默的企鹅"<1346265656@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [junyanz/pytorch-CycleGAN-and-pix2pix] How to see pictures in Google clab? (#1017)

The checkpoints has nothing,how to do it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

junyanz commented 4 years ago

@YXD123450 You can change both lines to 20.

Yu700 commented 4 years ago

visdom可能不适用于Google Colab。您可以在查看保存的结果./checkpoints/[your_experiment_name]/web/index.html

我在pix2pix的训练部分将!python train.py --dataroot ./datasets/facades --name facades_pix2pix --model pix2pix --direction BtoA改成了!python train.py --dataroot ./datasets/facades --name facades_pix2pix --checkpoints_dir/content/pytorch-CycleGAN-and-pix2pix/checks --model pix2pix --direction BtoA ,为什么在下面报错说train.py: error: unrecognized arguments: --checkpoints_dir/content/pytorch-CycleGAN-and-pix2pix/checks

YXD123450 commented 4 years ago

谢谢!Thanks!

发自我的iPhone

------------------ Original ------------------ From: Jun-Yan Zhu <notifications@github.com> Date: 周五,5月 8,2020 1:16 上午 To: junyanz/pytorch-CycleGAN-and-pix2pix <pytorch-CycleGAN-and-pix2pix@noreply.github.com> Cc: YXD123450 <1346265656@qq.com>, Mention <mention@noreply.github.com> Subject: Re: [junyanz/pytorch-CycleGAN-and-pix2pix] How to see pictures in Google clab? (#1017)

@YXD123450 You can change both lines to 20.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

YXD123450 commented 4 years ago

I trained my pictures with out '!bash ./datasets/download_cyclegan_dataset.sh horse2zebra' and '!bash ./scripts/download_cyclegan_model.sh horse2zebra'. And then I got it.

The 'checks' is made by myself. I also created folders to upload the data and it named horse2zebra. The error occurred when I ran the test.py.

FileNotFoundError: [Errno 2] No such file or directory: './checkpoints/horse2zebra_pretrained/latest_net_G.pth'

I want to know what I need to change. By the way, could I ask you some issues by Chinese? My English is not good.

Thank you for your help.

------------------ 原始邮件 ------------------ 发件人: "Jun-Yan Zhu"<notifications@github.com>; 发送时间: 2020年5月8日(星期五) 凌晨1:16 收件人: "junyanz/pytorch-CycleGAN-and-pix2pix"<pytorch-CycleGAN-and-pix2pix@noreply.github.com>; 抄送: "沉默的企鹅"<1346265656@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [junyanz/pytorch-CycleGAN-and-pix2pix] How to see pictures in Google clab? (#1017)

@YXD123450 You can change both lines to 20.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

junyanz commented 4 years ago

Have you checked if ./checkpoints/horse2zebra_pretrained/latest_net_G.pth exist in the file system?

YXD123450 commented 4 years ago

I used '!python train.py --dataroot ./datasets/hanjie/ --name horse2zebra --checkpoints_dir /content/pytorch-CycleGAN-and-pix2pix/checks --model cycle_gan' to get documents. My papers are all in 'checks',there are no 'checkpoints' before ran test.py.

Now I get 'latest_net_G_A.path' and have changed it to 'latest_net_G.path' , but it was in 'checks' and also 'No such file or directory: './checkpoints/hanjie_pretrained/latest_net_G.pth' .  If I should change something to read papers from 'checks'?

------------------ 原始邮件 ------------------ 发件人: "Jun-Yan Zhu"<notifications@github.com>; 发送时间: 2020年5月12日(星期二) 凌晨1:08 收件人: "junyanz/pytorch-CycleGAN-and-pix2pix"<pytorch-CycleGAN-and-pix2pix@noreply.github.com>; 抄送: "沉默的企鹅"<1346265656@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [junyanz/pytorch-CycleGAN-and-pix2pix] How to see pictures in Google clab? (#1017)

Have you checked if ./checkpoints/horse2zebra_pretrained/latest_net_G.pth exist in the file system?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

YXD123450 commented 4 years ago

Thank you. I got it. But the accuracy is not good enough. What do I do if I want to improve the accuracy?

------------------ 原始邮件 ------------------ 发件人: "Jun-Yan Zhu"<notifications@github.com>; 发送时间: 2020年5月12日(星期二) 凌晨1:08 收件人: "junyanz/pytorch-CycleGAN-and-pix2pix"<pytorch-CycleGAN-and-pix2pix@noreply.github.com>; 抄送: "沉默的企鹅"<1346265656@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [junyanz/pytorch-CycleGAN-and-pix2pix] How to see pictures in Google clab? (#1017)

Have you checked if ./checkpoints/horse2zebra_pretrained/latest_net_G.pth exist in the file system?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.