1. 程式人生 > 其它 >解決TypeError: argument of type ‘NoneType‘ is not iterable

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

技術標籤:日常報錯pythonbugdebuglinux

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

報錯資訊

Traceback (most recent call last):
  File "train.py", line 216, in <module>
    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=

歡迎大家交流學習,任何問題都可以留言