Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
csreesan committed Aug 6, 2024
1 parent 99928cd commit 8b640e0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions substrate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
SegmentAnything,
BatchComputeJSON,
BatchComputeText,
InterpolateFrame,
ListVectorStores,
Llama3Instruct8B,
MultiComputeJSON,
Expand All @@ -41,7 +42,6 @@
Mistral7BInstruct,
MultiInpaintImage,
SegmentUnderPoint,
FrameInterpolation,
MultiGenerateImage,
Mixtral8x7BInstruct,
StableVideoDiffusion,
Expand Down Expand Up @@ -84,7 +84,7 @@
"StableDiffusionXLInpaint",
"StableDiffusionXLControlNet",
"StableVideoDiffusion",
"FrameInterpolation",
"InterpolateFrame",
"TranscribeSpeech",
"GenerateSpeech",
"RemoveBackground",
Expand Down
4 changes: 2 additions & 2 deletions substrate/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ class Config:
"""


class FrameInterpolationIn(BaseModel):
class InterpolateFrameIn(BaseModel):
class Config:
extra = Extra.allow

Expand All @@ -1029,7 +1029,7 @@ class Config:
"""


class FrameInterpolationOut(BaseModel):
class InterpolateFrameOut(BaseModel):
class Config:
extra = Extra.allow

Expand Down
8 changes: 4 additions & 4 deletions substrate/future_dataclass_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1272,9 +1272,9 @@ class FutureStableVideoDiffusionOut:


@dataclass
class FutureFrameInterpolationIn:
class FutureInterpolateFrameIn:
"""
Future reference to FutureFrameInterpolationIn
Future reference to FutureInterpolateFrameIn
"""

frame_uris: List[str]
Expand Down Expand Up @@ -1305,9 +1305,9 @@ class FutureFrameInterpolationIn:


@dataclass
class FutureFrameInterpolationOut:
class FutureInterpolateFrameOut:
"""
Future reference to FutureFrameInterpolationOut
Future reference to FutureInterpolateFrameOut
"""

video_uri: Optional[str] = None
Expand Down
18 changes: 9 additions & 9 deletions substrate/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
SegmentAnythingOut,
BatchComputeJSONOut,
BatchComputeTextOut,
InterpolateFrameOut,
ListVectorStoresOut,
Llama3Instruct8BOut,
MultiComputeJSONOut,
Expand All @@ -50,7 +51,6 @@
Mistral7BInstructOut,
MultiInpaintImageOut,
SegmentUnderPointOut,
FrameInterpolationOut,
MultiGenerateImageOut,
Mixtral8x7BInstructOut,
StableVideoDiffusionOut,
Expand Down Expand Up @@ -89,6 +89,7 @@
FutureSegmentAnythingOut,
FutureBatchComputeJSONOut,
FutureBatchComputeTextOut,
FutureInterpolateFrameOut,
FutureListVectorStoresOut,
FutureLlama3Instruct8BOut,
FutureMultiComputeJSONOut,
Expand All @@ -101,7 +102,6 @@
FutureMistral7BInstructOut,
FutureMultiInpaintImageOut,
FutureSegmentUnderPointOut,
FutureFrameInterpolationOut,
FutureMultiGenerateImageOut,
FutureMixtral8x7BInstructOut,
FutureStableVideoDiffusionOut,
Expand Down Expand Up @@ -999,8 +999,8 @@ def future(self) -> FutureStableVideoDiffusionOut: # type: ignore
return super().future # type: ignore


class FrameInterpolation(CoreNode[FrameInterpolationOut]):
"""https://substrate.run/nodes#FrameInterpolation"""
class InterpolateFrame(CoreNode[InterpolateFrameOut]):
"""https://substrate.run/nodes#InterpolateFrame"""

def __init__(
self,
Expand All @@ -1020,7 +1020,7 @@ def __init__(
fps: Frames per second of the generated video.
num_rounds: Number of rounds of interpolation. Each round interpolates between all adjacent frames. This also includes the interpolated frames from the previous round.
https://substrate.run/nodes#FrameInterpolation
https://substrate.run/nodes#InterpolateFrame
"""
super().__init__(
frame_uris=frame_uris,
Expand All @@ -1029,17 +1029,17 @@ def __init__(
fps=fps,
num_rounds=num_rounds,
hide=hide,
out_type=FrameInterpolationOut,
out_type=InterpolateFrameOut,
**kwargs,
)
self.node = "FrameInterpolation"
self.node = "InterpolateFrame"

@property
def future(self) -> FutureFrameInterpolationOut: # type: ignore
def future(self) -> FutureInterpolateFrameOut: # type: ignore
"""
Future reference to this node's output.
https://substrate.run/nodes#FrameInterpolation
https://substrate.run/nodes#InterpolateFrame
"""
return super().future # type: ignore

Expand Down
4 changes: 2 additions & 2 deletions substrate/typeddict_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ class StableVideoDiffusionOut(TypedDict):
"""


class FrameInterpolationIn(TypedDict):
class InterpolateFrameIn(TypedDict):
frame_uris: NotRequired[List[str]]
"""
Frames.
Expand All @@ -878,7 +878,7 @@ class FrameInterpolationIn(TypedDict):
"""


class FrameInterpolationOut(TypedDict):
class InterpolateFrameOut(TypedDict):
video_uri: NotRequired[str]
"""
Generated video.
Expand Down

0 comments on commit 8b640e0

Please sign in to comment.