Closed SoaringTiger closed 11 months ago
I've been thinking about this.
I've recently made a change so that synchronized micromamba environments can exist in a shared volume mount.
I'm going to implement a 'model repository' system where all containers will look for models so they can be easily shared.
In the meantime, I'd recommend downloading models for one system and symlink them to the correct directories in the other.
This is quite important so I'll start work on automating it immediately.
@SoaringTiger I've now pushed an update to the a1111 repo so that it also uses the new /workspace/storage directories for saving models.
The best way to manage this is to mount /path/to/local/storage/
in the container at /workspace/storage
- You can see the required structures at
https://github.com/ai-dock/comfyui/tree/main/build/COPY_ROOT_EXTRA/opt/storage/ and
https://github.com/ai-dock/stable-diffusion-webui/tree/main/build/COPY_ROOT_EXTRA/opt/storage
The mappings to make this work for each container are at
and
I will use this structure for all future SD docker images (Fooocus, Invoke etc.)
@robballantyne
If there are subdirectories in the model directory, recursive symlinks will be generated.
There is a ‘Turbo’ subdirectory in ckpt, looks just like the picture below.
Thanks, I'll fix. Only the directory 'turbo' should be linked
New builds should solve this issue. Please let me know if not and thank you for your report 🙏
New builds should solve this issue. Please let me know if not and thank you for your report 🙏
Tested, simple to use and works well 👍
I'm using ai-dock/comfyui and ai-dock/stable-diffusion-webui together. I want to ask how to share the models directory between these two projects like https://github.com/AbdBarho/stable-diffusion-webui-docker