fixed a bug

This commit is contained in:
songkey-win
2025-06-27 14:22:54 +08:00
parent 2b3d8a1b63
commit ec1ed65301
4 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -514,7 +514,7 @@
"[preset]DisneyPixarCartoonB",
"None",
"same as checkpoint",
"v5b",
"v5c",
"x1",
"huggingface",
1,
+1 -1
View File
@@ -211,7 +211,7 @@
"[preset]animeanything_v10",
"[preset]ghibli_anime_v1",
"same as checkpoint",
"v5b",
"v5c",
"x1",
"huggingface",
1.2,
+8 -2
View File
@@ -156,10 +156,16 @@ def creat_model_from_cloud(model_cls,
print(e)
assert False, "@@ Failed to download model from modelscope (using `hugginface`)"
model = model_cls.from_pretrained(model_path, subfolder=subfolder)
if subfolder is None:
model = model_cls.from_pretrained(model_path)
else:
model = model_cls.from_pretrained(model_path, subfolder=subfolder)
else:
try:
model = model_cls.from_pretrained(model_id, subfolder=subfolder, cache_dir=cache_dir, token=hf_token)
if subfolder is None:
model = model_cls.from_pretrained(model_id, cache_dir=cache_dir, token=hf_token)
else:
model = model_cls.from_pretrained(model_id, subfolder=subfolder, cache_dir=cache_dir, token=hf_token)
except Exception as e:
print(e)
assert False, "@@ `huggingface-cli login` or using `modelscope`"
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui_hellomeme"
description = "This repository is the official implementation of the [a/HelloMeme](https://arxiv.org/pdf/2410.22901) ComfyUI interface"
version = "1.3.24"
version = "1.3.25"
license = {file = "LICENSE"}
[project.urls]