tf-faster-rcnn
tf-faster-rcnn copied to clipboard
get_variables_to_restore if v.name.split(':')[0] in var_keep_dic: TypeError: argument of type 'NoneType' is not iterable
When I run "./experiments/scripts/train_faster_rcnn.sh 0 pascal_voc res50
", it occurs the error: Traceback (most recent call last):
File "./tools/trainval_net.py", line 142, in
so have u fixed it and how?
@lz2004xxw hi,have you sloved this problem?
@Amerry-c i fixed it by using the absolute model path instead of the relative one.
i meet this problem when i want to reload the pascal_voc model to finetune on my own dataset.
i failed because the code couldnt reload the weight correcttly
i just put the weight on the ./date/imagenet_weights/
rename the .cpkt file to res101.ckpt
so i think some thing must be done before reload the pretrain model by the pascal_voc including the cnn and the rnp.
There are two possibilities for error:
1.you weight name incorrectness
2.The default path is relative we can change that train_faster_rcnn.sh --weight (you path)/data/imagenet_weights/${NET}.ckpt
There are two possibilities for error: 1.you weight name incorrectness 2.The default path is relative we can change that train_faster_rcnn.sh --weight (you path)/data/imagenet_weights/${NET}.ckpt
thank you for your suggestions!
First,my weight name is 'vgg16.ckpt',but also this problem,i can not solve this problem. It cost my 3 hours to find my path name which including 'vgg16.ckpt' should be 'imagenet_weights' instead of 'imagenet_weight'.This issue told me the detail is very important,oh,my god.