報錯資訊如下:
Traceback (most recent call last): File "demo/predict.py", line 8, in <module> from predictor import COCODemo File "/home/zhhu/wjy/mask_scoring_R-CNN/maskscoring_rcnn/demo/predictor.py", line 11, in <module> from maskrcnn_benchmark.utils import cv2_util ImportError: cannot import name 'cv2_util'
解決辦法:
去github下載maksrcnn-benchmark:https://github.com/facebookresearch/maskrcnn-benchmark,將這個util目錄下的cv2_util.py給拷貝到maskscoring_rcnn\maskrcnn_benchmark\utils下即可,

如果還報錯:
Traceback (most recent call last): File "demo/predict.py", line 8, in <module> from predictor import COCODemo File "/home/zhhu/wjy/mask_scoring_R-CNN/maskscoring_rcnn/demo/predictor.py", line 411, in <module> from maskrcnn_benchmark.structures.keypoint import PersonKeypoints ModuleNotFoundError: No module named 'maskrcnn_benchmark.structures.keypoint'
解決方法同理:

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/43614.html
標籤:其他
上一篇:sklearn機器學習 系列一 決策樹 sklearn.tree
下一篇:李宏毅老師機器學習課程筆記_ML Lecture 2: Where does the error come from?
