From ec90d8e77d96d3f6a334e597ff0c57397b432ec9 Mon Sep 17 00:00:00 2001 From: comfy-gpu-ci Date: Fri, 8 May 2026 15:36:29 +0200 Subject: [PATCH 1/5] Show download progress in ComfyUI UI Add _comfy_tqdm() bridge so hf_hub_download/snapshot_download progress shows in ComfyUI's progress bar instead of only in the terminal. --- nodes/load_model.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/nodes/load_model.py b/nodes/load_model.py index b0d6425..47930c2 100644 --- a/nodes/load_model.py +++ b/nodes/load_model.py @@ -15,6 +15,31 @@ from comfy_api.latest import io log = logging.getLogger("sharp") + +def _comfy_tqdm(): + """tqdm that shows download progress in ComfyUI's UI.""" + try: + import comfy.utils + import tqdm as _tqdm_mod + except ImportError: + return None + holder = {"pbar": None, "total": 0, "done": 0} + class _T(_tqdm_mod.tqdm): + def __init__(self, *a, **kw): + super().__init__(*a, **kw) + if self.total and self.total > 0 and holder["pbar"] is None: + holder["total"] = self.total + holder["done"] = 0 + holder["pbar"] = comfy.utils.ProgressBar(self.total) + def update(self, n=1): + ret = super().update(n) + if n and holder["pbar"] and holder["total"] > 0: + holder["done"] = min(holder["done"] + n, holder["total"]) + holder["pbar"].update_absolute(holder["done"], holder["total"]) + return ret + return _T + + # Try to get ComfyUI models directory try: import folder_paths @@ -165,6 +190,7 @@ class LoadSharpModel(io.ComfyNode): repo_id=SHARP_REPO_ID, filename=SHARP_FILENAME, local_dir=MODELS_DIR, + tqdm_class=_comfy_tqdm(), ) log.info(f"SHARP config: precision={precision} -> dtype={dtype_str}, path={model_path}") From 48b9eb6524e6a2d0ee36fb71454d8e28e4b3d175 Mon Sep 17 00:00:00 2001 From: PozzettiAndrea Date: Sat, 9 May 2026 11:43:41 +0200 Subject: [PATCH 2/5] bump comfy env --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f4cefea..2466607 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -comfy-env==0.3.75 +comfy-env==0.3.76 comfy-3d-viewers==0.2.44 \ No newline at end of file From e9dd8d8858478b5744e05174889d143ed436106f Mon Sep 17 00:00:00 2001 From: PozzettiAndrea Date: Sat, 9 May 2026 13:19:37 +0200 Subject: [PATCH 3/5] bump comfy env --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2466607..1d71284 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -comfy-env==0.3.76 +comfy-env==0.3.77 comfy-3d-viewers==0.2.44 \ No newline at end of file From 855dc761ad0bc82fa04f610cbe09d98867e8257f Mon Sep 17 00:00:00 2001 From: PozzettiAndrea Date: Sat, 9 May 2026 15:22:04 +0200 Subject: [PATCH 4/5] bump comfy env --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1d71284..bd164be 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -comfy-env==0.3.77 +comfy-env==0.3.78 comfy-3d-viewers==0.2.44 \ No newline at end of file From ac4628bf6a2f4a2116544bcdd9d62cdd85b4b3e1 Mon Sep 17 00:00:00 2001 From: PozzettiAndrea Date: Sat, 9 May 2026 18:08:43 +0200 Subject: [PATCH 5/5] bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ba0357e..a49bb5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-sharp" description = "ComfyUI wrapper around Apple's latest SHARP model (ml-sharp). Monocular 3D Gaussian Splatting in under 1 second. Generate 3D Gaussians from a single image using Apple's SHARP model." -version = "0.1.7" +version = "0.1.8" license = {file = "LICENSE"}