Skip to content

Commit

Permalink
fix: be forgiving of - vs _ in video decoder model name
Browse files Browse the repository at this point in the history
Addresses #485
  • Loading branch information
brycedrennan committed Apr 18, 2024
1 parent 3a9a397 commit efbab3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions imaginairy/api/video_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def generate_video(

output_fps = default(output_fps, fps_id)

model_name = model_name.lower().replace("_", "-")

video_model_config = config.MODEL_WEIGHT_CONFIG_LOOKUP.get(model_name, None)
if video_model_config is None:
msg = f"Version {model_name} does not exist."
Expand Down
2 changes: 1 addition & 1 deletion imaginairy/cli/videogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@click.option(
"--model",
default="svd",
help="Model to use. One of: svd, svd_xt, svd_image_decoder, svd_xt_image_decoder",
help="Model to use. One of: svd, svd-xt, svd-image-decoder, svd-xt-image-decoder",
)
@click.option(
"--fps", default=6, type=int, help="FPS for the AI to target when generating video"
Expand Down

0 comments on commit efbab3a

Please sign in to comment.