xinsir6 / ControlNetPlus

ControlNet++: All-in-one ControlNet for image generations and editing!
Apache License 2.0
1.76k stars 43 forks source link

tile super resolution issue #62

Open HanLiii opened 2 months ago

HanLiii commented 2 months ago

When I try to run controlnet_union_test_tile_super_resolution.py, it occurs following issue:

Traceback (most recent call last): File "controlnet_union_test_tile_super_resolution.py", line 15, in from pipeline.pipeline_controlnet_union_sd_xl_img2img import StableDiffusionXLControlNetUnionImg2ImgPipeline File "/data/hli358/han/ControlNetPlus/promax/../pipeline/pipeline_controlnet_union_sd_xl_img2img.py", line 160, in class StableDiffusionXLControlNetUnionImg2ImgPipeline( File "/data/hli358/han/ControlNetPlus/promax/../pipeline/pipeline_controlnet_union_sd_xl_img2img.py", line 239, in StableDiffusionXLControlNetUnionImg2ImgPipeline controlnet: Union[ControlNetModel, List[ControlNetModel], Tuple[ControlNetModel], MultiControlNetModel], NameError: name 'ControlNetModel' is not defined

djcedr commented 1 month ago

Same here... Did anyone manage to make it work?

CristianCuadrado commented 1 month ago

You need to add the following line:

from diffusers.models.controlnet import ControlNetModel