sigsep / open-unmix-pytorch

Open-Unmix - Music Source Separation for PyTorch
https://sigsep.github.io/open-unmix/
MIT License
1.24k stars 181 forks source link

Cannot Figure Out How to Use without CLI, Docs Do Not Help #142

Closed bgenchel closed 5 months ago

bgenchel commented 5 months ago

🐛 Bug

Not a bug, but the library just doesn't seem to be able to be used outside the CLI out of the box. I'm trying to import a separator as specified in the documentation, but if you import the class through models, then you need to specify a Model (nn.Model), which you don't have access to out of the box. Using one of the util methods, load_separator, also does not work, as it leads to a 403 Forbidden Error.

To Reproduce

Steps to reproduce the behavior:

  1. install openunmix
  2. try to import and use the Separator class
  3. try to use the utils.load_separator class with any arguments

Expected behavior

I can load a separator in code and use it to create stems programmatically without calling from the CLI or using subprocess.

Environment

Please add some information about your environment

If unsure you can paste the output from the pytorch environment collection script (or fill out the checklist below manually).

You can get that script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

Additional context

faroit commented 5 months ago

@bgenchel seems that the model checkpoint on zenodo is down

import torch
separator = torch.hub.load('sigsep/open-unmix-pytorch', 'umxhq')

produces the same error. I will investigate

faroit commented 5 months ago

fixed in newest release v1.3.0