Skip to content

Syntax issues with ldm.py #488

@FaberDax

Description

@FaberDax

Traceback (most recent call last):
File "scripts/txt2img.py", line 17, in
from ldm.util import instantiate_from_config
File "C:\Users\PC_NAME\anaconda3\envs\ldm\lib\site-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)?

AND

Traceback (most recent call last):
File "scripts\txt2img.py", line 17, in
from ldm.util import instantiate_from_config
File "C:\Users\PC_NAME\anaconda3\envs\ldm\lib\site-packages\ldm.py", line 77
print os.path.exists("%s.bz2"%(predictor_path))
^
SyntaxError: invalid syntax

The first error occurred and I made a cheap and nasty quick by just adding the ( ) set as it pointed out. I thought I should share this issue after seeing another error expose itself. I figured it would keep going. I must have messed up something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions