Comments (1)
I installd using conda env create -f environment.yaml conda activate ldm
The installation was successful. All the packages' ware installed. after it I started the command
python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
and got the error:
(ldm) K:\ImageAI\stable-diffusion>python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms Traceback (most recent call last): File "scripts/txt2img.py", line 21, in <module> from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker File "K:\anaconda\envs\ldm\lib\site-packages\diffusers\__init__.py", line 38, in <module> from .models import ( File "K:\anaconda\envs\ldm\lib\site-packages\diffusers\models\__init__.py", line 20, in <module> from .autoencoder_asym_kl import AsymmetricAutoencoderKL File "K:\anaconda\envs\ldm\lib\site-packages\diffusers\models\autoencoder_asym_kl.py", line 21, in <module> from .autoencoder_kl import AutoencoderKLOutput File "K:\anaconda\envs\ldm\lib\site-packages\diffusers\models\autoencoder_kl.py", line 21, in <module> from ..loaders import FromOriginalVAEMixin File "K:\anaconda\envs\ldm\lib\site-packages\diffusers\loaders.py", line 45, in <module> from transformers import CLIPTextModel, CLIPTextModelWithProjection, PreTrainedModel, PreTrainedTokenizer ImportError: cannot import name 'CLIPTextModelWithProjection' from 'transformers' (K:\anaconda\envs\ldm\lib\site-packages\transformers\__init__.py)
How to fix it?
Upgrade your transformers version
- Uninstall your old transformers version
pip uninstall transformers - And then. Upgrade transformers version to 4.32.0
pip install transformers==4.32.0 - That's it.
from stable-diffusion.
Related Issues (20)
- Is there a small model. HOT 1
- issue while running intallation
- Tutorial series for how to use Stable Diffusion both on Google Colab and on your PC with Web UI interface
- Include inpainting training script HOT 7
- where is the yaml config file for v1-5-pruned checkpoint? HOT 1
- SDXL - 43+ Stable Diffusion Tutorials, Automatic1111 Web UI and Google Colab Guides, NMKD GUI, RunPod, DreamBooth - LoRA & Textual Inversion Training, Model Injection, CivitAI & Hugging Face Custom Models, Txt2Img, Img2Img, Video To Animation, Batch Processing, AI Upscaling
- inpainting in mask area are filled with black
- How to add support for .safetensors models?
- RuntimeError: expected scalar type Half but found Float HOT 1
- ImportError: cannot import name 'SAFE_WEIGHTS_NAME' HOT 1
- Hi i am facing this issue only from today, not too sure if anyone is able to assist
- What sampler does the official Runway ML demo use?
- ? HOT 1
- Does Images generated by pre-trained model can be used for AD supported youtube video or commercially
- when I freeze some layer in UNet I saw the following error.
- about the classifier-free guidance sampling code ?
- fine tuning HOT 3
- Some Lycoris Downloaded at CivitAI doesn't work when using load_lora_weights
- scale factor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion.