Closed 4C4247 closed 2 weeks ago
已经把保存日志设置的很频繁了 但还是没有保存,还有就是保存模型频率的参数我没有找到,求解~
Loading model from: G:\anaconda\envs\resshift\lib\site-packages\lpips\weights\v0.1\vgg.pth Number of images in train data set: 9032 Number of images in val data set: 32 命令行显示这个是已经开始训练了吗?
是的,已经开始训练了
已经把保存日志设置的很频繁了 但还是没有保存,还有就是保存模型频率的参数我没有找到,求解~
save_freq控制模型保存频率,你可以先把batchsize和save_freq设置的更小一些,确认代码运行正常。
好的好的!谢谢你·~我再试试看QAQ
Train: 000100/113200, Loss/MSE: t(1):4.0e-01/4.0e-01, t(8):6.5e-01/6.5e-01, t(15):1.1e+00/1.1e+00, lr:5.00e-05
Traceback (most recent call last):
File "G:\Pythonprojects\ResShift-journal\main.py", line 48, in
我修改了参数为batch[32,4] iterations:113200 warmup_iterations:30 save_freq:100 log_freq:[100,1000,100] 然后练了一小会儿出现了以上报错,是因为我的输入图片是黑白图片(拓片图像)的原因吗?
不太懂怎么改 我先尝试着把in_channel改为1试了一下出现了以下错误 RuntimeError: Given groups=1, weight of size [160, 17, 3, 3], expected input[4, 6, 64, 64] to have 17 channels, but got 6 channels instead
不太懂怎么改 我先尝试着把in_channel改为1试了一下出现了以下错误 RuntimeError: Given groups=1, weight of size [160, 17, 3, 3], expected input[4, 6, 64, 64] to have 17 channels, but got 6 channels instead
不太懂怎么改 我先尝试着把in_channel改为1试了一下出现了以下错误 RuntimeError: Given groups=1, weight of size [160, 17, 3, 3], expected input[4, 6, 64, 64] to have 17 channels, but got 6 channels instead
问题解决了:
Loading model from: G:\anaconda\envs\resshift\lib\site-packages\lpips\weights\v0.1\vgg.pth Number of images in train data set: 9032 Number of images in val data set: 32 命令行显示这个是已经开始训练了吗?