mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 10:22:59 +08:00
improve: download_url
update DB
This commit is contained in:
parent
12ababdb78
commit
ac66df1d76
10
__init__.py
10
__init__.py
@ -27,7 +27,7 @@ except:
|
|||||||
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
|
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
|
||||||
|
|
||||||
|
|
||||||
version = [1, 19, 1]
|
version = [1, 19, 2]
|
||||||
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
||||||
print(f"### Loading: ComfyUI-Manager ({version_str})")
|
print(f"### Loading: ComfyUI-Manager ({version_str})")
|
||||||
|
|
||||||
@ -1604,13 +1604,15 @@ async def install_model(request):
|
|||||||
if model_path is not None:
|
if model_path is not None:
|
||||||
print(f"Install model '{json_data['name']}' into '{model_path}'")
|
print(f"Install model '{json_data['name']}' into '{model_path}'")
|
||||||
|
|
||||||
if json_data['url'].startswith('https://github.com') or json_data['url'].startswith('https://huggingface.co'):
|
model_url = json_data['url']
|
||||||
|
|
||||||
|
if model_url.startswith('https://github.com') or model_url.startswith('https://huggingface.co') or model_url.startswith('https://heibox.uni-heidelberg.de'):
|
||||||
model_dir = get_model_dir(json_data)
|
model_dir = get_model_dir(json_data)
|
||||||
download_url(json_data['url'], model_dir)
|
download_url(model_url, model_dir, filename=json_data['filename'])
|
||||||
|
|
||||||
return web.json_response({}, content_type='application/json')
|
return web.json_response({}, content_type='application/json')
|
||||||
else:
|
else:
|
||||||
res = download_url_with_agent(json_data['url'], model_path)
|
res = download_url_with_agent(model_url, model_path)
|
||||||
else:
|
else:
|
||||||
print(f"Model installation error: invalid model type - {json_data['type']}")
|
print(f"Model installation error: invalid model type - {json_data['type']}")
|
||||||
|
|
||||||
|
|||||||
@ -3964,6 +3964,16 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "This is a custom node that lets you take advantage of Latent Diffusion Super Resolution (LDSR) models inside ComfyUI."
|
"description": "This is a custom node that lets you take advantage of Latent Diffusion Super Resolution (LDSR) models inside ComfyUI."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"author": "massao000",
|
||||||
|
"title": "ComfyUI_aspect_ratios",
|
||||||
|
"reference": "https://github.com/massao000/ComfyUI_aspect_ratios",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/massao000/ComfyUI_aspect_ratios"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Aspect ratio selector for ComfyUI based on [a/sd-webui-ar](https://github.com/alemelis/sd-webui-ar?tab=readme-ov-file)."
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2153,10 +2153,11 @@
|
|||||||
"0246.Pick",
|
"0246.Pick",
|
||||||
"0246.RandomInt",
|
"0246.RandomInt",
|
||||||
"0246.Script",
|
"0246.Script",
|
||||||
"0246.ScriptImbue",
|
|
||||||
"0246.ScriptNode",
|
"0246.ScriptNode",
|
||||||
"0246.ScriptPlan",
|
"0246.ScriptPile",
|
||||||
"0246.ScriptRule",
|
"0246.ScriptRule",
|
||||||
|
"0246.StrAdd",
|
||||||
|
"0246.StrAddBatch",
|
||||||
"0246.Stringify"
|
"0246.Stringify"
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
@ -4904,6 +4905,14 @@
|
|||||||
"title_aux": "comfyui-previewlatent"
|
"title_aux": "comfyui-previewlatent"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/massao000/ComfyUI_aspect_ratios": [
|
||||||
|
[
|
||||||
|
"Aspect Ratios Node"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI_aspect_ratios"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/matan1905/ComfyUI-Serving-Toolkit": [
|
"https://github.com/matan1905/ComfyUI-Serving-Toolkit": [
|
||||||
[
|
[
|
||||||
"DiscordServing",
|
"DiscordServing",
|
||||||
|
|||||||
@ -120,6 +120,16 @@
|
|||||||
"filename": "8x_NMKD-Superscale_150000_G.pth",
|
"filename": "8x_NMKD-Superscale_150000_G.pth",
|
||||||
"url": "https://huggingface.co/uwg/upscaler/resolve/main/ESRGAN/8x_NMKD-Superscale_150000_G.pth"
|
"url": "https://huggingface.co/uwg/upscaler/resolve/main/ESRGAN/8x_NMKD-Superscale_150000_G.pth"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "LDSR",
|
||||||
|
"type": "upscale",
|
||||||
|
"base": "upscale",
|
||||||
|
"save_path": "upscale_models/ldsr",
|
||||||
|
"description": "LDSR upscale model. Through the [a/ComfyUI-Flowty-LDSR](https://github.com/flowtyone/ComfyUI-Flowty-LDSR) extension, the upscale model can be utilized.",
|
||||||
|
"reference": "https://github.com/CompVis/latent-diffusion",
|
||||||
|
"filename": "last.ckpt",
|
||||||
|
"url": "https://heibox.uni-heidelberg.de/f/578df07c8fc04ffbadf3/?dl=1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Inswapper-fp16 (face swap)",
|
"name": "Inswapper-fp16 (face swap)",
|
||||||
"type": "insightface",
|
"type": "insightface",
|
||||||
|
|||||||
@ -20,6 +20,16 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "This is a custom node that lets you take advantage of Latent Diffusion Super Resolution (LDSR) models inside ComfyUI."
|
"description": "This is a custom node that lets you take advantage of Latent Diffusion Super Resolution (LDSR) models inside ComfyUI."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"author": "massao000",
|
||||||
|
"title": "ComfyUI_aspect_ratios",
|
||||||
|
"reference": "https://github.com/massao000/ComfyUI_aspect_ratios",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/massao000/ComfyUI_aspect_ratios"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "Aspect ratio selector for ComfyUI based on [a/sd-webui-ar](https://github.com/alemelis/sd-webui-ar?tab=readme-ov-file)."
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"author": "Crystian",
|
"author": "Crystian",
|
||||||
"title": "Crystools-save",
|
"title": "Crystools-save",
|
||||||
|
|||||||
@ -2153,10 +2153,11 @@
|
|||||||
"0246.Pick",
|
"0246.Pick",
|
||||||
"0246.RandomInt",
|
"0246.RandomInt",
|
||||||
"0246.Script",
|
"0246.Script",
|
||||||
"0246.ScriptImbue",
|
|
||||||
"0246.ScriptNode",
|
"0246.ScriptNode",
|
||||||
"0246.ScriptPlan",
|
"0246.ScriptPile",
|
||||||
"0246.ScriptRule",
|
"0246.ScriptRule",
|
||||||
|
"0246.StrAdd",
|
||||||
|
"0246.StrAddBatch",
|
||||||
"0246.Stringify"
|
"0246.Stringify"
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
@ -4904,6 +4905,14 @@
|
|||||||
"title_aux": "comfyui-previewlatent"
|
"title_aux": "comfyui-previewlatent"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"https://github.com/massao000/ComfyUI_aspect_ratios": [
|
||||||
|
[
|
||||||
|
"Aspect Ratios Node"
|
||||||
|
],
|
||||||
|
{
|
||||||
|
"title_aux": "ComfyUI_aspect_ratios"
|
||||||
|
}
|
||||||
|
],
|
||||||
"https://github.com/matan1905/ComfyUI-Serving-Toolkit": [
|
"https://github.com/matan1905/ComfyUI-Serving-Toolkit": [
|
||||||
[
|
[
|
||||||
"DiscordServing",
|
"DiscordServing",
|
||||||
|
|||||||
@ -10,6 +10,16 @@
|
|||||||
"filename": "control_sd15_inpaint_depth_hand_fp16.safetensors",
|
"filename": "control_sd15_inpaint_depth_hand_fp16.safetensors",
|
||||||
"url": "https://huggingface.co/hr16/ControlNet-HandRefiner-pruned/resolve/main/control_sd15_inpaint_depth_hand_fp16.safetensors"
|
"url": "https://huggingface.co/hr16/ControlNet-HandRefiner-pruned/resolve/main/control_sd15_inpaint_depth_hand_fp16.safetensors"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "LDSR",
|
||||||
|
"type": "upscale",
|
||||||
|
"base": "upscale",
|
||||||
|
"save_path": "upscale_models/ldsr",
|
||||||
|
"description": "LDSR upscale model. Through the [a/ComfyUI-Flowty-LDSR](https://github.com/flowtyone/ComfyUI-Flowty-LDSR) extension, the upscale model can be utilized.",
|
||||||
|
"reference": "https://github.com/CompVis/latent-diffusion",
|
||||||
|
"filename": "last.ckpt",
|
||||||
|
"url": "https://heibox.uni-heidelberg.de/f/578df07c8fc04ffbadf3/?dl=1"
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "ip-adapter-faceid_sd15.bin",
|
"name": "ip-adapter-faceid_sd15.bin",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user