I followed this tutorial to build ANPR with YoloV5 and EasyOCR. After I trained my model I wanted to load it using torch, using this code snippet:
import torch
yolo = torch.hub.load(
'ultralytics/yolov5',
'custom',
path='/content/yolov5/runs/train/yolov5s_results/weights/best.pt',
force_reload=True)
but I face this error:
ImportError: cannot import name 'is_jupyter' from 'utils.general' (/content/yolov5/utils/general.py)
I really appreciate any help you can provide.