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

assert False in log_validation() #10

Open
AndreiBaraian opened this issue Feb 5, 2025 · 0 comments
Open

assert False in log_validation() #10

AndreiBaraian opened this issue Feb 5, 2025 · 0 comments

Comments

@AndreiBaraian
Copy link

Hi! I am trying to run your code and although the training works alright, I stumble on an error in log_validation() function, where inference is done on the validation images. Specifically, the line with image = pipeline(val_prompt, val_labelTrain_onehot, num_inference_steps=20, generator=generator).images[0] triggers the following error:
Traceback (most recent call last):
File "/path/to/DGInStyle/test.py", line 70, in
image = pipeline(
File "/path/to//miniconda3/envs/dginstyle/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/path/to/miniconda3/envs/dginstyle/lib/python3.9/site-packages/diffusers/pipelines/controlnet/pipeline_controlnet.py", line 854, in call
self.check_inputs(
File "/path/to/miniconda3/envs/dginstyle/lib/python3.9/site-packages/diffusers/pipelines/controlnet/pipeline_controlnet.py", line 561, in check_inputs
assert False

I've tried debuggin it, but I cannot see if it's a problem with the input image or because it's failing the isinstanceof(ControlNet). Do you have any idea on what could cause this?

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

1 participant