Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for PyTorch 1.8.1 (or PyTorch >= 1.7.0 in general) #39

Open
jkloe opened this issue Apr 28, 2021 · 6 comments
Open

Support for PyTorch 1.8.1 (or PyTorch >= 1.7.0 in general) #39

jkloe opened this issue Apr 28, 2021 · 6 comments

Comments

@jkloe
Copy link

jkloe commented Apr 28, 2021

When I install PyTorch 1.8.1 with CUDA 11.1 support (from https://pytorch.org/get-started/locally: pip3 install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html), I get the following error when running e.g. pylaia-htr-decode-ctc:

Traceback (most recent call last):
  File "/usr/local/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/usr/local/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 775, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (torch 1.8.1+cu111 (/usr/local/anaconda3/lib/python3.8/site-packages), Requirement.parse('torch<1.7.0,>=1.6.0'), {'nnutils-pytorch'})

Seems to be that nnutils-pytorch does not support torch > 1.7.0?

@jkloe jkloe changed the title Support for PyTorch 1.8.1 (or PyTorch > 1.7.0 in general) Support for PyTorch 1.8.1 (or PyTorch >= 1.7.0 in general) Apr 28, 2021
@jkloe
Copy link
Author

jkloe commented May 2, 2021

I have now successfully compiled nnutils-pytorch for the above configuration and all seems to work fine.

@carmocca
Copy link
Collaborator

carmocca commented May 4, 2021

Seems to be that nnutils-pytorch does not support torch > 1.7.0?

It should, it's just that there is not maintenance currently 😕

I opened jpuigcerver/nnutils#5 to update this a bit ago. Would need to come back to it and ping Joan to merge.

I have now successfully compiled nnutils-pytorch for the above configuration and all seems to work fine.

I'm glad you could work around it though

@dstoekl
Copy link

dstoekl commented May 13, 2021

installation fails on nnutils-pytorch. @jkloe how did you manage to compile it?

@jkloe
Copy link
Author

jkloe commented May 13, 2021

@dstoekl after installing the pytorch version I needed (pip3 install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html), I did a manual compilation of nnutils-pytorch - I had to change the pytorch/requirements.txt file there (removed the version restrictions of the torch library) and also pytorch/setup.py, where I changed the version number to 1.8.1 (corresponding to the version of pytorch). Then python setup.py build && python setup.py install worked for me.

@dstoekl
Copy link

dstoekl commented May 14, 2021

excellent! many thanks for your indications @jkloe

@jjsr
Copy link

jjsr commented Sep 25, 2021

HI I am still getting the error , may be i have missed something may you please explain again what we need to do to make code working I am getting nnutlis error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants