“fred-dev” commited on
Commit
3ddc367
·
1 Parent(s): 4f44506

added paths for config

Browse files
Files changed (3) hide show
  1. app.py +4 -0
  2. extra_model_paths.yaml +47 -0
  3. extra_model_paths.yaml.example +0 -47
app.py CHANGED
@@ -13,6 +13,10 @@ import logging
13
 
14
  if __name__ == "__main__":
15
  #NOTE: These do not do anything on core ComfyUI which should already have no communication with the internet, they are for custom nodes.
 
 
 
 
16
  os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
17
  os.environ['DO_NOT_TRACK'] = '1'
18
 
 
13
 
14
  if __name__ == "__main__":
15
  #NOTE: These do not do anything on core ComfyUI which should already have no communication with the internet, they are for custom nodes.
16
+ #lets make the folders for the custom nodes and models on persistent storage /data
17
+ os.makedirs(folder_paths.get_folder_path("custom_nodes"), exist_ok=True)
18
+ os.makedirs(folder_paths.get_folder_path("models"), exist_ok=True)
19
+
20
  os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
21
  os.environ['DO_NOT_TRACK'] = '1'
22
 
extra_model_paths.yaml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #Rename this to extra_model_paths.yaml and ComfyUI will load it
2
+
3
+
4
+ #config for a1111 ui
5
+ #all you have to do is change the base_path to where yours is installed
6
+ # a111:
7
+ # base_path: path/to/stable-diffusion-webui/
8
+
9
+ # checkpoints: models/Stable-diffusion
10
+ # configs: models/Stable-diffusion
11
+ # vae: models/VAE
12
+ # loras: |
13
+ # models/Lora
14
+ # models/LyCORIS
15
+ # upscale_models: |
16
+ # models/ESRGAN
17
+ # models/RealESRGAN
18
+ # models/SwinIR
19
+ # embeddings: embeddings
20
+ # hypernetworks: models/hypernetworks
21
+ # controlnet: models/ControlNet
22
+
23
+ #config for comfyui
24
+ #your base path should be either an existing comfy install or a central folder where you store all of your models, loras, etc.
25
+
26
+ comfyui:
27
+ base_path: /data/
28
+ # You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads
29
+ #is_default: true
30
+ checkpoints: /data/models/checkpoints/
31
+ clip: /data/models/clip/
32
+ clip_vision: /data/models/clip_vision/
33
+ configs: /data/models/configs/
34
+ controlnet: /data/models/controlnet/
35
+ diffusion_models: |
36
+ /data/models/diffusion_models
37
+ /data/models/unet
38
+ embeddings: /data/models/embeddings/
39
+ loras: /data/models/loras/
40
+ upscale_models: /data/models/upscale_models/
41
+ vae: /data/models/vae/
42
+
43
+ #other_ui:
44
+ # base_path: path/to/ui
45
+ # checkpoints: models/checkpoints
46
+ # gligen: models/gligen
47
+ # custom_nodes: path/custom_nodes
extra_model_paths.yaml.example DELETED
@@ -1,47 +0,0 @@
1
- #Rename this to extra_model_paths.yaml and ComfyUI will load it
2
-
3
-
4
- #config for a1111 ui
5
- #all you have to do is change the base_path to where yours is installed
6
- a111:
7
- base_path: path/to/stable-diffusion-webui/
8
-
9
- checkpoints: models/Stable-diffusion
10
- configs: models/Stable-diffusion
11
- vae: models/VAE
12
- loras: |
13
- models/Lora
14
- models/LyCORIS
15
- upscale_models: |
16
- models/ESRGAN
17
- models/RealESRGAN
18
- models/SwinIR
19
- embeddings: embeddings
20
- hypernetworks: models/hypernetworks
21
- controlnet: models/ControlNet
22
-
23
- #config for comfyui
24
- #your base path should be either an existing comfy install or a central folder where you store all of your models, loras, etc.
25
-
26
- #comfyui:
27
- # base_path: path/to/comfyui/
28
- # # You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads
29
- # #is_default: true
30
- # checkpoints: models/checkpoints/
31
- # clip: models/clip/
32
- # clip_vision: models/clip_vision/
33
- # configs: models/configs/
34
- # controlnet: models/controlnet/
35
- # diffusion_models: |
36
- # models/diffusion_models
37
- # models/unet
38
- # embeddings: models/embeddings/
39
- # loras: models/loras/
40
- # upscale_models: models/upscale_models/
41
- # vae: models/vae/
42
-
43
- #other_ui:
44
- # base_path: path/to/ui
45
- # checkpoints: models/checkpoints
46
- # gligen: models/gligen
47
- # custom_nodes: path/custom_nodes