ModuleNotFoundError: No module named 'yolov7.models'
Question:
Answers:
You seem to have your yolov7 folder under another folder called BoTSORT. The way of fixing the import should be:
from BoTSORT.yolov7.models.experimental import attempt_load
You can also add the folder that you want python to look into, to the path via:
import sys
sys.path.insert(0, './yolov7')
And then python will be able to import models.
You seem to have your yolov7 folder under another folder called BoTSORT. The way of fixing the import should be:
from BoTSORT.yolov7.models.experimental import attempt_load
You can also add the folder that you want python to look into, to the path via:
import sys
sys.path.insert(0, './yolov7')
And then python will be able to import models.