You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I am encountering a RuntimeValueError when trying to generate images using the provided code snippet with the ControlNet pipeline. The error occurs specifically in the pipe function call. Below are the details of the error and the relevant code.
Traceback (most recent call last):
File "/content/ControlNetPlus/controlnet_union_test_inpainting.py", line 74, in <module>
images = pipe(
File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "/content/ControlNetPlus/pipeline/pipeline_controlnet_union_inpaint_sd_xl.py", line 1393, in __call__
if control_image:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Steps to Reproduce:
Execute the above code sample in the ControlNet pipeline.
Ensure all required inputs (prompt, original_img, mask, controlnet_img_pose, controlnet_img_canny, controlnet_img, negative_prompt, W, H) are properly defined.
Run the script to generate images.
The text was updated successfully, but these errors were encountered:
after changing all/ any got another error during the run time
<class 'numpy.ndarray'>
<class 'int'>
Traceback (most recent call last):
File "/content/ControlNetPlus/controlnet_union_test_inpainting.py", line 74, in <module>
images = pipe(
File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "/content/ControlNetPlus/pipeline/pipeline_controlnet_union_inpaint_sd_xl.py", line 1393, in __call__
if control_image.any():
AttributeError: 'int' object has no attribute 'any'
Description:
I am encountering a Runtime
ValueError
when trying to generate images using the provided code snippet with the ControlNet pipeline. The error occurs specifically in thepipe
function call. Below are the details of the error and the relevant code.Code Sample:
Error Message:
Steps to Reproduce:
prompt
,original_img
,mask
,controlnet_img_pose
,controlnet_img_canny
,controlnet_img
,negative_prompt
,W
,H
) are properly defined.The text was updated successfully, but these errors were encountered: