Thundernet_Pytorch
Thundernet_Pytorch copied to clipboard
Train Error.
Hi, i met the error when i train my own data and the error like this:
Traceback (most recent call last):
File "trainval_net.py", line 484, in
你是改了代码吧
你好,我执行的是sh train_146.sh,发现trainval_net.py中--cfg的参数默认是cfgs/res101_ls.yml,这个在cfg下没有,我修改为cfgs/snet.yml,并且参数中resume参数默认是False的,但是我在打印这个args.resume的时候,它显示为True,不是很明白。由于没有训练好的模型,我在参数中将--r True --checkepoch 2注释掉了。
我只是修改代码换成我自己的数据集,还是VOC格式,另外将trainval_net.py中cfg_file设置为cfgs/snet.yml,resume设置为False,去掉了checkpoint,其它代码没有做相应改动。 我百度了下,说是变量名前面定义过,需要声明为global,但是明显不太对,试过也不行。。