ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

When using the flux model of controlnet, this problem occurs: Error occurred when executing ControlNetLoader: MMDiT.__init__() got an unexpected keyword argument 'image_model'

Open GFY2000 opened this issue 1 year ago • 4 comments

Your question

I encountered this problem when using the flux model of controlnet. My comfyui is already the latest version. I don't know why. Has anyone encountered the same situation as me? How to solve it? image

Logs

No response

Other

No response

GFY2000 avatar Aug 14 '24 09:08 GFY2000

I think you're using a model from InstantX and that they aren't supported yet. I might be mistaken, but I think only the Flux Controlnets by XLabs-AI are supported

Lusus-Naturae avatar Aug 14 '24 10:08 Lusus-Naturae

I think you're using a model from InstantX and that they aren't supported yet. I might be mistaken, but I think only the Flux Controlnets by XLabs-AI are supported

Yeah the InstantX controlnet is for diffusers. It would need to be converted to work with comfyui and I don't know if there's some easy runtime on the fly method of converting it. Looking at their blocks(click the little two layers looking icon next to the file name in the huggingface repo), they look very different from each other, so probably not.

RandomGitUser321 avatar Aug 14 '24 11:08 RandomGitUser321

Thank you two brothers above, this is indeed the reason. I just need to switch to XLabs-AI's controlnet. I was using InstantX's controlnet before.

GFY2000 avatar Aug 15 '24 01:08 GFY2000

Problem is Xlabs controlnet sucks at inpaint, and InstantX doesn't. The Union ControlNet works great but is quite heavy. Would be nice to be able to use the Canny (lighter).

VictorLab75 avatar Aug 30 '24 16:08 VictorLab75

replace the controlnet load for "InstantX Flux Union ControlNet Loader". I had the same error and after I replaced the node it worked. https://www.youtube.com/watch?v=DVZikxmIbo0

eusoumax avatar Sep 08 '24 20:09 eusoumax

update comfyui,all nodes,done!!!

liuzhihan avatar Sep 30 '24 07:09 liuzhihan

how did you update? from manager?

LorisTecnology avatar Sep 30 '24 14:09 LorisTecnology

how did you update? from manager?

If you are using ComfyUI Windows Portable,

  • run ComfyUI_windows_portable\update\update_comfyui.bat
  • Restart ComfyUI > Manager > Update all

GlenCarpenter avatar Oct 01 '24 15:10 GlenCarpenter