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

ImportError: cannot import name 'install' from 'spandrel_extra_arches' (/opt/conda/lib/python3.10/site-packages/spandrel_extra_arches/__init__.py) #299

Open
AIManifest opened this issue Jul 17, 2024 · 1 comment

Comments

@AIManifest
Copy link

AIManifest commented Jul 17, 2024

--------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[1], line 4 2 get_ipython().system('pip install -U spandrel spandrel_extra_arches') 3 from spandrel import ModelLoader ----> 4 from spandrel_extra_arches import install 5 install() 7 denoise_model = ModelLoader().load_from_file(r"/workspace/1x_ArtClarity.pth") ImportError: cannot import name 'install' from 'spandrel_extra_arches' (/opt/conda/lib/python3.10/site-packages/spandrel_extra_arches/__init__.py)

Running the following code produces the error above. Nothing major, just needs to be fixed. Thank you for this awesome repository!

from spandrel import ModelLoader
import spandrel_extra_arches

@AIManifest
Copy link
Author

Edit: 2024, July 20. Fixed this issue by manually going into spandrel_extra_arches and modifying the code downloaded from pip with the actual Github code. Furthermore, the ignore_duplicates argument in the install func is an unrecognized keyword. Fixed this by removing the argument. Hope this fixes things so it can work out of the box!

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

1 participant