Spaces:
Runtime error
Runtime error
jhj0517
commited on
Commit
•
602a280
1
Parent(s):
688976a
Add paths
Browse files- modules/__init__.py +0 -0
- modules/paths.py +12 -0
modules/__init__.py
ADDED
File without changes
|
modules/paths.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
WEBUI_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
4 |
+
MODELS_DIR = os.path.join(WEBUI_DIR, "models")
|
5 |
+
SAM2_CONFIGS_DIR = os.path.join(WEBUI_DIR, "configs")
|
6 |
+
OUTPUT_DIR = os.path.join(WEBUI_DIR, "outputs")
|
7 |
+
|
8 |
+
for dir_path in [WEBUI_DIR,
|
9 |
+
MODELS_DIR,
|
10 |
+
SAM2_CONFIGS_DIR,
|
11 |
+
OUTPUT_DIR]:
|
12 |
+
os.makedirs(dir_path, exist_ok=True)
|