Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions decart/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
RealTimeModels = Literal[
# Canonical names
"lucy-2.1",
"lucy-2.5",
"lucy-vton-2",
"lucy-vton-3",
"lucy-restyle-2",
Expand All @@ -22,6 +23,7 @@
# Canonical names
"lucy-clip",
"lucy-2.1",
"lucy-2.5",
"lucy-vton-2",
"lucy-vton-3",
"lucy-restyle-2",
Expand Down Expand Up @@ -184,6 +186,13 @@ class ImageToImageInput(DecartBaseModel):
width=1088,
height=624,
),
"lucy-2.5": ModelDefinition(
name="lucy-2.5",
url_path="/v1/stream",
fps=20,
width=1088,
height=624,
),
"lucy-restyle-2": ModelDefinition(
name="lucy-restyle-2",
url_path="/v1/stream",
Expand Down Expand Up @@ -261,6 +270,14 @@ class ImageToImageInput(DecartBaseModel):
height=624,
input_schema=VideoEdit2Input,
),
"lucy-2.5": ModelDefinition(
name="lucy-2.5",
url_path="/v1/jobs/lucy-2.5",
fps=20,
width=1088,
height=624,
input_schema=VideoEdit2Input,
),
"lucy-vton-2": ModelDefinition(
name="lucy-vton-2",
url_path="/v1/jobs/lucy-vton-2",
Expand Down Expand Up @@ -395,6 +412,7 @@ def video(model: VideoModels) -> VideoModelDefinition:
Available models:
- "lucy-clip" - Video-to-video
- "lucy-2.1" - Video editing (newer, higher quality)
- "lucy-2.5" - Video editing (latest generation)
- "lucy-restyle-2" - Video restyling with prompt or reference image
"""
_warn_deprecated(model)
Expand Down
1 change: 1 addition & 0 deletions playground/playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def _check_deps() -> None:

REALTIME_MODELS = [
"lucy-2.1",
"lucy-2.5",
"lucy-vton-3",
"lucy-restyle-2",
]
Expand Down
14 changes: 14 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ def test_canonical_realtime_models() -> None:
assert model.width == 1088
assert model.height == 624

model = models.realtime("lucy-2.5")
assert model.name == "lucy-2.5"
assert model.url_path == "/v1/stream"
assert model.fps == 20
assert model.width == 1088
assert model.height == 624

model = models.realtime("lucy-vton-2")
assert model.name == "lucy-vton-2"
assert model.url_path == "/v1/stream"
Expand Down Expand Up @@ -57,6 +64,13 @@ def test_canonical_video_models() -> None:
assert model.width == 1088
assert model.height == 624

model = models.video("lucy-2.5")
assert model.name == "lucy-2.5"
assert model.url_path == "/v1/jobs/lucy-2.5"
assert model.fps == 20
assert model.width == 1088
assert model.height == 624

model = models.video("lucy-vton-2")
assert model.name == "lucy-vton-2"
assert model.url_path == "/v1/jobs/lucy-vton-2"
Expand Down
Loading