Skip to content

Commit

Permalink
1.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetters-amd committed Sep 26, 2024
1 parent 077815c commit acfa561
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/shark_studio/api/shark_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ def generate_images(
(existing_args, pipeline) = pipelines[base_model]
if not existing_args or not pipeline or not pipeline_args == existing_args:
# TODO: Initialize new pipeline
if base_model == "sd1.5":
pass
elif base_model == "sd2":
if base_model in ["sd1.5", "sd2"]:
new_pipeline = SharkSDPipeline(
hf_model_name="stabilityai/stable-diffusion-2-1",
hf_model_name=("stabilityai/stable-diffusion-2-1" if base_model == "sd2" else "stabilityai/stable-diffusion-1-5"),
scheduler_id=scheduler,
height=height,
width=width,
Expand Down

0 comments on commit acfa561

Please sign in to comment.