open-mmlab / MMGEN-FaceStylor

Apache License 2.0
253 stars 30 forks source link

训练模型 #11

Open hat-trick-msn opened 2 years ago

hat-trick-msn commented 2 years ago

When I used the Dataset to train the new model, something went wrong

mm-assistant[bot] commented 2 years ago

Please use English or English & Chinese for issues so that we could have broader discussion.

hat-trick-msn commented 2 years ago

!bash tools/dist_train.sh configs/agilegan/agile_transfer_photo2cartoon256x256_zplus_lpips0.5_freezeD5_ada_bs4x2_lr_2e-3_1600iter.py 1 --work-dir ./work_dirs/experiments/experiments_name image

Nepenthes-zlc commented 2 years ago

请问 你在运行quick_try.py时遇见过这样的报错吗? FileNotFoundError: [Errno 2] No such file or directory: '.\work_dirs/pre-trained\agile_transfer_toonify1024x1024_zplus_lpips0.5_freezeD5_ada_bs4x2_lr_1e-4_1600iter_20211104_134449-cb6785b6.pthx4oq10rp.tmp'

hat-trick-msn commented 2 years ago

不是,是运行tools/dist_train.sh

------------------ 原始邮件 ------------------ 发件人: "open-mmlab/MMGEN-FaceStylor" @.>; 发送时间: 2022年5月2日(星期一) 晚上7:02 @.>; @.**@.>; 主题: Re: [open-mmlab/MMGEN-FaceStylor] 训练模型 (Issue #11)

请问 你在运行quick_try.py时遇见过这样的报错吗? FileNotFoundError: [Errno 2] No such file or directory: '.\work_dirs/pre-trained\agile_transfer_toonify1024x1024_zplus_lpips0.5_freezeD5_ada_bs4x2_lr_1e-4_1600iter_20211104_134449-cb6785b6.pthx4oq10rp.tmp'

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Nepenthes-zlc commented 2 years ago

那请问你运行quick_try的时候遇见过下面这个报错吗?代码直接下下来的,但运行报错说路径问题。他会在原来参数文件的路径后面加一些东西,以.tmp结尾。🙏🙏 FileNotFoundError: [Errno 2] No such file or directory: '.\work_dirs/pre-trained\agile_transfer_toonify1024x1024_zplus_lpips0.5_freezeD5_ada_bs4x2_lr_1e-4_1600iter_20211104_134449-cb6785b6.pthx4oq10rp.tmp'

hat-trick-msn commented 2 years ago

没有遇见过

------------------ 原始邮件 ------------------ 发件人: "open-mmlab/MMGEN-FaceStylor" @.>; 发送时间: 2022年5月2日(星期一) 晚上7:46 @.>; @.**@.>; 主题: Re: [open-mmlab/MMGEN-FaceStylor] 训练模型 (Issue #11)

那请问你运行quick_try的时候遇见过下面这个报错吗?代码直接下下来的,但运行报错说路径问题。他会在原来参数文件的路径后面加一些东西,以.tmp结尾。🙏🙏 FileNotFoundError: [Errno 2] No such file or directory: '.\work_dirs/pre-trained\agile_transfer_toonify1024x1024_zplus_lpips0.5_freezeD5_ada_bs4x2_lr_1e-4_1600iter_20211104_134449-cb6785b6.pthx4oq10rp.tmp'

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

chy0315 commented 1 year ago

那请问你运行quick_try的时候遇见过下面这个报错吗?代码直接下下来的,但运行报错说路径问题。他会在原来参数文件的路径后面加一些东西,以.tmp结尾。🙏🙏 FileNotFoundError: [Errno 2] No such file or directory: '.\work_dirs/pre-trained\agile_transfer_toonify1024x1024_zplus_lpips0.5_freezeD5_ada_bs4x2_lr_1e-4_1600iter_20211104_134449-cb6785b6.pthx4oq10rp.tmp'

Not sure if you can still see my reply, I had the same problem. You can solve this problem by typing "python demo/quick_try.py demo/src.png --style toonify" on the command line, or configure "demo/src.png --style toonify --save-path demo/src_output1.png" in Edit Configurations of pycharm,and then run him directly.

xuguozhi commented 1 year ago

!bash tools/dist_train.sh configs/agilegan/agile_transfer_photo2cartoon256x256_zplus_lpips0.5_freezeD5_ada_bs4x2_lr_2e-3_1600iter.py 1 --work-dir ./work_dirs/experiments/experiments_name image

我也遇到了这个报错,你有解决了没?(I have met this error too: untimeError: module 'torch.backends.cudnn' has no attribute 'allow_tf32')