Need help with loading Adabins in Disco Diffusion - vr mode

Hello, I’m using vr mode to calculate the stereo output from Disco diffusion, but because I have a working machine without internet connection, it gives me an error with loading the library from gitbub.
(basemodel = torch.hub.load(‘rwightman/gen-efficientnet-pytorch’, basemodel_name, pretrained=True)
Could someone please help me to fix this so that I can load the library/models locally from disk? I’ve been struggling with this for a few days and I’m not a python programmer. Thank you very much for your help. I am sending the log below.

Running **AdaBins** depth estimation implementation...
Traceback (most recent call last):
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1037, in _send_output
    self.send(msg)
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 975, in send
    self.connect()
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1447, in connect
    super().connect()
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 941, in connect
    self.sock = self._create_connection(
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\socket.py", line 845, in create_connection
    raise err
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\socket.py", line 833, in create_connection
    sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond



During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\Text To Image\CLIP Guided Diffusion\disco_diffusion_v5_1.py", line 2587, in <module>
    do_run()
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\Text To Image\CLIP Guided Diffusion\disco_diffusion_v5_1.py", line 1415, in do_run
    generate_eye_views(trans_scale, batchFolder, filename, frame_num, midas_model, midas_transform)
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\Text To Image\CLIP Guided Diffusion\disco_diffusion_v5_1.py", line 1457, in generate_eye_views
    transformed_image = dxf.transform_image_3d(f'{batchFolder}/{filename}', midas_model, midas_transform, DEVICE,
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\venv\voc_base\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\Text To Image\CLIP Guided Diffusion\disco_xform_utils.py", line 34, in transform_image_3d
    infer_helper = InferenceHelper(dataset='nyu')
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\Text To Image\CLIP Guided Diffusion\./AdaBins\infer.py", line 74, in __init__
    model = UnetAdaptiveBins.build(n_bins=256, min_val=self.min_depth, max_val=self.max_depth)
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\Text To Image\CLIP Guided Diffusion\./AdaBins\models\unet_adaptive_bins.py", line 126, in build
    basemodel = **torch.hub.load('rwightman/gen-efficientnet-pytorch', basemodel_name, pretrained=True)**
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\venv\voc_base\lib\site-packages\torch\hub.py", line 539, in load
    repo_or_dir = _get_cache_or_reload(repo_or_dir, force_reload, trust_repo, "load",
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\venv\voc_base\lib\site-packages\torch\hub.py", line 180, in _get_cache_or_reload
    repo_owner, repo_name, ref = _parse_repo_info(github)
  File "c:\Users\tomas.krejzek\AppData\Roaming\Visions of Chaos\Examples\MachineLearning\venv\voc_base\lib\site-packages\torch\hub.py", line 134, in _parse_repo_info
    with urlopen(f"https://github.com/{repo_owner}/{repo_name}/tree/main/"):
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 519, in open
    response = self._open(req, data)
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "C:\Users\tomas.krejzek\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>