Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Onboarding] yaml migration from existing ComfyUI install #253

Merged
merged 13 commits into from
Nov 15, 2024
Merged

Conversation

huchenlei
Copy link
Member

This PR:

  • Adds existing ComfyUI installlation's model path into desktop yaml config
  • Adds existing ComfyUI installation's yaml file content into desktop yaml config

Example

Sample existing yaml:

#config for a1111 ui
#all you have to do is change the base_path to where yours is installed
a111:
    base_path: D:/stable-diffusion-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

Sample output yaml:

# ComfyUI extra_model_paths.yaml for win32
a111:
  base_path: D:/stable-diffusion-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
comfyui:
  is_default: "true"
  checkpoints: |-
    models\checkpoints\
    D:\ComfyUI_windows_portable\ComfyUI\models\checkpoints\
  classifiers: |-
    models\classifiers\
    D:\ComfyUI_windows_portable\ComfyUI\models\classifiers\
  clip: |-
    models\clip\
    D:\ComfyUI_windows_portable\ComfyUI\models\clip\
  clip_vision: |-
    models\clip_vision\
    D:\ComfyUI_windows_portable\ComfyUI\models\clip_vision\
  configs: |-
    models\configs\
    D:\ComfyUI_windows_portable\ComfyUI\models\configs\
  controlnet: |-
    models\controlnet\
    D:\ComfyUI_windows_portable\ComfyUI\models\controlnet\
  diffusers: |-
    models\diffusers\
    D:\ComfyUI_windows_portable\ComfyUI\models\diffusers\
  diffusion_models: |-
    models\diffusion_models\
    D:\ComfyUI_windows_portable\ComfyUI\models\diffusion_models\
  embeddings: |-
    models\embeddings\
    D:\ComfyUI_windows_portable\ComfyUI\models\embeddings\
  gligen: |-
    models\gligen\
    D:\ComfyUI_windows_portable\ComfyUI\models\gligen\
  hypernetworks: |-
    models\hypernetworks\
    D:\ComfyUI_windows_portable\ComfyUI\models\hypernetworks\
  loras: |-
    models\loras\
    D:\ComfyUI_windows_portable\ComfyUI\models\loras\
  photomaker: |-
    models\photomaker\
    D:\ComfyUI_windows_portable\ComfyUI\models\photomaker\
  style_models: |-
    models\style_models\
    D:\ComfyUI_windows_portable\ComfyUI\models\style_models\
  unet: |-
    models\unet\
    D:\ComfyUI_windows_portable\ComfyUI\models\unet\
  upscale_models: |-
    models\upscale_models\
    D:\ComfyUI_windows_portable\ComfyUI\models\upscale_models\
  vae: |-
    models\vae\
    D:\ComfyUI_windows_portable\ComfyUI\models\vae\
  vae_approx: |-
    models\vae_approx\
    D:\ComfyUI_windows_portable\ComfyUI\models\vae_approx\
  animatediff_models: |-
    models\animatediff_models\
    D:\ComfyUI_windows_portable\ComfyUI\models\animatediff_models\
  animatediff_motion_lora: |-
    models\animatediff_motion_lora\
    D:\ComfyUI_windows_portable\ComfyUI\models\animatediff_motion_lora\
  animatediff_video_formats: |-
    models\animatediff_video_formats\
    D:\ComfyUI_windows_portable\ComfyUI\models\animatediff_video_formats\
  ipadapter: |-
    models\ipadapter\
    D:\ComfyUI_windows_portable\ComfyUI\models\ipadapter\
  liveportrait: |-
    models\liveportrait\
    D:\ComfyUI_windows_portable\ComfyUI\models\liveportrait\
  insightface: |-
    models\insightface\
    D:\ComfyUI_windows_portable\ComfyUI\models\insightface\
  layerstyle: |-
    models\layerstyle\
    D:\ComfyUI_windows_portable\ComfyUI\models\layerstyle\
  LLM: |-
    models\LLM\
    D:\ComfyUI_windows_portable\ComfyUI\models\LLM\
  Joy_caption: |-
    models\Joy_caption\
    D:\ComfyUI_windows_portable\ComfyUI\models\Joy_caption\
  sams: |-
    models\sams\
    D:\ComfyUI_windows_portable\ComfyUI\models\sams\
  blip: |-
    models\blip\
    D:\ComfyUI_windows_portable\ComfyUI\models\blip\
  CogVideo: |-
    models\CogVideo\
    D:\ComfyUI_windows_portable\ComfyUI\models\CogVideo\
  xlabs: |-
    models\xlabs\
    D:\ComfyUI_windows_portable\ComfyUI\models\xlabs\
  instantid: |-
    models\instantid\
    D:\ComfyUI_windows_portable\ComfyUI\models\instantid\
  custom_nodes: custom_nodes/
  base_path: C:\Users\hcl\Documents\ComfyUI

Copy link

codecov bot commented Nov 15, 2024

The author of this PR, huchenlei, is not an activated member of this organization on Codecov.
Please activate this user on Codecov to display this PR comment.
Coverage data is still being uploaded to Codecov.io for purposes of overall coverage calculations.
Please don't hesitate to email us at [email protected] with any questions.

@@ -1,86 +0,0 @@
import { app } from 'electron';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trivial tests are removed.

@huchenlei huchenlei merged commit dc1fd95 into main Nov 15, 2024
7 checks passed
@huchenlei huchenlei deleted the migration branch November 15, 2024 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant