mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 14:16:57 +00:00
small fixes
This commit is contained in:
parent
bc9121ffc6
commit
fd379e6e90
@ -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
4
wgp.py
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user