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

AttributeError: module 'openunmix' has no attribute 'Separator' #141

Closed bgenchel closed 5 months ago

bgenchel commented 5 months ago

🐛 Bug

see title, additionally, the one liner given in the README.md also results in:

>>> from openunmix import separate
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'separate' from 'openunmix' (/Users/benjamingenchel/.pyenv/versions/parts_order_3.11/lib/python3.11/site-packages/openunmix/__init__.py)

To Reproduce

Steps to reproduce the behavior:

  1. pip install openunmix
  2. in REPL or script, import openunmix
  3. attempt to use Separator as in the documentation
  4. attempt to use / run the one liner code

Expected behavior

as in the documentation, openunmix has a Separator class that can be used. Also you can import separate from openunmix as in the documentation.

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 is this related to #142?

bgenchel commented 5 months ago

it is related, I think the same issue in different contexts. Thanks for taking a look!