How can I change the path to the repository folder?

How can I change the path to the repository folder?

Using cache found in C:\Users\Андрей/.cache\torch\hub\ultralytics_yolov5_master

I am using yolov5:

torch.hub.load(‘ultralytics/yolov5’, ‘custom’, path_or_model=‘last.pt’)

If you want to change the torch.hub directory, you could use torch.hub.set_dir(DIR).

1 Like