验证模型报错
Created by: joshuazm
Traceback (most recent call last): File "/opt/anaconda3/bin/anaconda/lib/python3.7/site-packages/numpy/core/function_base.py", line 117, in linspace num = operator.index(num) TypeError: 'numpy.float64' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "tools/eval.py", line 190, in main() File "tools/eval.py", line 173, in main dataset=dataset) File "/mnt/qql/PaddleDetection/ppdet/utils/eval_utils.py", line 205, in eval_results is_bbox_normalized=is_bbox_normalized) File "/mnt/qql/PaddleDetection/ppdet/utils/coco_eval.py", line 94, in bbox_eval map_stats = cocoapi_eval(outfile, 'bbox', coco_gt=coco_gt) File "/mnt/qql/PaddleDetection/ppdet/utils/coco_eval.py", line 147, in cocoapi_eval coco_eval = COCOeval(coco_gt, coco_dt, style) File "/opt/anaconda3/bin/anaconda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 76, in init self.params = Params(iouType=iouType) # parameters File "/opt/anaconda3/bin/anaconda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 527, in init self.setDetParams() File "/opt/anaconda3/bin/anaconda/lib/python3.7/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) File "<array_function internals>", line 6, in linspace File "/opt/anaconda3/bin/anaconda/lib/python3.7/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. terminate called without an active exception W0426 15:09:00.840675 18619 init.cc:209] Warning: PaddlePaddle catches a failure signal, it may not work properly W0426 15:09:00.840696 18619 init.cc:211] You could check whether you killed PaddlePaddle thread/process accidentally or report the case to PaddlePaddle W0426 15:09:00.840706 18619 init.cc:214] The detail failure signal is:
W0426 15:09:00.840714 18619 init.cc:217] *** Aborted at 1587884940 (unix time) try "date -d @1587884940" if you are using GNU date *** W0426 15:09:00.843050 18619 init.cc:217] PC: @ 0x0 (unknown) W0426 15:09:00.843123 18619 init.cc:217] *** SIGABRT (@0x487c) received by PID 18556 (TID 0x7f06627fc700) from PID 18556; stack trace: *** W0426 15:09:00.845201 18619 init.cc:217] @ 0x7f0737c73390 (unknown) W0426 15:09:00.849298 18619 init.cc:217] @ 0x7f07378cd428 gsignal W0426 15:09:00.851326 18619 init.cc:217] @ 0x7f07378cf02a abort W0426 15:09:00.852880 18619 init.cc:217] @ 0x7f071a2903df __gnu_cxx::__verbose_terminate_handler() W0426 15:09:00.854301 18619 init.cc:217] @ 0x7f071a28eb16 __cxxabiv1::__terminate() W0426 15:09:00.855829 18619 init.cc:217] @ 0x7f071a28eb4c std::terminate() W0426 15:09:00.857275 18619 init.cc:217] @ 0x7f071a28e81e __gxx_personality_v0 W0426 15:09:00.858788 18619 init.cc:217] @ 0x7f071ae30045 _Unwind_ForcedUnwind_Phase2 W0426 15:09:00.860298 18619 init.cc:217] @ 0x7f071ae3031b _Unwind_ForcedUnwind W0426 15:09:00.862291 18619 init.cc:217] @ 0x7f0737c72070 __GI___pthread_unwind W0426 15:09:00.864257 18619 init.cc:217] @ 0x7f0737c6a845 __pthread_exit W0426 15:09:00.864611 18619 init.cc:217] @ 0x55ad511087a9 PyThread_exit_thread W0426 15:09:00.864715 18619 init.cc:217] @ 0x55ad50f8294f PyEval_RestoreThread.cold.794 W0426 15:09:00.865523 18619 init.cc:217] @ 0x7f0714c6ef03 (unknown) W0426 15:09:00.865908 18619 init.cc:217] @ 0x55ad51080f45 _PyMethodDef_RawFastCallKeywords W0426 15:09:00.866276 18619 init.cc:217] @ 0x55ad51080fc1 _PyCFunction_FastCallKeywords W0426 15:09:00.866633 18619 init.cc:217] @ 0x55ad510f63ae _PyEval_EvalFrameDefault W0426 15:09:00.866959 18619 init.cc:217] @ 0x55ad5102f528 _PyEval_EvalCodeWithName W0426 15:09:00.867296 18619 init.cc:217] @ 0x55ad510305b4 _PyFunction_FastCallDict W0426 15:09:00.867619 18619 init.cc:217] @ 0x55ad5104f703 _PyObject_Call_Prepend W0426 15:09:00.867784 18619 init.cc:217] @ 0x55ad510891fa slot_tp_call W0426 15:09:00.868113 18619 init.cc:217] @ 0x55ad5108a11b _PyObject_FastCallKeywords W0426 15:09:00.868469 18619 init.cc:217] @ 0x55ad510f5c16 _PyEval_EvalFrameDefault W0426 15:09:00.868796 18619 init.cc:217] @ 0x55ad510304eb _PyFunction_FastCallDict W0426 15:09:00.869113 18619 init.cc:217] @ 0x55ad5104f703 _PyObject_Call_Prepend W0426 15:09:00.869283 18619 init.cc:217] @ 0x55ad510891fa slot_tp_call W0426 15:09:00.869622 18619 init.cc:217] @ 0x55ad5108a11b _PyObject_FastCallKeywords W0426 15:09:00.869972 18619 init.cc:217] @ 0x55ad510f62ce _PyEval_EvalFrameDefault W0426 15:09:00.870301 18619 init.cc:217] @ 0x55ad5102f528 _PyEval_EvalCodeWithName W0426 15:09:00.870625 18619 init.cc:217] @ 0x55ad510305b4 _PyFunction_FastCallDict W0426 15:09:00.870940 18619 init.cc:217] @ 0x55ad5104f703 _PyObject_Call_Prepend W0426 15:09:00.871306 18619 init.cc:217] @ 0x55ad51041cee PyObject_Call Aborted (core dumped)