From 77974e2e633ac36ff1845fc81c2035440714b1b9 Mon Sep 17 00:00:00 2001 From: Adir Amsalem Date: Tue, 30 Jun 2026 10:29:42 +0300 Subject: [PATCH] chore: remove lucy-2.1-vton --- decart/models.py | 36 ------------------------------------ examples/video_tryon.py | 4 ++-- playground/playground.py | 2 +- tests/test_models.py | 13 ------------- 4 files changed, 3 insertions(+), 52 deletions(-) diff --git a/decart/models.py b/decart/models.py index c6e54fd..1b42f0d 100644 --- a/decart/models.py +++ b/decart/models.py @@ -7,7 +7,6 @@ RealTimeModels = Literal[ # Canonical names "lucy-2.1", - "lucy-2.1-vton", "lucy-vton-2", "lucy-vton-3", "lucy-restyle-2", @@ -16,7 +15,6 @@ "lucy-vton-latest", "lucy-restyle-latest", # Deprecated names - "lucy-vton", "lucy-2.1-vton-2", "mirage_v2", ] @@ -24,7 +22,6 @@ # Canonical names "lucy-clip", "lucy-2.1", - "lucy-2.1-vton", "lucy-vton-2", "lucy-vton-3", "lucy-restyle-2", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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) diff --git a/examples/video_tryon.py b/examples/video_tryon.py index a571d27..6aaeafa 100644 --- a/examples/video_tryon.py +++ b/examples/video_tryon.py @@ -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: @@ -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, diff --git a/playground/playground.py b/playground/playground.py index 1ac7082..7734204 100644 --- a/playground/playground.py +++ b/playground/playground.py @@ -58,7 +58,7 @@ def _check_deps() -> None: REALTIME_MODELS = [ "lucy-2.1", - "lucy-2.1-vton", + "lucy-vton-3", "lucy-restyle-2", ] diff --git a/tests/test_models.py b/tests/test_models.py index 41c3699..9375393 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -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" @@ -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"