Skip to content

Commit

Permalink
Fix Gradio issue and update engines for animation. (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
pharmapsychotic authored Nov 20, 2023
1 parent 5948088 commit ff797c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='stability-sdk',
version='0.8.4',
version='0.8.5',
author='Stability AI',
author_email='[email protected]',
maintainer='Stability AI',
Expand Down Expand Up @@ -40,7 +40,7 @@
],
'anim_ui': [
'keyframed',
'gradio',
'gradio==3.50.2',
'numpy',
'opencv-python-headless',
'tqdm',
Expand Down
7 changes: 3 additions & 4 deletions src/stability_sdk/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

DEFAULT_MODEL = 'stable-diffusion-v1-5'
DEFAULT_MODEL = 'stable-diffusion-xl-1024-v0-9'
TRANSLATION_SCALE = 1.0/200.0 # matches Disco and Deforum

docstring_bordermode = (
Expand All @@ -61,9 +61,8 @@ class BasicSettings(param.Parameterized):
default=DEFAULT_MODEL,
check_on_set=False, # allow old and new models without raising ValueError
objects=[
"stable-diffusion-v1-5", "stable-diffusion-512-v2-1", "stable-diffusion-768-v2-1",
"stable-diffusion-depth-v2-0", "stable-diffusion-xl-beta-v2-2-2", "stable-diffusion-xl-1024-v1-0",
"custom"
"stable-diffusion-512-v2-1", "stable-diffusion-xl-beta-v2-2-2", "stable-diffusion-xl-1024-v0-9",
"stable-diffusion-xl-1024-v1-0", "custom"
]
)
custom_model = param.String(default="", doc="Identifier of custom model to use.")
Expand Down
2 changes: 1 addition & 1 deletion src/stability_sdk/animation_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def list_projects(cls) -> List["Project"]:
negative_prompt_weight = -1.0

controls: Dict[str, gr.components.Component] = {}
header = gr.HTML("", show_progress=False)
header = gr.HTML("")
interrupt = False
last_interp_factor = None
last_interp_mode = None
Expand Down

0 comments on commit ff797c0

Please sign in to comment.