Skip to content

SD XL Turbo Integration #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
VIDEO_MODEL_NAME = "stable-video-diffusion-img2vid"

MODELS_BASE_S3_PATH = "models/diffusion-models/"
IMAGE_MODEL_NAME = "stable-diffusion-xl-base-1.0.1"
IMAGE_MODEL_NAME = "sdxl-turbo"
MODEL_PATH = "./models"
DEFAULT_STYLES = [
"van gogh",
Expand Down
2 changes: 1 addition & 1 deletion diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
from diffusers import AutoPipelineForText2Image

SD_XL_BASE = "stable-diffusion-xl-base-1.0"
SD_XL_BASE = "sdxl-turbo"
SUPPORTED_PIPELINES = ["StableDiffusionXLPipeline", "StableDiffusionPipeline"]

IMAGE_MODEL_NAME = SD_XL_BASE
Expand Down
4 changes: 2 additions & 2 deletions style_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ model_config:
pretrained_model_path: ./models
force_upload: false
s3_prefix: models/diffusion-models/
model_version: stable-diffusion-xl-base-1.0.1
model_name: stable-diffusion-xl-base-1.0.1
model_version: sdxl-turbo
model_name: sdxl-turbo
inference_config:
batch_size: 1
height: 512
Expand Down
4 changes: 2 additions & 2 deletions style_video.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ image:
pretrained_model_path: ./models
force_upload: false
s3_prefix: models/diffusion-models/
model_version: stable-diffusion-xl-base-1.0.1
model_name: stable-diffusion-xl-base-1.0.1
model_version: sdxl-turbo
model_name: sdxl-turbo
inference_config:
batch_size: 2
height: 576
Expand Down
4 changes: 2 additions & 2 deletions text_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ model_config:
pretrained_model_path: ./models
force_upload: false
s3_prefix: models/diffusion-models/
model_version: stable-diffusion-xl-base-1.0.1
model_name: stable-diffusion-xl-base-1.0.1
model_version: sdxl-turbo
model_name: sdxl-turbo
inference_config:
batch_size: 1
height: 512
Expand Down
4 changes: 2 additions & 2 deletions video_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ image:
pretrained_model_path: ./models
force_upload: false
s3_prefix: models/diffusion-models/
model_version: stable-diffusion-xl-base-1.0.1
model_name: stable-diffusion-xl-base-1.0.1
model_version: sdxl-turbo
model_name: sdxl-turbo
inference_config:
batch_size: 2
height: 576
Expand Down