解决TypeError: argument of type ‘NoneType‘ is not iterable

解决TypeError: argument of type ‘NoneType’ is not iterable

报错信息
Traceback (most recent call last):
  File "train.py", line 216, in 
    train.train()
  File "train.py", line 123, in train
    variables_to_restore = self.net.get_variables_to_restore(variables, var_keep_dic)
  File "F:\Faster-RCNN-TensorFlow-Python3\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
解决办法

在这里插入图片描述

=改成vgg16.ckpt=

欢迎大家交流学习,任何问题都可以留言

你可能感兴趣的:(日常报错,python,bug,debug,linux)