cubiq / ComfyUI_IPAdapter_plus

GNU General Public License v3.0
4k stars 307 forks source link

Allow loading insightface model from extra paths #367

Open kklemon opened 6 months ago

kklemon commented 6 months ago

The location from which the insightface model is loaded is currently hardcoded here:

https://github.com/cubiq/ComfyUI_IPAdapter_plus/blob/e736a64212ad15c7b09b17b58e19b03561f29f03/utils.py#L143

Would it be possible to support extra paths as configured with extra_model_paths.yaml? This would be very handy for cases where the models are stored outside of the ComfyUI root folder.

zulfadzlie commented 6 months ago

The location from which the insightface model is loaded is currently hardcoded here:

https://github.com/cubiq/ComfyUI_IPAdapter_plus/blob/e736a64212ad15c7b09b17b58e19b03561f29f03/utils.py#L143

Would it be possible to support extra paths as configured with extra_model_paths.yaml? This would be very handy for cases where the models are stored outside of the ComfyUI root folder.

I have A1111 as well as ComfyUI. Currently I have most of the model files in a folder that both can access but I have to save antelopev2 and buffalo_l under .\ComfyUI\models\insightface\models.

I am looking forward to this enhancement.