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

Package version #6

Open
stalkerrush opened this issue Apr 18, 2023 · 8 comments
Open

Package version #6

stalkerrush opened this issue Apr 18, 2023 · 8 comments

Comments

@stalkerrush
Copy link

Hi @lukemelas, thanks for releasing your great work!

Could you please release the version of the packages you are using as well (e.g. direct export of your python environment)? I am trying out your code but there are some random issues. For example, stable_diffusion_model.text_encoder now gives a tuple of strings instead of the clip text model (looks like a version issue).

@GraystoneZ
Copy link

Having same issue. Also I had to install more packages not listed in requirements.txt like trimesh, PyMCubes.

@WenjiaR
Copy link

WenjiaR commented Apr 22, 2023

I encountered the same issue. When the code runs to sd/utils.py line 15, it raises AttributeError: 'tuple' object has no attribute 'get_input_embeddings'. When viewing the content of text_encoder, I observe a tuple of strings: ('transformers', 'CLIPTextModel'). @lukemelas

@liuxz-cs
Copy link

I encountered the same issue. When the code runs to sd/utils.py line 15, it raises AttributeError: 'tuple' object has no attribute 'get_input_embeddings'. When viewing the content of text_encoder, I observe a tuple of strings: ('transformers', 'CLIPTextModel'). @lukemelas

I also got the same issue.

@tares003
Copy link

Also have the same issue

@astroyh
Copy link

astroyh commented Apr 24, 2023

I encountered the same issue. When the code runs to sd/utils.py line 15, it raises AttributeError: 'tuple' object has no attribute 'get_input_embeddings'. When viewing the content of text_encoder, I observe a tuple of strings: ('transformers', 'CLIPTextModel'). @lukemelas

I have the same issue. @lukemelas

@tares003
Copy link

Could anyone have working version that they could share the requirements.txt?

@ManuelSerna
Copy link

I also had the same issues with having to manually install a couple of packages (trimesh and PyMCubes) but the latest versions for all packages worked for me...except for one, which leads to the attribute error @WenjiaR was talking about.

The library diffusers seems to deprecate some functionality if you install its latest version (0.15.1). Version 0.12.0 made running main.py fine for me. Run the below command and then run main.py again:

pip install diffusers==0.12.0

I'm not sure what's causing the issue between the different versions, and I'm also not sure if this version of diffusers is the one @lukemelas used.

@GraystoneZ
Copy link

diffusers==0.15.0 seems working. You cannot use diffusers==0.15.1 because of some deprecation problem. Check below PR from diffusers repo.

huggingface/diffusers#3129

As @ManuelSerna suggested, I tried diffusers==0.12.0 and it worked for main.py. But I couldn't run textual-inversion/textual_inversion.py.

# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version("0.15.0.dev0")
logger = get_logger(__name__)

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

7 participants