modulenotfound error with yolov5 on python ide

Viewed 22

I have been using yolov5I have been trying to move the code to intelliJ( a python ide )so that i dont need to open colab everytime.When I try executing the following code,

import utils
import torch 
model = torch.hub.load('ultralytics/yolov5', 
'custom',path=r'C:\Users\lenovo\OneDrive\Desktop\best.pt') 
im = r'C:\Users\lenovo\OneDrive\Desktop\3.png'1

I get an error:

ModuleNotFoundError: No module named 'utils.dataloaders'

can anyone help with this?I tried everything I could think of, unistalled utils and reinstalled it as well but nothing seems to work

0 Answers
Related