2020-11-25files netG_A.pth cannot found

Train Fr using the pretrained CycleGAN

输入训练命令[
python train.py --dataroot ./datasets/dehazing --name run_fr_depth --lambda_Dehazing 10 --lambda_Dehazing_DC 1e-2 --lambda_Dehazing_TV 1e-2 --learn_residual --resize_or_crop crop --display_freq 100 --print_freq 100 --display_port 8097 --epoch_count 1 --niter 90 --niter_decay 0 --fineSize 256 --no_html --batchSize 2 --gpu_id 0 --update_ratio 1 --unlabel_decay 0.99 --save_epoch_freq 1 --model RDehazingnet --g_s2r_premodel ./checkpoints/run_cyclegan/netG_A.pth ]
后 出现文件找不到的error 目录./checkpoints/run_cyclegan/netG_A.pth下找不到netG_A.pth文件
确实也没有该文件 ./checkpoints/run_cyclegan/ 目录下只有上一轮训练得到的1_netG_A.pth等每次迭代的出来的结果 文件名前带数字 以及最后latest_netG_A.pth文件
查询代码发现没有自动生成文件的代码 是直接按地址找的
故把latest_netG_A.pth文件 更名为netG_A.pth error解除 训练进行

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值