Code Monkey home page Code Monkey logo

Comments (5)

benedlore avatar benedlore commented on June 30, 2024 7

What exactly is the difference between this and the Latent Diffusion here (https://github.com/CompVis/latent-diffusion) with the same readme?

from stable-diffusion.

fjenett avatar fjenett commented on June 30, 2024 5

You can easily fix this by adding the large text2img to the params:

python scripts/txt2img.py \
    --prompt "a virus monster is playing guitar, oil on canvas" \
    --config configs/latent-diffusion/txt2img-1p4B-eval.yaml \
    --ckpt models/ldm/text2img-large/model.ckpt \
    --ddim_eta 0.0 --n_samples 4 --n_iter 4 --scale 5.0  --ddim_steps 50

from stable-diffusion.

JonnoFTW avatar JonnoFTW commented on June 30, 2024 1

I also had this issue, after downgrading torchmetrics to 0.6.0 (see NVIDIA/DeepLearningExamples#1113) and applying the patch from #4

I get an ImportError:

ImportError: cannot import name 'CLIPTokenizer' from 'transformers' (unknown location)

Edit:

Upgrading transformers to 4.20.1 fixed the issue, but then there's an issue with openssl. I copied pycrypto.so and libssl.so.3 from another conda env I had but this is a bandaid fix.

from stable-diffusion.

neonsecret avatar neonsecret commented on June 30, 2024

You can easily fix this by adding the large text2img to the params:

python scripts/txt2img.py \
    --prompt "a virus monster is playing guitar, oil on canvas" \
    --config configs/latent-diffusion/txt2img-1p4B-eval.yaml \
    --ckpt models/ldm/text2img-large/model.ckpt \
    --ddim_eta 0.0 --n_samples 4 --n_iter 4 --scale 5.0  --ddim_steps 50

same issue from the box, solution worked for me

from stable-diffusion.

faraday avatar faraday commented on June 30, 2024

You can easily fix this by adding the large text2img to the params:

python scripts/txt2img.py \
    --prompt "a virus monster is playing guitar, oil on canvas" \
    --config configs/latent-diffusion/txt2img-1p4B-eval.yaml \
    --ckpt models/ldm/text2img-large/model.ckpt \
    --ddim_eta 0.0 --n_samples 4 --n_iter 4 --scale 5.0  --ddim_steps 50

This doesn't return same results though.
You'd immediately notice the quality has decreased.
I don't think it's the same model here.

from stable-diffusion.

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.