• shenyunhang's avatar
    Miss a 'None' in return values of create_model() in tools/train_net.py · 7d8da094
    shenyunhang authored
    Summary:
    When 'model_final.pkl' exists, the following error occurs:
    ```shell
    INFO train_net.py: 184: model_final.pkl exists; no need to train!
    Traceback (most recent call last):
      File "tools/train_net.py", line 280, in <module>
        main()
      File "tools/train_net.py", line 119, in main
        checkpoints = train_model()
      File "tools/train_net.py", line 128, in train_model
        model, weights_file, start_iter, checkpoints, output_dir = create_model()
    ValueError: need more than 4 values to unpack
    ```
    It misses a return value.
    Closes https://github.com/facebookresearch/Detectron/pull/309
    
    Reviewed By: ir413
    
    Differential Revision: D7366733
    
    Pulled By: rbgirshick
    
    fbshipit-source-id: c37b3b2e5b2aff38d46ca521a9d79613049255cb
    7d8da094
Name
Last commit
Last update
.github Loading commit data...
configs Loading commit data...
demo Loading commit data...
docker Loading commit data...
lib Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING.md Loading commit data...
FAQ.md Loading commit data...
GETTING_STARTED.md Loading commit data...
INSTALL.md Loading commit data...
LICENSE Loading commit data...
MODEL_ZOO.md Loading commit data...
NOTICE Loading commit data...
README.md Loading commit data...