comfyui-inpaint-nodes icon indicating copy to clipboard operation
comfyui-inpaint-nodes copied to clipboard

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

Open Night1099 opened this issue 1 year ago • 15 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

Night1099 avatar Jul 07 '24 01:07 Night1099

I have encountered this problem, how to solve it?

titus12 avatar Jul 09 '24 02:07 titus12

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

titus12 avatar Jul 13 '24 06:07 titus12

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

mamorett avatar Jul 19 '24 16:07 mamorett

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 https://github.com/Seedsa/Fooocus_Nodes/issues/22

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

Acly avatar Jul 19 '24 17:07 Acly

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

bonongg avatar Jul 21 '24 10:07 bonongg

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.

jacketeer avatar Jul 29 '24 11:07 jacketeer

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

Rostikos avatar Jul 29 '24 22:07 Rostikos

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.

jacketeer avatar Jul 29 '24 23:07 jacketeer

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

which folder_paths.py did you change? which node is it located in?

offmybach avatar Nov 03 '24 15:11 offmybach

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.

which folder_paths.py did you change? which node is it located in?

offmybach avatar Nov 03 '24 16:11 offmybach

Probably easier to just add a .pth extension to the .patch file if you can't get it to show up for some reason.

Acly avatar Nov 03 '24 17:11 Acly

I guess I am somewhat ignorant and don't know how to add path extension to .patch file. How do I do so?

On Sun, Nov 3, 2024 at 12:17 PM Acly @.***> wrote:

Probably easier to just add a .pth extension to the .patch file if you can't get it to show up for some reason.

— Reply to this email directly, view it on GitHub https://github.com/Acly/comfyui-inpaint-nodes/issues/66#issuecomment-2453501237, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA3LYDD5DQJH22CQ4ZNVBFTZ6ZLBXAVCNFSM6AAAAABKO4TML6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGUYDCMRTG4 . You are receiving this because you commented.Message ID: @.***>

--

offmybach avatar Nov 03 '24 17:11 offmybach

I meant, just rename the file, for example inpaint_v26.fooocus.patch -> inpaint_v26.fooocus.patch.pth

Acly avatar Nov 03 '24 18:11 Acly

ooh! gotcha. will give it a try. tyvm

offmybach avatar Nov 03 '24 18:11 offmybach

I guess I am somewhat ignorant and don't know how to add path extension to .patch file. How do I do so?

On Sun, Nov 3, 2024 at 12:17 PM Acly @.***> wrote: Probably easier to just add a .pth extension to the .patch file if you can't get it to show up for some reason.

— Reply to this email directly, view it on GitHub <#66 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA3LYDD5DQJH22CQ4ZNVBFTZ6ZLBXAVCNFSM6AAAAABKO4TML6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGUYDCMRTG4 . You are receiving this because you commented.Message ID: @.***>

--

you can search "folder_paths.py" in your comfyui installation path, then, open the file and modify the variable "supported_pt_extensions"and add ".patch".

qinjunyun avatar Apr 23 '25 12:04 qinjunyun