mav-rik / facerestore_cf

ComfyUI Custom node that supports face restore models and supports CodeFormer Fidelity parameter
190 stars 24 forks source link

How do I get comfyui to use models from a111 #8

Open waaaok opened 10 months ago

waaaok commented 10 months ago

a111: base_path: F:\sd-webui

checkpoints: models\Stable-diffusion
configs: models\Stable-diffusion
vae: models\VAE
loras: |
     models\Lora
     models\LyCORIS
upscale_models: |
              models\ESRGAN
              models\RealESRGAN
              models\SwinIR
embeddings: embeddings
hypernetworks: models\hypernetworks
controlnet: models\ControlNet
???: ???

what should i writ in extra_model_paths.yaml

mav-rik commented 10 months ago

@SameetAsadullah maybe you can provide some suggestions? Thanks!

SameetAsadullah commented 10 months ago

@waaaok You can paste the models in ComfyUI/models folder. Checkpoints goes into checkpoints, embeddings into embeddings and so on.

mav-rik commented 10 months ago

@SameetAsadullah I think the question was about facerestore models and how to avoid copying it to comfyui, but keep using a1111 ones with the help of extra_model_paths.yaml file.

The models lookup is currently hardcoded to facerestore_models directory within comfyui.

I don't know how to lookup in folders provided in extra_model_paths.yaml. I must check some of the other custom nodes to see how they look models up within provided paths.

UPDATE: @waaaok I think adding this line to extra_model_paths.yaml should work: facerestore_models: models\path_to_face_restore_models where path_to_face_restore_models points to a1111 face restore models folder.

waaaok commented 10 months ago

@SameetAsadullah thx for your reply. as @SameetAsadullah said, i want to avoid copying models to comfyui,keep them in a111 files