Skip to content

Commit 0112a4e

Browse files
authored
合并来自rayers/test的拉取请求#18
fix metadata
2 parents 087ffdb + 8115363 commit 0112a4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Mflux_Comfy/Mflux_Core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def generate_image(prompt, model, seed, width, height, steps, guidance, quantize
6868
quantize = None if quantize == "None" else int(quantize)
6969
seed = random.randint(0, 0xffffffffffffffff) if seed == -1 else int(seed)
7070
print(f"Using seed: {seed}")
71-
steps = min(max(steps, 2), 4) if model == "schnell" else steps
71+
# steps = min(max(steps, 2), 4) if model == "schnell" else steps
7272

7373
flux = load_or_create_flux(model, quantize, Local_model if Local_model else None, lora_paths, lora_scales, ControlNet is not None)
7474

@@ -168,7 +168,7 @@ def generate_image(prompt, model, seed, width, height, steps, guidance, quantize
168168

169169
return (tensor_image,)
170170

171-
def save_images_with_metadata(images, prompt, model, quantize, Local_model, seed, height, width, steps, guidance, lora_paths, lora_scales, image_path, strength, filename_prefix="Mflux", full_prompt=None, extra_pnginfo=None):
171+
def save_images_with_metadata(images, prompt, model, quantize, Local_model, seed, height, width, steps, guidance, lora_paths, lora_scales, image_path, image_strength, filename_prefix="Mflux", full_prompt=None, extra_pnginfo=None):
172172

173173
output_dir = folder_paths.get_output_directory()
174174
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(
@@ -215,7 +215,7 @@ def save_images_with_metadata(images, prompt, model, quantize, Local_model, seed
215215
"guidance": guidance if model == "dev" else None,
216216
"Local_model": Local_model,
217217
"init_image_path": image_path,
218-
"init_image_strength": strength,
218+
"init_image_strength": image_strength,
219219
"lora_paths": lora_paths,
220220
"lora_scales": lora_scales,
221221
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "mflux-comfyui"
33
description = "Simple use of [a/Mflux](https://github.com/filipstrand/mflux) in ComfyUI, suitable for users who are not familiar with terminal usage.\nNOTE: A MLX port of FLUX based on the Huggingface Diffusers implementation."
4-
version = "1.2.4"
4+
version = "1.2.5"
55
license = {file = "LICENSE"}
66
dependencies = ["mflux==0.4.1"]
77

0 commit comments

Comments
 (0)