Skip to content

Commit 6d8c10f

Browse files
author
Chris Sreesangkom
committed
done
1 parent e77e4de commit 6d8c10f

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

substrate/core/models.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ class Config:
977977
"""
978978
fps: Annotated[int, Field(ge=1)] = 7
979979
"""
980-
Frames per second of the generated video.
980+
Frames per second of the generated video. Ignored if output format is `frames`.
981981
"""
982982
motion_bucket_id: int = 180
983983
"""
@@ -1021,11 +1021,11 @@ class Config:
10211021
"""
10221022
fps: Annotated[int, Field(ge=1)] = 7
10231023
"""
1024-
Frames per second of the generated video.
1024+
Frames per second of the generated video. Ignored if output format is `frames`.
10251025
"""
1026-
num_rounds: Annotated[int, Field(ge=1)] = 2
1026+
num_steps: Annotated[int, Field(ge=1)] = 2
10271027
"""
1028-
Number of rounds of interpolation. Each round interpolates between all adjacent frames. This also includes the interpolated frames from the previous round.
1028+
Number of interpolation steps. Each step adds an interpolated frame between adjacent frames. For example, 2 steps over 2 frames produces 5 frames.
10291029
"""
10301030

10311031

substrate/future_dataclass_models.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ class FutureStableVideoDiffusionIn:
12391239
fps: int = 7
12401240
"""
12411241
(Future reference)
1242-
Frames per second of the generated video.
1242+
Frames per second of the generated video. Ignored if output format is `frames`.
12431243
"""
12441244
motion_bucket_id: int = 180
12451245
"""
@@ -1295,12 +1295,12 @@ class FutureInterpolateFramesIn:
12951295
fps: int = 7
12961296
"""
12971297
(Future reference)
1298-
Frames per second of the generated video.
1298+
Frames per second of the generated video. Ignored if output format is `frames`.
12991299
"""
1300-
num_rounds: int = 2
1300+
num_steps: int = 2
13011301
"""
13021302
(Future reference)
1303-
Number of rounds of interpolation. Each round interpolates between all adjacent frames. This also includes the interpolated frames from the previous round.
1303+
Number of interpolation steps. Each step adds an interpolated frame between adjacent frames. For example, 2 steps over 2 frames produces 5 frames.
13041304
"""
13051305

13061306

substrate/nodes.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ def __init__(
969969
store: Use "hosted" to return a video URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the video data will be returned as a base64-encoded string.
970970
output_format: Output video format.
971971
seed: Seed for deterministic generation. Default is a random seed.
972-
fps: Frames per second of the generated video.
972+
fps: Frames per second of the generated video. Ignored if output format is `frames`.
973973
motion_bucket_id: The motion bucket id to use for the generated video. This can be used to control the motion of the generated video. Increasing the motion bucket id increases the motion of the generated video.
974974
noise: The amount of noise added to the conditioning image. The higher the values the less the video resembles the conditioning image. Increasing this value also increases the motion of the generated video.
975975
@@ -1008,7 +1008,7 @@ def __init__(
10081008
store: Optional[str] = None,
10091009
output_format: Literal["gif", "webp", "mp4", "frames"] = "gif",
10101010
fps: int = 7,
1011-
num_rounds: int = 2,
1011+
num_steps: int = 2,
10121012
hide: bool = False,
10131013
**kwargs,
10141014
):
@@ -1017,8 +1017,8 @@ def __init__(
10171017
frame_uris: Frames.
10181018
store: Use "hosted" to return a video URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the video data will be returned as a base64-encoded string.
10191019
output_format: Output video format.
1020-
fps: Frames per second of the generated video.
1021-
num_rounds: Number of rounds of interpolation. Each round interpolates between all adjacent frames. This also includes the interpolated frames from the previous round.
1020+
fps: Frames per second of the generated video. Ignored if output format is `frames`.
1021+
num_steps: Number of interpolation steps. Each step adds an interpolated frame between adjacent frames. For example, 2 steps over 2 frames produces 5 frames.
10221022
10231023
https://substrate.run/nodes#InterpolateFrames
10241024
"""
@@ -1027,7 +1027,7 @@ def __init__(
10271027
store=store,
10281028
output_format=output_format,
10291029
fps=fps,
1030-
num_rounds=num_rounds,
1030+
num_steps=num_steps,
10311031
hide=hide,
10321032
out_type=InterpolateFramesOut,
10331033
**kwargs,

substrate/typeddict_models.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ class StableVideoDiffusionIn(TypedDict):
832832
"""
833833
fps: NotRequired[int]
834834
"""
835-
Frames per second of the generated video.
835+
Frames per second of the generated video. Ignored if output format is `frames`.
836836
"""
837837
motion_bucket_id: NotRequired[int]
838838
"""
@@ -870,11 +870,11 @@ class InterpolateFramesIn(TypedDict):
870870
"""
871871
fps: NotRequired[int]
872872
"""
873-
Frames per second of the generated video.
873+
Frames per second of the generated video. Ignored if output format is `frames`.
874874
"""
875-
num_rounds: NotRequired[int]
875+
num_steps: NotRequired[int]
876876
"""
877-
Number of rounds of interpolation. Each round interpolates between all adjacent frames. This also includes the interpolated frames from the previous round.
877+
Number of interpolation steps. Each step adds an interpolated frame between adjacent frames. For example, 2 steps over 2 frames produces 5 frames.
878878
"""
879879

880880

0 commit comments

Comments
 (0)