Traceback (most recent call last):


 "app-test.py", line 33, in setUp

db.create_all()


 "/home/skamphax0r/flaskr-tdd/env/lib/python3.5/site-packages/flask_sqlalchemy/__init__.py", line 1007, in create_all

self._execute_for_all_tables(app, bind, 'create_all')


 "/home/skamphax0r/flaskr-tdd/env/lib/python3.5/site-packages/flask_sqlalchemy/__init__.py", line 999, in _execute_for_all_tables

op(bind=self.get_engine(app, bind), **extra)


 "/home/skamphax0r/flaskr-tdd/env/lib/python3.5/site-packages/flask_sqlalchemy/__init__.py", line 941, in get_engine

return connector.get_engine()


 "/home/skamphax0r/flaskr-tdd/env/lib/python3.5/site-packages/flask_sqlalchemy/__init__.py", line 533, in get_engine

uri = self.get_uri()


 "/home/skamphax0r/flaskr-tdd/env/lib/python3.5/site-packages/flask_sqlalchemy/__init__.py", line 524, in get_uri

return self._app.config['SQLALCHEMY_DATABASE_URI']


 "/home/skamphax0r/flaskr-tdd/env/lib/python3.5/site-packages/werkzeug/local.py", line 343, in __getattr__

return getattr(self._get_current_object(), name)


 "/home/skamphax0r/flaskr-tdd/env/lib/python3.5/site-packages/werkzeug/local.py", line 302, in _get_current_object

return self.__local()


 "/home/skamphax0r/flaskr-tdd/env/lib/python3.5/site-packages/flask/globals.py", line 51, in _find_app

raise RuntimeError(_app_ctx_err_msg)
RuntimeError: Working outside of application context.

[
] 0/80, elapsed: 0s, ETA:Traceback (most recent call last):


 "./tools/train.py", line 178, in <module>

main()


 "./tools/train.py", line 167, in main

train_detector(


 "/mnt/Data/workspace/mmdetection/mmdet/apis/train.py", line 150, in train_detector

runner.run(data_loaders, cfg.workflow, cfg.total_epochs)


 "/home/lizhiyuan/anaconda3/envs/mmcv/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 125, in run

epoch_runner(data_loaders[i], **kwargs)


 "/home/lizhiyuan/anaconda3/envs/mmcv/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 54, in train

self.call_hook('after_train_epoch')


 "/home/lizhiyuan/anaconda3/envs/mmcv/lib/python3.8/site-packages/mmcv/runner/base_runner.py", line 307, in call_hook

getattr(hook, fn_name)(self)


 "/mnt/Data/workspace/mmdetection/mmdet/core/evaluation/eval_hooks.py", line 125, in after_train_epoch

results = multi_gpu_test(


 "/mnt/Data/workspace/mmdetection/mmdet/apis/test.py", line 97, in multi_gpu_test

result = model(return_loss=False, rescale=True, **data)


 "/home/lizhiyuan/anaconda3/envs/mmcv/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl

result = self.forward(*input, **kwargs)


 "/home/lizhiyuan/anaconda3/envs/mmcv/lib/python3.8/site-packages/torch/nn/parallel/distributed.py", line 606, in forward

if self.reducer._rebuild_buckets():
RuntimeError: replicas_[0].size() == rebuilt_param_indices_.size() INTERNAL ASSERT FAILED at "/opt/conda/conda-bld/pytorch_1603729062494/work/torch/csrc/distributed/c10d/reducer.cpp":1326, please report a bug to PyTorch. rebuilt parameter indices size is not same as original model parameters size.156 versus 22776
