Hello, I am working on a Yolov5 Object Detection. I have already finetuned the pretrained model with my own custom dataset. My problem is that whenever I run the my custom model I got the [Errno 13] Permission denied. I already tested it with the detect.py from cloned Yolov5 repository.
Here is the code where the Error is occurring
device = 'cpu'
print(f"Using device: {device}")
# Load model
model = torch.hub.load(
'Data Cleaning Training/yolov5',
'custom',
path='trainedyolomodel/best.pt',
source='local',
force_reload=True
).to(device)