comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
50.43k stars 5.3k forks source link

extra_model_paths.yaml in WSL2 - how?? #814

Open Ainaemaet opened 1 year ago

Ainaemaet commented 1 year ago

Hello, I wanted to give ComfyUI a try and do all of my ML work in WSL2 conda envs; getting the program itself set up and running was an absolute breeze but as I keep most of my models in my Automatic1111 area on my WSL2 filesystem I have tried multiple methods to properly input the location into extra_model_paths.yaml, but while I get no errors once I am in the UI I cannot select anything other than what is in the ComfyUI/models locations...

So far I've tried: \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui \wsl$\Ubuntu-20.04\home\myusername\ML\MC\sd-webui \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\ \wsl$\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\

and with slashes facing the other direction - each one results in some variation of the expected terminal output: `(automatic) myusername@MYPC:~\ML\MC\ComfyUI$ python main.py Total VRAM 24564 MB, total RAM 23992 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 Using pytorch cross attention Adding extra search path checkpoints \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\models\Stable-diffusion Adding extra search path configs \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\models\Stable-diffusion Adding extra search path vae \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\models\VAE Adding extra search path loras \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\models\Lora Adding extra search path loras \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\models\LyCORIS Adding extra search path upscale_models \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\models\ESRGAN Adding extra search path upscale_models \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\models\SwinIR Adding extra search path embeddings \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\embeddings Adding extra search path hypernetworks \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\models\hypernetworks Adding extra search path controlnet \wsl.localhost\Ubuntu-20.04\home\myusername\ML\MC\sd-webui\models\ControlNet Starting server

To see the GUI go to: http:\127.0.0.1:8188`

But in the UI itself no other models are available than what is in the ComfyUI model folder. Please help me load my sd-webui checkpoints without having to move my folder outside of my WSL2 filesystem, because I just don't have enough room to do that and I have reasons for having them where they are.

WASasquatch commented 1 year ago

I think the \\wsl$\ type stuff actually network addresses, not filesystem paths, and the drive actually needs to be mounted and running.