Acly/comfyui-inpaint-nodes

Can't choose model in load INPAINT model or load fooocus model

Night1099 opened this issue · 8 comments

Can't click on model selection box, nothing shows up or happens as if it's frozen

I have the models in models/inpaint

I have tried several different version of comfy, including most recent

I have encountered this problem, how to solve it?

download all file via "https://huggingface.co/lllyasviel/fooocus_inpaint/tree/main", then you can choose them, instead of just downloading two files.

Same issue here. I cannot see in the model dropdown inpaint_v26.fooocus.patch. the head file is showing up fine.

Acly commented

There is another node pack "Fooocus_Nodes" which overwrites the extensions that show up in the dropdown, so .patch file no longer shows up. See Seedsa/Fooocus_Nodes#22

If you're using this you might have to disable it for now.

I have the same issue, but I don't have “Fooocus_Nodes” installed.

I have the same issue, but I don't have “Fooocus_Nodes” installed.

Same here. No "Seedsa - Fooocus Nodes" present.

Also no Krita-AI SDXL workflow possible because of this problem.

Please resolve.

Thanks.

I encountered the same issue where the model selection box was frozen and nothing showed up. My models were located in models/inpaint

The problem was that the .patch files were not recognized in the model selection dropdown. Although the _add_folder_path function in init.py included the .patch extension, the folder_paths.py file did not have .patch as a supported file extension, causing the files to be ignored.

To fix this, I added .patch to the supported file extensions in folder_paths.py.

Here is the change I made:
Added .patch to the list of supported file extensions
supported_pt_extensions: Set[str] = set(['.ckpt', '.pt', '.bin', '.pth', '.safetensors', '.patch', '.pkl'])

This change allows the existing code in init.py to work correctly without any modifications

I encountered the same issue where the model selection box was frozen and nothing showed up. My models were located in models/inpaint

The problem was that the .patch files were not recognized in the model selection dropdown. Although the _add_folder_path function in init.py included the .patch extension, the folder_paths.py file did not have .patch as a supported file extension, causing the files to be ignored.

To fix this, I added .patch to the supported file extensions in folder_paths.py.

Here is the change I made: Added .patch to the list of supported file extensions supported_pt_extensions: Set[str] = set(['.ckpt', '.pt', '.bin', '.pth', '.safetensors', '.patch', '.pkl'])

This change allows the existing code in init.py to work correctly without any modifications

It works!
Thank you.