theAIGuysCode / yolov3_deepsort

Object tracking implemented with YOLOv3, Deep Sort and Tensorflow.
GNU General Public License v3.0
337 stars 182 forks source link

Error while executing load_weights.py #46

Open Sarjhana opened 3 years ago

Sarjhana commented 3 years ago

Traceback (most recent call last): File "load_weights.py", line 4, in from yolov3_tf2.models import YoloV3, YoloV3Tiny File "/Users/sarjhana/Downloads/yolov3_deepsort-master/yolov3_tf2/models.py", line 4, in import tensorflow as tf File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/tensorflow/init.py", line 98, in from tensorflow_core import File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/tensorflow_core/init.py", line 40, in from tensorflow.python.tools import module_util as _module_util File "", line 983, in _find_and_load File "", line 959, in _find_and_load_unlocked File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/tensorflow/init.py", line 50, in getattr module = self._load() File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/tensorflow/init.py", line 44, in _load module = _importlib.import_module(self.name) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/tensorflow_core/python/init.py", line 52, in from tensorflow.core.framework.graph_pb2 import File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/tensorflow_core/core/framework/graph_pb2.py", line 7, in from google.protobuf import descriptor as _descriptor File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/google/protobuf/init.py", line 37, in import('pkg_resources').declare_namespace(name) File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/pkg_resources/init.py", line 83, in import('pkg_resources.extern.packaging.requirements') File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 9, in from pkg_resources.extern.pyparsing import stringStart, stringEnd, originalTextFor, ParseException File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 668, in _load_unlocked File "", line 638, in _load_backward_compatible File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/pkg_resources/extern/init.py", line 43, in load_module import(extant) File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 4756, in _escapedPunc = Word( _bslash, r"[]-*.$+^?()~ ", exact=2 ).setParseAction(lambda s,l,t:t[0][1]) File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1284, in setParseAction self.parseAction = list(map(_trim_arity, list(fns))) File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1066, in _trim_arity this_line = extract_stack(limit=2)[-1] File "/Users/sarjhana/dlenv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py", line 1050, in extract_stack frame_summary = traceback.extract_stack(limit=-offset+limit-1)[offset] File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/traceback.py", line 211, in extract_stack stack = StackSummary.extract(walk_stack(f), limit=limit) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/traceback.py", line 363, in extract f.line File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/traceback.py", line 285, in line self._line = linecache.getline(self.filename, self.lineno).strip() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/linecache.py", line 16, in getline lines = getlines(filename, module_globals) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/linecache.py", line 48, in getlines for mod in sys.modules.values(): RuntimeError: dictionary changed size during iteration