jarredou / MVSEP-MDX23-Colab_v2

Colab adaptation of MVSep Model for MDX23 music separation contest
259 stars 44 forks source link

Traceback errors #13

Closed virtualcrane closed 7 months ago

virtualcrane commented 7 months ago

I've used this colab for months now and it has always worked without any problems until now

I just got this error:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 537, in _make_request response = conn.getresponse() File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 461, in getresponse httplib_response = super().getresponse() File "/usr/lib/python3.10/http/client.py", line 1375, in getresponse response.begin() File "/usr/lib/python3.10/http/client.py", line 318, in begin version, status, reason = self._read_status() File "/usr/lib/python3.10/http/client.py", line 279, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.10/socket.py", line 705, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.10/ssl.py", line 1303, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.10/ssl.py", line 1159, in read return self._sslobj.read(len, buffer) TimeoutError: The read operation timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 845, in urlopen retries = retries.increment( File "/usr/local/lib/python3.10/dist-packages/urllib3/util/retry.py", line 470, in increment raise reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.10/dist-packages/urllib3/util/util.py", line 39, in reraise raise value File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 791, in urlopen response = self._make_request( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 539, in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 371, in _raise_timeout raise ReadTimeoutError( urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1238, in hf_hub_download metadata = get_hf_file_metadata( File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(args, kwargs) File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1631, in get_hf_file_metadata r = _request_wrapper( File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 385, in _request_wrapper response = _request_wrapper( File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 408, in _request_wrapper response = get_session().request(method=method, url=url, params) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 67, in send return super().send(request, args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 532, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: 0063d7df-9071-450a-b915-46992e4e873d)')

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/content/MVSEP-MDX23-Colab_v2/inference.py", line 816, in predict_with_model(options) File "/content/MVSEP-MDX23-Colab_v2/inference.py", line 707, in predict_with_model model = EnsembleDemucsMDXMusicSeparationModel(options) File "/content/MVSEP-MDX23-Colab_v2/inference.py", line 443, in init self.model_vl = Segm_Models_Net(config_vl) File "/content/MVSEP-MDX23-Colab_v2/modules/segm_models.py", line 89, in init self.unet_model = smp.Unet( File "/usr/local/lib/python3.10/dist-packages/segmentation_models_pytorch/decoders/unet/model.py", line 71, in init self.encoder = get_encoder( File "/usr/local/lib/python3.10/dist-packages/segmentation_models_pytorch/encoders/init.py", line 55, in get_encoder encoder = TimmUniversalEncoder( File "/usr/local/lib/python3.10/dist-packages/segmentation_models_pytorch/encoders/timm_universal.py", line 20, in init self.model = timm.create_model(name, kwargs) File "/usr/local/lib/python3.10/dist-packages/timm/models/_factory.py", line 114, in create_model model = create_fn( File "/usr/local/lib/python3.10/dist-packages/timm/models/maxxvit.py", line 2307, in maxvit_large_tf_512 return _create_maxxvit('maxvit_large_tf_512', 'maxvit_large_tf', pretrained=pretrained, kwargs) File "/usr/local/lib/python3.10/dist-packages/timm/models/maxxvit.py", line 1807, in _create_maxxvit return build_model_with_cfg( File "/usr/local/lib/python3.10/dist-packages/timm/models/_builder.py", line 393, in build_model_with_cfg load_pretrained( File "/usr/local/lib/python3.10/dist-packages/timm/models/_builder.py", line 186, in load_pretrained state_dict = load_state_dict_from_hf(pretrained_loc) File "/usr/local/lib/python3.10/dist-packages/timm/models/_hub.py", line 188, in load_state_dict_from_hf cached_file = hf_hub_download(hf_model_id, filename=filename, revision=hf_revision) File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1371, in hf_hub_download raise LocalEntryNotFoundError( huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

Any help would be appreciated.

deton24 commented 7 months ago

jarredou wrote that it's due to Huggingface outage. Vitlarge rely on their repo here.

If that file is inaccessible, it won't work till the problem will be fixed. It already works for some users, but not everyone. If this link is inaccessible, the Colab will not work: https://huggingface.co/timm/maxvit_large_tf_512.in1k/resolve/main/pytorch_model.bin

You should be able to use 2.1 and 2.2 versions instead. https://colab.research.google.com/github/deton24/MVSEP-MDX23-Colab_v2.1/blob/main/MVSep_MDX23_Colab.ipynb https://colab.research.google.com/github/jarredou/MVSEP-MDX23-Colab_v2/blob/v2.2/MVSep-MDX23-Colab.ipynb

niedz., 11 lut 2024, 03:14 użytkownik virtualcrane @.***> napisał:

I've used this colab for months now and it has always worked without any problems until now

I just got this error:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 537, in _make_request response = conn.getresponse() File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 461, in getresponse httplib_response = super().getresponse() File "/usr/lib/python3.10/http/client.py", line 1375, in getresponse response.begin() File "/usr/lib/python3.10/http/client.py", line 318, in begin version, status, reason = self._read_status() File "/usr/lib/python3.10/http/client.py", line 279, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.10/socket.py", line 705, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.10/ssl.py", line 1303, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.10/ssl.py", line 1159, in read return self._sslobj.read(len, buffer) TimeoutError: The read operation timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 845, in urlopen retries = retries.increment( File "/usr/local/lib/python3.10/dist-packages/urllib3/util/retry.py", line 470, in increment raise reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.10/dist-packages/urllib3/util/util.py", line 39, in reraise raise value File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 791, in urlopen response = self._make_request( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 539, in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 371, in _raise_timeout raise ReadTimeoutError( urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=' huggingface.co', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1238, in hf_hub_download metadata = get_hf_file_metadata( File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(args, kwargs) File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1631, in get_hf_file_metadata r = _request_wrapper( File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 385, in _request_wrapper response = _request_wrapper( File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 408, in _request_wrapper response = get_session().request(method=method, url=url, params) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 67, in send return super().send(request, args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 532, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: 0063d7df-9071-450a-b915-46992e4e873d)')

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/content/MVSEP-MDX23-Colab_v2/inference.py", line 816, in predict_with_model(options) File "/content/MVSEP-MDX23-Colab_v2/inference.py", line 707, in predict_with_model model = EnsembleDemucsMDXMusicSeparationModel(options) File "/content/MVSEP-MDX23-Colab_v2/inference.py", line 443, in init self.model_vl = Segm_Models_Net(config_vl) File "/content/MVSEP-MDX23-Colab_v2/modules/segm_models.py", line 89, in init self.unet_model = smp.Unet( File "/usr/local/lib/python3.10/dist-packages/segmentation_models_pytorch/decoders/unet/model.py", line 71, in init self.encoder = get_encoder( File "/usr/local/lib/python3.10/dist-packages/segmentation_models_pytorch/encoders/ init.py", line 55, in get_encoder encoder = TimmUniversalEncoder( File "/usr/local/lib/python3.10/dist-packages/segmentation_models_pytorch/encoders/timm_universal.py", line 20, in init self.model = timm.create_model(name, kwargs) File "/usr/local/lib/python3.10/dist-packages/timm/models/_factory.py", line 114, in create_model model = create_fn( File "/usr/local/lib/python3.10/dist-packages/timm/models/maxxvit.py", line 2307, in maxvit_large_tf_512 return _create_maxxvit('maxvit_large_tf_512', 'maxvit_large_tf', pretrained=pretrained, kwargs) File "/usr/local/lib/python3.10/dist-packages/timm/models/maxxvit.py", line 1807, in _create_maxxvit return build_model_with_cfg( File "/usr/local/lib/python3.10/dist-packages/timm/models/_builder.py", line 393, in build_model_with_cfg load_pretrained( File "/usr/local/lib/python3.10/dist-packages/timm/models/_builder.py", line 186, in load_pretrained state_dict = load_state_dict_from_hf(pretrained_loc) File "/usr/local/lib/python3.10/dist-packages/timm/models/_hub.py", line 188, in load_state_dict_from_hf cached_file = hf_hub_download(hf_model_id, filename=filename, revision=hf_revision) File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1371, in hf_hub_download raise LocalEntryNotFoundError( huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

Any help would be appreciated.

— Reply to this email directly, view it on GitHub https://github.com/jarredou/MVSEP-MDX23-Colab_v2/issues/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJ3EHFIEFMOREWOOO2MW2DYTASSDAVCNFSM6AAAAABDDFIYMSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZDQNZZHAZDAMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jarredou commented 7 months ago

The HuggingFace outage seems to be fixed now. Thanks @deton24 for doing my job ;)