pesser / stable-diffusion

MIT License
1.03k stars 395 forks source link

Missing Parenthesis? #10

Closed TheOneTrueGuy closed 1 year ago

TheOneTrueGuy commented 1 year ago

Got this error: Traceback (most recent call last): File "/content/latent-diffusion/scripts/txt2img.py", line 10, in from ldm.util import instantiate_from_config File "/usr/local/lib/python3.7/dist-packages/ldm.py", line 20 print self.face_rec_model_path ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(self.face_rec_model_path)?

litevex commented 1 year ago

You are not meant to install the ldm module from pip, rather it should be importing it from the folder. Add a sys.path.append to sys.path.append("path/to/stable-diffusion") near the start of the file, uninstall ldm from pip and try again.

TheOneTrueGuy commented 1 year ago

Thanks!