I got
File “.\load3.py”, line 3, in
model = torch.hub.load(‘.’, ‘custom’, path=path, source=‘local’)
File “C:\Users\bukob\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\hub.py”, line 404, in load
model = _load_local(repo_or_dir, model, *args, **kwargs)
File “C:\Users\bukob\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\hub.py”, line 430, in _load_local
hub_module = _import_module(MODULE_HUBCONF, hubconf_path)
File “C:\Users\bukob\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\hub.py”, line 76, in _import_module
spec.loader.exec_module(module)
File “”, line 779, in exec_module
File “”, line 915, in get_code
File “”, line 972, in get_data
FileNotFoundError: [Errno 2] No such file or directory: ‘.\hubconf.py’
hubconf.py seems to be defined in the Yolo repository of I’m not mistaken, so you might need to install the repo or make sure the scripts are oin your python path.