dBeker / Faster-RCNN-TensorFlow-Python3

Tensorflow Faster R-CNN for Windows/Linux and Python 3 (3.5/3.6/3.7)
MIT License
613 stars 329 forks source link

if v.name.split(':')[0] in var_keep_dic: TypeError: argument of type 'NoneType' is not iterable #116

Open hongyanghu opened 5 years ago

hongyanghu commented 5 years ago

Traceback (most recent call last): File "C:/Users/huhongyang/Desktop/Faster-RCNN-TensorFlow-Python3-master/train.py", line 216, in train.train() File "C:/Users/huhongyang/Desktop/Faster-RCNN-TensorFlow-Python3-master/train.py", line 123, in train variables_to_restore = self.net.get_variables_to_restore(variables, var_keep_dic) File "C:\Users\huhongyang\Desktop\Faster-RCNN-TensorFlow-Python3-master\lib\nets\vgg16.py", line 66, in get_variables_to_restore if v.name.split(':')[0] in var_keep_dic: TypeError: argument of type 'NoneType' is not iterable

zhangyue678 commented 5 years ago

how to do?

hongyanghu commented 5 years ago

你把预训练的vgg_16.ckpt改为vgg16.ckpt。加波好友讨论一下吧------------------ 原始邮件 ------------------ 发件人: "zhangyue"notifications@github.com 发送时间: 2019年10月27日(星期天) 下午3:42 收件人: "dBeker/Faster-RCNN-TensorFlow-Python3"Faster-RCNN-TensorFlow-Python3@noreply.github.com; 抄送: "lincuncuncaogoudan"997739480@qq.com;"Author"author@noreply.github.com; 主题: Re: [dBeker/Faster-RCNN-TensorFlow-Python3] if v.name.split(':')[0]in var_keep_dic: TypeError: argument of type 'NoneType' is not iterable (#116)

how to do?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

chanstag commented 5 years ago

For me this issue appeared because it was looking for vgg16.ckpt in /data/imagenet_weights but the file was saved as vgg_16.ckpt so I just copied it over to vgg16.ckpt.