Coder Social home page Coder Social logo

Comments (4)

landian60 avatar landian60 commented on May 18, 2024

I found it work that you can change the diffusers version to make sure it >=0.40.

from prompt-to-prompt.

uziel313 avatar uziel313 commented on May 18, 2024

añadir
!pip install --upgrade diffusers transformers scipy

y correrá

from prompt-to-prompt.

cinjon avatar cinjon commented on May 18, 2024

@landian60 or @uziel313, How did you get past the other errors that happen after this? In #29 , I pointed at two of them:

  1. Setting the offset in ptp_utils.py L163 doesn't work with the newest diffusers.
  2. After turning off the offset kwarg above, I get TypeError: forward() got an unexpected keyword argument 'attention_mask'.

from prompt-to-prompt.

john12458 avatar john12458 commented on May 18, 2024

Hello, I also encountered a similar problem.
The error occurs because of version inconsistencies between diffusers, transformers, and pretrained weights ("CompVis/stable-diffusion-v1-4").

Here is my solution.

diffusers==0.3.0
transformers==4.24.0

For "CompVis/stable-diffusion-v1-4", we add "revision='249dd2d739844dea6a0bc7fc27b3c1d014720b28'" for the stable version.

ldm_stable = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=MY_TOKEN, revision="249dd2d739844dea6a0bc7fc27b3c1d014720b28").to(device)

from prompt-to-prompt.

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.