taabata / LCM_Inpaint_Outpaint_Comfy

ComfyUI custom nodes for inpainting/outpainting using the new latent consistency model (LCM)
251 stars 19 forks source link

Enabling IPAdapter -> "'NoneType' object is not subscriptable " | Outpaint #20

Open abcnorio opened 11 months ago

abcnorio commented 11 months ago

Enabling IPAdapter results in: Using the workflow "https://github.com/taabata/LCM_Inpaint_Outpaint_Comfy/blob/main/inpaint_LCMLORA_promptless.json" (see my other issue)

Error occurred when executing LCMLora_inpaint:

'NoneType' object is not subscriptable

File "ComfyUI/execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "ComfyUI/execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "ComfyUI/execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "ComfyUI/custom_nodes/LCM_Inpaint_Outpaint_Comfy/LCM_Nodes.py", line 2266, in mainfunc
images = pipe(
File "/miniconda3/envs/CUISDXL/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "ComfyUI/custom_nodes/LCM_Inpaint_Outpaint_Comfy/LCM/LCM_lora_inpaint.py", line 1398, in __call__
ref_image = self.prepare_image(
File "ComfyUI/custom_nodes/LCM_Inpaint_Outpaint_Comfy/LCM/LCM_lora_inpaint.py", line 919, in prepare_image
if isinstance(image[0], PIL.Image.Image): 

grafik

? Thanks!