stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

敏佬是否可以出个从Forge导入Comfyui模型的方法?

Open GAO-SHIQING opened this issue 7 months ago • 2 comments

把模型放固态,把软件放机械,这个我在comfyui做到了。但是因为我模型本身就放在comfyui下,所以我想直接调用comfyui的模型,一来是固态速度不是机械可以比的,二来就是模型放置的时候就不再需要放置两份,三来就是我可以单独给模型放置一个盘,让Forge和Comfy都可以去调用,这样的话也可以放置更多的模型来使用。

GAO-SHIQING avatar May 11 '25 01:05 GAO-SHIQING

You can set the command line args in webui-user.bat to point to ComfyUI's model locations. Here are all the possible arguments: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings

These are the ones you will set to have Forge use ComfyUI's directories:

  • --models-dir (model checkpoints like sd1.5, sdxl, etc)
  • --vae-dir
  • --lora-dir
  • --embeddings-dir (textual inversions)

MisterChief95 avatar May 12 '25 00:05 MisterChief95

您可以设置命令行参数,webui-user.bat使其指向 ComfyUI 的模型位置。所有可用的参数如下: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings

这些是您将设置让 Forge 使用 ComfyUI 的目录:

  • --models-dir(模型检查点如 sd1.5、sdxl 等)
  • --vae-dir
  • --lora-dir
  • --embeddings-dir(文本倒置)

Aw, thank you so much!

GAO-SHIQING avatar May 13 '25 03:05 GAO-SHIQING