From 6bdf6f0448ecdcb05e4bfb336be4562308e6002c Mon Sep 17 00:00:00 2001 From: songkey-win Date: Tue, 17 Jun 2025 16:58:59 +0800 Subject: [PATCH] upload models --- example_workflows/image_generation.json | 2 +- example_workflows/image_style_transfer.json | 159 ++++++++++---------- hellomeme/model_config.json | 10 +- hellomeme/models/hm_adapters.py | 4 +- pyproject.toml | 2 +- 5 files changed, 92 insertions(+), 85 deletions(-) diff --git a/example_workflows/image_generation.json b/example_workflows/image_generation.json index 7b2c5f1..ba9ea46 100644 --- a/example_workflows/image_generation.json +++ b/example_workflows/image_generation.json @@ -514,7 +514,7 @@ "[preset]DisneyPixarCartoonB", "None", "same as checkpoint", - "v5", + "v5b", "x1", "huggingface", 1, diff --git a/example_workflows/image_style_transfer.json b/example_workflows/image_style_transfer.json index dc7cd63..6d9640d 100644 --- a/example_workflows/image_style_transfer.json +++ b/example_workflows/image_style_transfer.json @@ -346,41 +346,12 @@ "", "", 25, - 778376016259914, + 522873230123463, "randomize", 1.2000000000000002, 0 ] }, - { - "id": 80, - "type": "PreviewImage", - "pos": [ - 1706.34228515625, - 92.85418701171875 - ], - "size": [ - 426.67877197265625, - 454.14093017578125 - ], - "flags": {}, - "order": 10, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 187 - } - ], - "outputs": [], - "properties": { - "cnr_id": "comfy-core", - "ver": "0.3.39", - "Node name for S&R": "PreviewImage" - }, - "widgets_values": [] - }, { "id": 81, "type": "GetFaceLandmarks", @@ -420,7 +391,8 @@ "cnr_id": "comfyui_hellomeme", "ver": "56e8052c9b449621b029226988b0ed7d2dc96b4c", "Node name for S&R": "GetFaceLandmarks" - } + }, + "widgets_values": [] }, { "id": 75, @@ -584,12 +556,41 @@ "", "", 25, - 661833773290484, + 31135348487980, "randomize", 1.2000000000000002, 0 ] }, + { + "id": 80, + "type": "PreviewImage", + "pos": [ + 1706.34228515625, + 92.85418701171875 + ], + "size": [ + 426.67877197265625, + 454.14093017578125 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 187 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.39", + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, { "id": 86, "type": "PreviewImage", @@ -598,8 +599,8 @@ 703.9863891601562 ], "size": [ - 535.2344360351562, - 631.5162963867188 + 522.350341796875, + 553.1380004882812 ], "flags": {}, "order": 14, @@ -619,6 +620,47 @@ }, "widgets_values": [] }, + { + "id": 78, + "type": "HMImagePipelineLoader", + "pos": [ + 797.7930297851562, + 188.84007263183594 + ], + "size": [ + 298.3472595214844, + 226 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "hm_image_pipeline", + "type": "HMIMAGEPIPELINE", + "links": [ + 182, + 199 + ] + } + ], + "properties": { + "cnr_id": "comfyui_hellomeme", + "ver": "56e8052c9b449621b029226988b0ed7d2dc96b4c", + "Node name for S&R": "HMImagePipelineLoader" + }, + "widgets_values": [ + "[preset]animeanything_v10", + "[preset]ghibli_anime_v1", + "same as checkpoint", + "v5b", + "x1", + "huggingface", + 1, + "fp32" + ] + }, { "id": 58, "type": "LoadImage", @@ -631,7 +673,7 @@ 314 ], "flags": {}, - "order": 1, + "order": 2, "mode": 0, "inputs": [], "outputs": [ @@ -660,50 +702,9 @@ "Node name for S&R": "LoadImage" }, "widgets_values": [ - "hinton1.jpg", + "chillout.jpg", "image" ] - }, - { - "id": 78, - "type": "HMImagePipelineLoader", - "pos": [ - 797.7930297851562, - 188.84007263183594 - ], - "size": [ - 298.3472595214844, - 226 - ], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "hm_image_pipeline", - "type": "HMIMAGEPIPELINE", - "links": [ - 182, - 199 - ] - } - ], - "properties": { - "cnr_id": "comfyui_hellomeme", - "ver": "56e8052c9b449621b029226988b0ed7d2dc96b4c", - "Node name for S&R": "HMImagePipelineLoader" - }, - "widgets_values": [ - "[preset]toonyou_beta6", - "[preset]Drawing", - "same as checkpoint", - "v5b", - "x1", - "huggingface", - 1, - "fp32" - ] } ], "links": [ @@ -978,8 +979,8 @@ "ds": { "scale": 0.8264462809917358, "offset": [ - 148.58950276642736, - 102.78195962059476 + 134.29123083527662, + 160.15280889275093 ] }, "frontendVersion": "1.19.2" diff --git a/hellomeme/model_config.json b/hellomeme/model_config.json index 8d4c029..0398789 100644 --- a/hellomeme/model_config.json +++ b/hellomeme/model_config.json @@ -13,13 +13,19 @@ "[preset]epicphotogasm_ultimateFidelity": "songkey/epicphotogasm_ultimateFidelity", "[preset]epicrealism_naturalSinRC1VAE": "songkey/epicrealism_naturalSinRC1VAE", "[preset]xxmix9realistic_v40": "songkey/xxmix9realistic_v40", - "[preset]cyberrealistic_v80": "songkey/cyberrealistic_v80" + "[preset]cyberrealistic_v80": "songkey/cyberrealistic_v80", + "[preset]animeanything_v10": "songkey/animeanything_v10" }, "loras": { "[preset]BabyFaceV1": ["songkey/loras_sd_1_5", "baby_face_v1.safetensors"], "[preset]MoreDetails": ["songkey/loras_sd_1_5", "more_details.safetensors"], "[preset]PixelPortraitV1": ["songkey/loras_sd_1_5", "pixel-portrait-v1.safetensors"], - "[preset]Drawing": ["songkey/loras_sd_1_5", "Drawing.safetensors"] + "[preset]Drawing": ["songkey/loras_sd_1_5", "Drawing.safetensors"], + "[preset]anime_extract": ["songkey/loras_sd_1_5", "anime_extract.safetensors"], + "[preset]animemix_v3_offset": ["songkey/loras_sd_1_5", "animemix_v3_offset.safetensors"], + "[preset]animeoutlineV4_16": ["songkey/loras_sd_1_5", "animeoutlineV4_16.safetensors"], + "[preset]ghibli_anime_v1": ["songkey/loras_sd_1_5", "ghibli_anime_v1.safetensors"], + "[preset]zyd232_InkStyle_v1_0": ["songkey/loras_sd_1_5", "zyd232_InkStyle_v1_0.safetensors"] } }, "prompt": "(best quality), highly detailed, ultra-detailed, headshot, person, well-placed five sense organs, looking at the viewer, centered composition, sharp focus, realistic skin texture", diff --git a/hellomeme/models/hm_adapters.py b/hellomeme/models/hm_adapters.py index f971ed2..6e8a1eb 100644 --- a/hellomeme/models/hm_adapters.py +++ b/hellomeme/models/hm_adapters.py @@ -445,8 +445,8 @@ class CopyWeights(object): config = dict(unet.config) # Need this for backwards compatibility with UNet2DConditionModel checkpoints - if not config.get("num_attention_heads"): - config["num_attention_heads"] = config["attention_head_dim"] + # if not config.get("num_attention_heads"): + # config["num_attention_heads"] = config["attention_head_dim"] config = FrozenDict(config) model = cls.from_config(config) diff --git a/pyproject.toml b/pyproject.toml index 4d72963..65cdcf0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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.13" +version = "1.3.14" license = {file = "LICENSE"} [project.urls]