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

Error with inference.py #10

Open
NiccoloNiccoli opened this issue Jun 28, 2024 · 1 comment
Open

Error with inference.py #10

NiccoloNiccoli opened this issue Jun 28, 2024 · 1 comment

Comments

@NiccoloNiccoli
Copy link

This is a very interesting work. I tried to use the pretrained model on a dataset of mine with its captions and its masks computed with make_mask.py.
However, I encountered an error when using python inference.py at line 755 of ddim.py: RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn.
How can I solve it?

@hanzerui
Copy link

Hello, I have resolved this issue. You can replace the config file with ./configs/cldm_sample.yaml

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

2 participants