MMGEN-FaceStylor icon indicating copy to clipboard operation
MMGEN-FaceStylor copied to clipboard

训练模型

Open hat-trick-msn opened this issue 2 years ago • 8 comments

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

hat-trick-msn avatar Apr 26 '22 00:04 hat-trick-msn

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

mm-assistant[bot] avatar Apr 26 '22 00:04 mm-assistant[bot]

!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

hat-trick-msn avatar Apr 26 '22 01:04 hat-trick-msn

请问 你在运行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'

Nepenthes-zlc avatar May 02 '22 11:05 Nepenthes-zlc

不是,是运行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: @.***>

hat-trick-msn avatar May 02 '22 11:05 hat-trick-msn

那请问你运行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'

Nepenthes-zlc avatar May 02 '22 11:05 Nepenthes-zlc

没有遇见过

------------------ 原始邮件 ------------------ 发件人: "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: @.***>

hat-trick-msn avatar Oct 11 '22 07:10 hat-trick-msn

那请问你运行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.

chy0315 avatar Apr 19 '23 02:04 chy0315

!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')

xuguozhi avatar May 16 '23 13:05 xuguozhi