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

Neither installation works #47

Closed
AmoArt opened this issue Sep 2, 2022 · 5 comments
Closed

Neither installation works #47

AmoArt opened this issue Sep 2, 2022 · 5 comments

Comments

@AmoArt
Copy link

AmoArt commented Sep 2, 2022

Using both the automatic and manual installations are giving me error "ImportError: cannot import name 'autocast' from 'torch'".
The torch module that I have installed is '1.9.0+cu111'.

@AUTOMATIC1111
Copy link
Owner

The guide assumes you don't have torch installed. installs 1.12.1+cu113 for me.
Try pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113

@AmoArt
Copy link
Author

AmoArt commented Sep 2, 2022

I've solve it by using the miniconda command window, installing the Stable Diffusion ldo environment from environment.yaml file and using that environment to manually install this repo.

@AmoArt AmoArt closed this as completed Sep 2, 2022
@thomastraum
Copy link

@AmoArt I am having the same issue. I tried to follow your advice and installed it in side a miniconda powershell prompt with conda env create -f environment.yaml it finshed that then what do I do next? sorry super n00b here. I tried
python stable-diffusion-webui/webui.py but obvs that didnt work

@AmoArt
Copy link
Author

AmoArt commented Sep 2, 2022

@thomastraum
Open the environment.yaml and see what is the name of the environment there (in my case I renamed it 'ldo')
Using the miniconda terminal activate the environment (conda activate ldo)
go to the directory where stable-diffusion folder is with the 'cd'
than run the 'python stable-diffusion-webui/webui.py' again and wait few moments for model to load in.

@thomastraum
Copy link

thank you, that actually worked once I installed most of the libs again! cheers @AmoArt

cabelo pushed a commit to cabelo/stable-diffusion-webui that referenced this issue Nov 29, 2023
…ighting

Add support for negative prompt weighting
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

3 participants