LambdaColdStorage / lambda-deep-learning-demo

Apache License 2.0
74 stars 20 forks source link

Attempted to Train SSD from scratch on MSCOCO #4

Open chis54 opened 5 years ago

chis54 commented 5 years ago

Following the tutorial here: https://lambda-deep-learning-demo.readthedocs.io/en/latest/tutorial/ssd.html and I tried to train SSD and I get an error in the ssd_common.py script:

Traceback (most recent call last):
  File "demo/image/object_detection.py", line 134, in <module>
    main()
  File "demo/image/object_detection.py", line 108, in main
    "source.network." + modeler_config.network)
  File "/home/srdc/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "./source/network/ssd300.py", line 26, in <module>
    INPUT_DIM)
  File "./source/network/detection/ssd_common.py", line 102, in get_anchors
    for ratio in xrange(min_size_ratio, max_size_ratio + 1, step):
NameError: name 'xrange' is not defined

What should I do to get the training step complete?