From ce368e562f530b9efaf623b72e619b50b82a1ead Mon Sep 17 00:00:00 2001 From: songkey-win Date: Thu, 5 Jun 2025 17:46:10 +0800 Subject: [PATCH] hide default prompt --- example_workflows/image_generation.json | 2 +- example_workflows/image_style_transfer.json | 2 +- example_workflows/video_generation.json | 2 +- meme.py | 12 ++++++++---- pyproject.toml | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/example_workflows/image_generation.json b/example_workflows/image_generation.json index e703995..7b2c5f1 100644 --- a/example_workflows/image_generation.json +++ b/example_workflows/image_generation.json @@ -407,7 +407,7 @@ }, "widgets_values": [ 0, - "(best quality), highly detailed, ultra-detailed, headshot, person, well-placed five sense organs, looking at the viewer, centered composition, sharp focus, realistic skin texture", + "", "", 25, 815482659530374, diff --git a/example_workflows/image_style_transfer.json b/example_workflows/image_style_transfer.json index 7cf1150..fd034f1 100644 --- a/example_workflows/image_style_transfer.json +++ b/example_workflows/image_style_transfer.json @@ -406,7 +406,7 @@ }, "widgets_values": [ 0, - "(best quality), highly detailed, ultra-detailed, headshot, person, well-placed five sense organs, looking at the viewer, centered composition, sharp focus, realistic skin texture", + "", "", 25, 485743939425196, diff --git a/example_workflows/video_generation.json b/example_workflows/video_generation.json index a83c8be..9e0ea06 100644 --- a/example_workflows/video_generation.json +++ b/example_workflows/video_generation.json @@ -348,7 +348,7 @@ "widgets_values": [ 0, 4, - "(best quality), highly detailed, ultra-detailed, headshot, person, well-placed five sense organs, looking at the viewer, centered composition, sharp focus, realistic skin texture", + "", "", 25, 1075819929118817, diff --git a/meme.py b/meme.py index faeb666..7ba1516 100644 --- a/meme.py +++ b/meme.py @@ -328,7 +328,7 @@ class HMPipelineImage: "drive_head_pose": ("HEAD_POSE",), "drive_expression": ("EXPRESSION",), "trans_ratio": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.1}), - "prompt": ("STRING", {"default": DEFAULT_PROMPT}), + "prompt": ("STRING", {"default": ''}), "negative_prompt": ("STRING", {"default": ''}), "steps": ("INT", {"default": 25, "min": 1, "max": 10000, "tooltip": "The number of steps used in the denoising process."}), @@ -350,7 +350,7 @@ class HMPipelineImage: drive_head_pose, drive_expression, trans_ratio='0.0', - prompt=DEFAULT_PROMPT, + prompt='', negative_prompt='', steps=25, seed=0, @@ -360,6 +360,8 @@ class HMPipelineImage: device = get_torch_device(gpu_id) dtype = hm_image_pipeline.dtype + prompt = DEFAULT_PROMPT if prompt == '' else prompt + ", " + DEFAULT_PROMPT + image_np = cv2.cvtColor(ref_head_pose['frame'][0], cv2.COLOR_BGR2RGB) image_pil = Image.fromarray(image_np) @@ -401,7 +403,7 @@ class HMPipelineVideo: "drive_expression": ("EXPRESSION",), "trans_ratio": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.1}), "patch_overlap": ("INT", {"default": 4, "min": 0, "max": 5}), - "prompt": ("STRING", {"default": DEFAULT_PROMPT}), + "prompt": ("STRING", {"default": ''}), "negative_prompt": ("STRING", {"default": ''}), "steps": ("INT", {"default": 25, "min": 1, "max": 10000, "tooltip": "The number of steps used in the denoising process."}), @@ -424,7 +426,7 @@ class HMPipelineVideo: drive_expression, trans_ratio=0.0, patch_overlap=4, - prompt=DEFAULT_PROMPT, + prompt='', negative_prompt="", steps=25, seed=0, @@ -434,6 +436,8 @@ class HMPipelineVideo: device = get_torch_device(gpu_id) dtype = hm_video_pipeline.dtype + prompt = DEFAULT_PROMPT if prompt == '' else prompt + ", " + DEFAULT_PROMPT + image_np = cv2.cvtColor(ref_head_pose['frame'][0], cv2.COLOR_BGR2RGB) image_pil = Image.fromarray(image_np) diff --git a/pyproject.toml b/pyproject.toml index 16b2f3e..919ad07 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.10" +version = "1.3.11" license = {file = "LICENSE"} [project.urls]