mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-03 04:27:05 +08:00
save
This commit is contained in:
parent
9707f9d4b0
commit
92d72ea4a6
@ -621,7 +621,7 @@ class WanTrackToVideo:
|
|||||||
|
|
||||||
# Parse tracks from JSON
|
# Parse tracks from JSON
|
||||||
tracks_data = parse_json_tracks(tracks)
|
tracks_data = parse_json_tracks(tracks)
|
||||||
|
print(f"parsed tracks: {tracks}")
|
||||||
if tracks_data:
|
if tracks_data:
|
||||||
# Convert tracks to tensor format
|
# Convert tracks to tensor format
|
||||||
arrs = []
|
arrs = []
|
||||||
@ -631,6 +631,7 @@ class WanTrackToVideo:
|
|||||||
|
|
||||||
tracks_np = np.stack(arrs, axis=0)
|
tracks_np = np.stack(arrs, axis=0)
|
||||||
processed_tracks = process_tracks(tracks_np, (width, height)).unsqueeze(0)
|
processed_tracks = process_tracks(tracks_np, (width, height)).unsqueeze(0)
|
||||||
|
print(f"Processed tracks: {processed_tracks}") # Debugging line
|
||||||
|
|
||||||
if start_image is not None:
|
if start_image is not None:
|
||||||
start_image = comfy.utils.common_upscale(start_image[:length].movedim(-1, 1), width, height, "bilinear", "center").movedim(1, -1)
|
start_image = comfy.utils.common_upscale(start_image[:length].movedim(-1, 1), width, height, "bilinear", "center").movedim(1, -1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user