small fixes

This commit is contained in:
DeepBeepMeep 2025-05-04 16:57:12 +02:00
parent bc9121ffc6
commit fd379e6e90
2 changed files with 5 additions and 3 deletions

View File

@ -627,7 +627,9 @@ def main():
user_prompt,
input_img,
frame_num=frame_count,
max_area=MAX_AREA_CONFIGS[f"{width}*{height}"], # or you can pass your custom
width=width,
height=height,
# max_area=MAX_AREA_CONFIGS[f"{width}*{height}"], # or you can pass your custom
shift=args.flow_shift,
sampling_steps=args.steps,
guide_scale=args.guidance_scale,

4
wgp.py
View File

@ -764,8 +764,8 @@ def load_queue_action(filepath, state, evt:gr.EventData):
primary_preview_pil_list, secondary_preview_pil_list = get_preview_images(params)
start_b64 = [pil_to_base64_uri(primary_preview_pil_list[0], format="jpeg", quality=70)] if primary_preview_pil_list and primary_preview_pil_list[0] else None
end_b64 = [pil_to_base64_uri(secondary_preview_pil_list[0], format="jpeg", quality=70)] if secondary_preview_pil_list and secondary_preview_pil_list[0] else None
start_b64 = [pil_to_base64_uri(primary_preview_pil_list[0], format="jpeg", quality=70)] if isinstance(primary_preview_pil_list, list) and primary_preview_pil_list else None
end_b64 = [pil_to_base64_uri(secondary_preview_pil_list[0], format="jpeg", quality=70)] if isinstance(secondary_preview_pil_list, list) and secondary_preview_pil_list else None
top_level_start_image = params.get("image_start") or params.get("image_refs")
top_level_end_image = params.get("image_end")