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

朱雀 2022-12-30 07:49 367阅读 0赞

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

报错信息

  1. Traceback (most recent call last):
  2. File "train.py", line 216, in <module>
  3. train.train()
  4. File "train.py", line 123, in train
  5. variables_to_restore = self.net.get_variables_to_restore(variables, var_keep_dic)
  6. File "F:\Faster-RCNN-TensorFlow-Python3\lib\nets\vgg16.py", line 66, in get_variables_to_restore
  7. if v.name.split(':')[0] in var_keep_dic:
  8. TypeError: argument of type 'NoneType' is not iterable

解决办法

在这里插入图片描述

=改成vgg16.ckpt=

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

发表评论

表情:
评论列表 (有 0 条评论,367人围观)

还没有评论,来说两句吧...

相关阅读