webtools-cli 1.3.5__tar.gz → 1.3.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/ComfyUI/ui.py +17 -0
- {webtools_cli-1.3.5/webtools_cli.egg-info → webtools_cli-1.3.6}/PKG-INFO +1 -1
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/pyproject.toml +1 -1
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/core.py +21 -3
- {webtools_cli-1.3.5 → webtools_cli-1.3.6/webtools_cli.egg-info}/PKG-INFO +1 -1
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/ComfyUI/comfyUI.py +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/ComfyUI/comfyu.py +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/LICENSE +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/README.md +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/setup.cfg +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/__init__.py +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/__main__.py +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/cli.py +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/install.py +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/mega_client.py +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/web/index.html +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/web/script.js +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/web/style.css +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/SOURCES.txt +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/dependency_links.txt +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/entry_points.txt +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/requires.txt +0 -0
- {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/top_level.txt +0 -0
|
@@ -14,6 +14,12 @@ MEMORY_PROFILE = "Standard (Auto-Detect)" #@param ["Standard (Auto-Detect)", "Lo
|
|
|
14
14
|
#@markdown **Visual Settings:**
|
|
15
15
|
LIVE_GENERATION_PREVIEWS = True #@param {type:"boolean"}
|
|
16
16
|
|
|
17
|
+
# --- Session Configuration ---
|
|
18
|
+
#@markdown **Performance Profile:**
|
|
19
|
+
MEMORY_PROFILE = "Standard (Auto-Detect)" #@param ["Standard (Auto-Detect)", "Low VRAM (T4 GPU / Heavy Models)", "High VRAM (A100 GPU Only)"]
|
|
20
|
+
#@markdown **Visual Settings:**
|
|
21
|
+
LIVE_GENERATION_PREVIEWS = True #@param {type:"boolean"}
|
|
22
|
+
|
|
17
23
|
# Dynamic Workspace detection
|
|
18
24
|
WORKSPACE = os.environ.get("COMFYUI_WORKSPACE")
|
|
19
25
|
if not WORKSPACE:
|
|
@@ -29,6 +35,17 @@ if not WORKSPACE:
|
|
|
29
35
|
|
|
30
36
|
ARGS = []
|
|
31
37
|
|
|
38
|
+
# GPU Detection & Fallback
|
|
39
|
+
try:
|
|
40
|
+
import torch
|
|
41
|
+
if not torch.cuda.is_available():
|
|
42
|
+
print("[WARNING] NVIDIA GPU not detected by Torch. Switching to CPU mode...")
|
|
43
|
+
ARGS.append("--cpu")
|
|
44
|
+
except ImportError:
|
|
45
|
+
# If torch is not even installed yet (unlikely on Colab), we'll assume CPU for now
|
|
46
|
+
# or let the main.py handle its own errors. But adding --cpu is safer.
|
|
47
|
+
ARGS.append("--cpu")
|
|
48
|
+
|
|
32
49
|
if "Low VRAM" in MEMORY_PROFILE:
|
|
33
50
|
ARGS.append("--lowvram")
|
|
34
51
|
elif "High VRAM" in MEMORY_PROFILE:
|
|
@@ -3556,9 +3556,27 @@ def run_comfyui_mode():
|
|
|
3556
3556
|
continue
|
|
3557
3557
|
|
|
3558
3558
|
if on_colab:
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3559
|
+
while True:
|
|
3560
|
+
has_gpu = check_gpu()
|
|
3561
|
+
if not has_gpu:
|
|
3562
|
+
os.system('cls' if os.name == 'nt' else 'clear')
|
|
3563
|
+
print(f"\n{Fore.RED}⚠️ GPU NOT DETECTED ON COLAB!{Style.RESET_ALL}")
|
|
3564
|
+
print(f"\n{Fore.CYAN}👉 PLEASE FIX THIS NOW:{Style.RESET_ALL}")
|
|
3565
|
+
print(f" 1. Go to {Fore.YELLOW}Runtime -> Change runtime type{Fore.CYAN}")
|
|
3566
|
+
print(f" 2. Select {Fore.YELLOW}T4 GPU{Fore.CYAN}")
|
|
3567
|
+
print(f" 3. Click {Fore.YELLOW}Save{Fore.CYAN}")
|
|
3568
|
+
print(f"\n{Fore.WHITE}After switching, press Enter to retry or type 'cpu' to force slow CPU mode.{Style.RESET_ALL}")
|
|
3569
|
+
|
|
3570
|
+
user_resp = input(f"\n{Fore.LIGHTGREEN_EX}> {Style.RESET_ALL}").strip().lower()
|
|
3571
|
+
if user_resp == 'cpu':
|
|
3572
|
+
print(f"\n{Fore.YELLOW}⚠️ Forcing CPU mode... this will be extremely slow!{Style.RESET_ALL}")
|
|
3573
|
+
time.sleep(2)
|
|
3574
|
+
break
|
|
3575
|
+
continue
|
|
3576
|
+
else:
|
|
3577
|
+
print(f"\n{Fore.GREEN}✅ T4 GPU Detected! Proceeding...{Style.RESET_ALL}")
|
|
3578
|
+
time.sleep(1.5)
|
|
3579
|
+
break
|
|
3562
3580
|
|
|
3563
3581
|
print(f"\n{Fore.GREEN}🚀 Starting ComfyUI Setup & Session...{Style.RESET_ALL}")
|
|
3564
3582
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|