Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Night1099 opened this issue Jul 7, 2024 · 8 comments
Open

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

Night1099 opened this issue Jul 7, 2024 · 8 comments

Comments

@Night1099
Copy link

Night1099 commented Jul 7, 2024

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

@titus12
Copy link

titus12 commented Jul 9, 2024

I have encountered this problem, how to solve it?

@titus12
Copy link

titus12 commented Jul 13, 2024

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

@mamorett
Copy link

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

@Acly
Copy link
Owner

Acly commented Jul 19, 2024

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.

@bonongg
Copy link

bonongg commented Jul 21, 2024

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

@jacketeer
Copy link

jacketeer commented Jul 29, 2024

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.

@Rostikos
Copy link

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

@jacketeer
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants