Traceback (most recent call last):


 "/Users/glennjocher/opt/anaconda3/envs/env1/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)


 "<ipython-input-5-be04c762b799>", line 5, in <module>

c = a / 0
RuntimeError: ZeroDivisionError

Traceback (most recent call last):


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

main()


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

logger=logger)


 "/home/lab404/mmdetection/mmdet/apis/train.py", line 60, in train_detector

_non_dist_train(model, dataset, cfg, validate=validate)


 "/home/lab404/mmdetection/mmdet/apis/train.py", line 221, in _non_dist_train

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


 "/home/lab404/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/runner.py", line 358, in run

epoch_runner(data_loaders[i], **kwargs)


 "/home/lab404/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/runner.py", line 264, in train

self.model, data_batch, train_mode=True, **kwargs)


 "/home/lab404/mmdetection/mmdet/apis/train.py", line 38, in batch_processor

losses = model(**data)


 "/home/lab404/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__

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


 "/home/lab404/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 150, in forward

return self.module(*inputs[0], **kwargs[0])


 "/home/lab404/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__

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


 "/home/lab404/mmdetection/mmdet/core/fp16/decorators.py", line 49, in new_func

return old_func(*args, **kwargs)


 "/home/lab404/mmdetection/mmdet/models/detectors/base.py", line 86, in forward

return self.forward_train(img, img_meta, **kwargs)


 "/home/lab404/mmdetection/mmdet/models/detectors/two_stage.py", line 183, in forward_train

*bbox_targets)


 "/home/lab404/mmdetection/mmdet/core/fp16/decorators.py", line 127, in new_func

return old_func(*args, **kwargs)


 "/home/lab404/mmdetection/mmdet/models/bbox_heads/bbox_head.py", line 123, in loss

4)[pos_inds, labels[pos_inds]]
RuntimeError: copy_if failed to synchronize: device-side assert triggered
