“fred-dev” commited on
Commit
0237ea5
·
2 Parent(s): b8ba7ca f51580f

Merge branch 'main' of https://huggingface.co./spaces/fred-dev/comfy_ui_ali into main

Browse files
Files changed (3) hide show
  1. app.py +9 -0
  2. extra_model_paths.yaml +13 -13
  3. folder_paths.py +4 -4
app.py CHANGED
@@ -33,6 +33,15 @@ if __name__ == "__main__":
33
  os.makedirs("/data/temp/", exist_ok=True)
34
  os.makedirs("/data/input/", exist_ok=True)
35
  os.makedirs("/data/user/", exist_ok=True)
 
 
 
 
 
 
 
 
 
36
 
37
  #lets print the contents of the directories and subdirectories from the root directory
38
  for root, dirs, files in os.walk("/data"):
 
33
  os.makedirs("/data/temp/", exist_ok=True)
34
  os.makedirs("/data/input/", exist_ok=True)
35
  os.makedirs("/data/user/", exist_ok=True)
36
+
37
+ #lets print the contents of the directories and subdirectories from the root directory
38
+ for root, dirs, files in os.walk("/data"):
39
+ print("Printing contents of the directory: ", root)
40
+ for name in files:
41
+ print(os.path.join(root, name))
42
+ for name in dirs:
43
+ print(os.path.join(root, name))
44
+
45
 
46
  #lets print the contents of the directories and subdirectories from the root directory
47
  for root, dirs, files in os.walk("/data"):
extra_model_paths.yaml CHANGED
@@ -25,20 +25,20 @@
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
 
25
 
26
  comfyui:
27
  base_path: /data/
28
+ download_model_base: models
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
folder_paths.py CHANGED
@@ -46,10 +46,10 @@ folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")]
46
 
47
  folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
48
 
49
- output_directory = os.path.join("data/", "output")
50
- temp_directory = os.path.join("data/", "temp")
51
- input_directory = os.path.join("data/", "input")
52
- user_directory = os.path.join("data/", "user")
53
 
54
  filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
55
 
 
46
 
47
  folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
48
 
49
+ output_directory = os.path.join("/data/", "output")
50
+ temp_directory = os.path.join("/data/", "temp")
51
+ input_directory = os.path.join("/data/", "input")
52
+ user_directory = os.path.join("/data/", "user")
53
 
54
  filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
55