Skip to content

Commit

Permalink
fixing CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adefossez committed Jul 19, 2022
1 parent 2c81915 commit 9ac99e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get install -y libsndfile1
python3 -m venv env
. env/bin/activate
python -m pip install --upgrade pip
Expand Down
3 changes: 2 additions & 1 deletion demucs/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def get_model(self, sig: str) -> Model:
url = self._models[sig]
except KeyError:
raise ModelLoadingError(f'Could not find a pre-trained model with signature {sig}.')
pkg = torch.hub.load_state_dict_from_url(url, map_location='cpu', check_hash=True)
pkg = torch.hub.load_state_dict_from_url(
url, map_location='cpu', check_hash=True) # type: ignore
return load_model(pkg)


Expand Down

0 comments on commit 9ac99e5

Please sign in to comment.