pytorch-retinanet
pytorch-retinanet copied to clipboard
TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
Traceback (most recent call last):
File "train.py", line 173, in
someone said it is because the version of numpy,i tried,but it does not work
This is a problem with numpy 1.18, see here: https://github.com/xingyizhou/CenterNet/issues/547
You can either go into your coco_eval.py file in site-packages, and fix it yourself, or install the latest version on github, where this has been fixed: https://github.com/cocodataset/cocoapi/commit/6c3b394c07aed33fd83784a8bf8798059a1e9ae4