ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

How to configure "extra_model_paths.yaml" for xlabs models?

Open ClothingAI opened this issue 1 year ago • 9 comments

Your question

Xlabs models (https://github.com/XLabs-AI/x-flux-comfyui) explian to us that models shall be put inside this path: ComfyUI/models/xlabs/loras and ComfyUI/models/xlabs/controlnets

I would like to have the models in another path, could you tell me if it's possible to do it with the yaml file? I tried to create a new entry like this:

.... vae: models/vae/ xlabs: ..._\models\xlabs

It did not work that great! Ho to configure it what to write in the yaml? image

Btw this is how it looks in base install:

image

Logs

No response

Other

No response

ClothingAI avatar Oct 14 '24 22:10 ClothingAI

you can use the standard windows mklink command which is much more versatile than the yaml file move all xlabs files to [xlabs-path] cd models mklink /d xlabs [xlabs-path] for instance mklink /d xlabs d:\models\xlabs

yaiol avatar Oct 15 '24 05:10 yaiol

you can use the standard windows mklink command which is much more versatile than the yaml file move all xlabs files to [xlabs-path] cd models mklink /d xlabs [xlabs-path] for instance mklink /d xlabs d:\models\xlabs

my machine does not allow this.

ClothingAI avatar Oct 15 '24 07:10 ClothingAI

I'm not an expert, but if you have already set the base path, you need to add a relative path to the xlab folder.

Have you tried this way?

    xlabs: models/xlabs

LukeG89 avatar Oct 15 '24 07:10 LukeG89

I just noticed that I tried this: xlabs: models\xlabs and it should have been \ instead of / but doubt it would work, because there are some codes related to these in nodes.py or and config paths scripts etc

ClothingAI avatar Oct 15 '24 08:10 ClothingAI

I just noticed that I tried this: xlabs: models\xlabs and it should have been \ instead of / but doubt it would work, because there are some codes related to these in nodes.py or and config paths scripts etc

Yeah, it should work both ways.

If changing \ to / didn't work, I would also give a chance to this format as a last attempt:

    xlabs: |
         models/xlabs/flux
         models/xlabs/loras
         models/xlabs/controlnets
         models/xlabs/ipadapters

LukeG89 avatar Oct 15 '24 09:10 LukeG89

I think there should be some changes in folder_paths.py and nodes.py (from main comfy) to accompany the yaml changes. I tried with ChatGPT but could not find a good working solution.

ClothingAI avatar Oct 15 '24 09:10 ClothingAI

I think there should be some changes in folder_paths.py and nodes.py (from main comfy) to accompany the yaml changes. I tried with ChatGPT but could not find a good working solution.

Was it working fine before? Is this symptom happening after updating ComfyUI?

ltdrdata avatar Oct 15 '24 12:10 ltdrdata

image

You can try xlabs_controlnets xlabs_loras xlabs_ipadapters

lldacing avatar Oct 16 '24 03:10 lldacing

This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.

github-actions[bot] avatar Nov 15 '24 11:11 github-actions[bot]