stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

im trying to test the ai on my local pc and i cant get it to work

Open EiderFC opened this issue 3 years ago • 7 comments

im trying to test the ai on my local pc and i cant get it to work

E:\IA-Local\stable-diffusion-main>set /P id=Enter Prompt And Options : Enter Prompt And Options : --prompt "a dog photo"

E:\IA-Local\stable-diffusion-main>python "scripts\txt2img.py" --ckpt "model 1.3.ckpt" --config "configs\stable-diffusion\v1-inference.yaml" --prompt "a dog photo" Traceback (most recent call last): File "E:\IA-Local\stable-diffusion-main\scripts\txt2img.py", line 17, in from ldm.util import instantiate_from_config File "C:\Users\zhixi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\ldm.py", line 20 print self.face_rec_model_path ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

EiderFC avatar Aug 26 '22 18:08 EiderFC

Maybe it's assuming python 2?

RomanADavis avatar Aug 26 '22 20:08 RomanADavis

No, python 3.10

EiderFC avatar Aug 26 '22 21:08 EiderFC

just this https://huggingface.co/spaces/stabilityai/stable-diffusion

breadbrowser avatar Aug 27 '22 01:08 breadbrowser

Do you run it inside a Conda terminal?

smoran avatar Aug 27 '22 18:08 smoran

Try the following:

Copy the file txt2img.py to the root folder of the project (for you it should be E:\IA-Local\stable-diffusion-main) and start it from there: "python "txt2img.py" --ckpt "model 1.3.ckpt" --config "configs\stable-diffusion\v1-inference.yaml" --prompt "a dog photo"

and make sure that you did not install the ldm package from pip

Hypero avatar Aug 29 '22 09:08 Hypero

Try the following:

Copy the file txt2img.py to the root folder of the project (for you it should be E:\IA-Local\stable-diffusion-main) and start it from there: "python "txt2img.py" --ckpt "model 1.3.ckpt" --config "configs\stable-diffusion\v1-inference.yaml" --prompt "a dog photo"

and make sure that you did not install the ldm package from pip

where were we supposed to download the ldm package other than pip?

zvandermolen90 avatar Sep 08 '22 01:09 zvandermolen90

Did you find an answer for this?

TnnsBeast avatar Mar 07 '23 05:03 TnnsBeast