Faster-RCNN-TensorFlow-Python3 icon indicating copy to clipboard operation
Faster-RCNN-TensorFlow-Python3 copied to clipboard

TypeError: argument of type 'NoneType' is not iterable

Open xqxqwps opened this issue 8 years ago • 3 comments

variables_to_restore = self.net.get_variables_to_restore(variables, var_keep_dic) File "D:\WorkSpace\Python\Faster-RCNN-TensorFlow-Python3.5\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

xqxqwps avatar Apr 11 '18 04:04 xqxqwps

It has been solved reason: tensorflow version problem,need to add double '\' to model-file path when save or restore model on windows

xqxqwps avatar Apr 11 '18 07:04 xqxqwps

How to modify it?

Renwanlan avatar Apr 14 '18 15:04 Renwanlan

Function "get_variables_in_checkpoint_file" in train.py replace file_name with real file path like this:"var_keep_dic = self.get_variables_in_checkpoint_file('D://Faster-RCNN-TensorFlow-Python3.5\data\imagenet_weights\vgg_16.ckpt')"

xqxqwps avatar Apr 16 '18 08:04 xqxqwps