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
36 changes: 0 additions & 36 deletions decart/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
RealTimeModels = Literal[
# Canonical names
"lucy-2.1",
"lucy-2.1-vton",
"lucy-vton-2",
"lucy-vton-3",
"lucy-restyle-2",
Expand All @@ -16,15 +15,13 @@
"lucy-vton-latest",
"lucy-restyle-latest",
# Deprecated names
"lucy-vton",
"lucy-2.1-vton-2",
"mirage_v2",
]
VideoModels = Literal[
# Canonical names
"lucy-clip",
"lucy-2.1",
"lucy-2.1-vton",
"lucy-vton-2",
"lucy-vton-3",
"lucy-restyle-2",
Expand All @@ -34,7 +31,6 @@
"lucy-restyle-latest",
"lucy-clip-latest",
# Deprecated / alias names
"lucy-vton",
"lucy-2.1-vton-2",
"lucy-pro-v2v",
"lucy-restyle-v2v",
Expand All @@ -56,7 +52,6 @@
"lucy-pro-v2v": "lucy-clip",
"lucy-restyle-v2v": "lucy-restyle-2",
# VTON aliases
"lucy-vton": "lucy-2.1-vton",
"lucy-2.1-vton-2": "lucy-vton-2",
# Image aliases
"lucy-pro-i2i": "lucy-image-2",
Expand Down Expand Up @@ -189,13 +184,6 @@ class ImageToImageInput(DecartBaseModel):
width=1088,
height=624,
),
"lucy-2.1-vton": ModelDefinition(
name="lucy-2.1-vton",
url_path="/v1/stream",
fps=30,
width=1088,
height=624,
),
"lucy-restyle-2": ModelDefinition(
name="lucy-restyle-2",
url_path="/v1/stream",
Expand Down Expand Up @@ -247,13 +235,6 @@ class ImageToImageInput(DecartBaseModel):
height=704,
),
# Deprecated names
"lucy-vton": ModelDefinition(
name="lucy-vton",
url_path="/v1/stream",
fps=30,
width=1088,
height=624,
),
"mirage_v2": ModelDefinition(
name="mirage_v2",
url_path="/v1/stream",
Expand All @@ -280,14 +261,6 @@ class ImageToImageInput(DecartBaseModel):
height=624,
input_schema=VideoEdit2Input,
),
"lucy-2.1-vton": ModelDefinition(
name="lucy-2.1-vton",
url_path="/v1/jobs/lucy-2.1-vton",
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 All @@ -312,14 +285,6 @@ class ImageToImageInput(DecartBaseModel):
height=624,
input_schema=VideoEdit2Input,
),
"lucy-vton": ModelDefinition(
name="lucy-vton",
url_path="/v1/jobs/lucy-vton",
fps=20,
width=1088,
height=624,
input_schema=VideoEdit2Input,
),
"lucy-restyle-2": ModelDefinition(
name="lucy-restyle-2",
url_path="/v1/jobs/lucy-restyle-2",
Expand Down Expand Up @@ -430,7 +395,6 @@ def video(model: VideoModels) -> VideoModelDefinition:
Available models:
- "lucy-clip" - Video-to-video
- "lucy-2.1" - Video editing (newer, higher quality)
- "lucy-2.1-vton" - Virtual try-on video editing
- "lucy-restyle-2" - Video restyling with prompt or reference image
"""
_warn_deprecated(model)
Expand Down
4 changes: 2 additions & 2 deletions examples/video_tryon.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Virtual Try-On Example

This example demonstrates how to use the lucy-2.1-vton model to perform
This example demonstrates how to use the lucy-vton-3 model to perform
virtual try-on on a video using a reference garment image.

Usage:
Expand Down Expand Up @@ -69,7 +69,7 @@ async def main():

async with DecartClient(api_key=api_key) as client:
options = {
"model": models.video("lucy-2.1-vton"),
"model": models.video("lucy-vton-3"),
"data": video_path,
"prompt": args.prompt,
"reference_image": ref_path,
Expand Down
2 changes: 1 addition & 1 deletion playground/playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _check_deps() -> None:

REALTIME_MODELS = [
"lucy-2.1",
"lucy-2.1-vton",
"lucy-vton-3",
"lucy-restyle-2",
]

Expand Down
13 changes: 0 additions & 13 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ def test_canonical_realtime_models() -> None:
assert model.width == 1088
assert model.height == 624

model = models.realtime("lucy-2.1-vton")
assert model.name == "lucy-2.1-vton"
assert model.fps == 30
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 @@ -63,13 +57,6 @@ def test_canonical_video_models() -> None:
assert model.width == 1088
assert model.height == 624

model = models.video("lucy-2.1-vton")
assert model.name == "lucy-2.1-vton"
assert model.url_path == "/v1/jobs/lucy-2.1-vton"
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