Skip to content

Commit

Permalink
Merge pull request #4 from lucataco/width_and_height
Browse files Browse the repository at this point in the history
Added with and height as options
  • Loading branch information
lucataco committed Oct 18, 2023
2 parents 09556bb + 0b61b01 commit 36b6bfa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Binary file modified output.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 14 additions & 2 deletions predict.py
Expand Up @@ -56,6 +56,20 @@ def predict(
self,
prompt: str = Input(description="Input prompt", default="a camel smoking a cigarette, hd, high quality"),
negative_prompt: str = Input(description="Negative prompt", default="blurry"),
width: int = Input(
description="Width of the output",
default=672,
choices=[
256, 320, 384, 448, 512, 576, 640, 672, 704, 768, 832, 896, 960, 1024,
],
),
height: int = Input(
description="Height of the output",
default=384,
choices=[
256, 320, 384, 448, 512, 576, 640, 672, 704, 768, 832, 896, 960, 1024,
],
),
scheduler: str = Input(
default="EulerAncestralDiscreteScheduler",
choices=[
Expand All @@ -76,8 +90,6 @@ def predict(
) -> Path:
"""Run a single prediction on the model"""
# Default text2Gif parameters
width = 672
height = 384
target_width = 512
target_height = 512
og_width = 1920
Expand Down

0 comments on commit 36b6bfa

Please sign in to comment.