GithubHelp home page GithubHelp logo

[BUG] ImportError: cannot import name 'text_encoder_lora_state_dict' from 'diffusers.loaders' (/usr/local/lib/python3.10/dist-packages/diffusers/loaders/__init__.py) about autotrain-advanced HOT 12 CLOSED

mahdifekih avatar mahdifekih commented on June 24, 2024 1
[BUG] ImportError: cannot import name 'text_encoder_lora_state_dict' from 'diffusers.loaders' (/usr/local/lib/python3.10/dist-packages/diffusers/loaders/__init__.py)

from autotrain-advanced.

Comments (12)

VikJoJo avatar VikJoJo commented on June 24, 2024 3

+1 the problem is relevant

from autotrain-advanced.

hqnicolas avatar hqnicolas commented on June 24, 2024 1

@mahdifekih You can make it work just edditing the Colab file:

import os
os.environ["HF_TOKEN"] = str(huggingface_token)
os.environ["NGROK_AUTH_TOKEN"]` = str(ngrok_token)
os.environ["AUTOTRAIN_LOCAL"] = "1"
!pip install -U autotrain-advanced==0.7.5 > install_logs.txt
!autotrain app --share

Where

autotrain-advanced==0.7.5

from autotrain-advanced.

alexljenkins avatar alexljenkins commented on June 24, 2024 1

I downgraded to 0.7.2 and it worked, 0.7.5 did not.
!pip install -U autotrain-advanced==0.7.2 > install_logs.txt
I also tried upgrading the python version to 3.11 and the version conflict got resolved, but still had the text_encoder_lora_state_dict import error (so didn't work).

from autotrain-advanced.

abhishekkrthakur avatar abhishekkrthakur commented on June 24, 2024 1

we updated diffusers yesterday and it could be related to that. will take a look! till then, you can downgrade autotrain

from autotrain-advanced.

abhishekkrthakur avatar abhishekkrthakur commented on June 24, 2024 1

this issue is being looked into at this moment

from autotrain-advanced.

hqnicolas avatar hqnicolas commented on June 24, 2024

+1

from autotrain-advanced.

hqnicolas avatar hqnicolas commented on June 24, 2024

Cause:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow-metadata 1.14.0 requires protobuf<4.21,>=3.20.3, but you have protobuf 4.23.4 which is incompatible.

from autotrain-advanced.

hqnicolas avatar hqnicolas commented on June 24, 2024

i'm runing by this process:
https://www.youtube.com/watch?v=0ab2uOi2-3A
0.7.5 works fine here

from autotrain-advanced.

alexljenkins avatar alexljenkins commented on June 24, 2024

it actually has been working for me when I run the pip install command twice - the first time there's a conflict and the second it runs :/

from autotrain-advanced.

mahdifekih avatar mahdifekih commented on June 24, 2024

i'm runing by this process: https://www.youtube.com/watch?v=0ab2uOi2-3A 0.7.5 works fine here

I am going by the same process as @hqnicolas and it worked for me with autotrain-advanced==0.7.5
Bless you guys I am working on my thesis

from autotrain-advanced.

mahdifekih avatar mahdifekih commented on June 24, 2024

this issue is being looked into at this moment

Glad to hear that! Keep us posted please and thanks for the good work!

from autotrain-advanced.

abhishekkrthakur avatar abhishekkrthakur commented on June 24, 2024

this is now fixed in version 0.7.11 and above. feel free to re-open if you still face any issue.

from autotrain-advanced.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.