Traceback (most recent call last):


 "C:\Users\meyringer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\numpy\core\function_base.py", line 117, in linspace

num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer

Traceback (most recent call last):


 "D:/FirstYearMaster/ObjectDetection/Faster RCNN/faster_rcnn/train_mobilenet.py", line 146, in <module>

main()


 "D:/FirstYearMaster/ObjectDetection/Faster RCNN/faster_rcnn/train_mobilenet.py", line 93, in main

utils.evaluate(model, val_data_set_loader, device=device)


 "E:\Anaconda\envs\PyTorch\Lib\site-packages\torch\autograd\grad_mode.py", line 15, in decorate_context

return func(*args, **kwargs)


 "D:\FirstYearMaster\ObjectDetection\Faster RCNN\faster_rcnn\train_utils\train_eval_utils.py", line 70, in evaluate

coco_evaluator = CocoEvaluator(coco, iou_types)


 "D:\FirstYearMaster\ObjectDetection\Faster RCNN\faster_rcnn\train_utils\coco_eval.py", line 28, in __init__

self.coco_eval[iou_type] = COCOeval(coco_gt, iouType=iou_type)


 "E:\Anaconda\envs\PyTorch\Lib\site-packages\pycocotools\cocoeval.py", line 76, in __init__

self.params = Params(iouType=iouType) # parameters


 "E:\Anaconda\envs\PyTorch\Lib\site-packages\pycocotools\cocoeval.py", line 527, in __init__

self.setDetParams()


 "E:\Anaconda\envs\PyTorch\Lib\site-packages\pycocotools\cocoeval.py", line 507, in setDetParams

self.iouThrs = np.linspace(.5, 0.95, np.round((0.95 - .5) / .05) + 1, endpoint=True)


 "<__array_function__ internals>", line 6, in linspace


 "E:\Anaconda\envs\PyTorch\Lib\site-packages\numpy\core\function_base.py", line 121, in linspace

.format(type(num)))
TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
