-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: we have 3 different images now instead of just one: base, sdxl and sd3 * ci: use branch name for creating dev releases * ci: replace "/" with "-" to have a valid tag name * ci: correctly handle the tag name * ci: build an image that contains sd3 using docker bake * ci: use "set" instead of "args" * ci: use "env" instead of "set" * ci: use variables instead of args * ci: set variables directly for the targets * ci: write the secrets into the GITHUB_ENV * ci: handle env variables correctly * ci: use env variables from GitHub Variables * ci: added back to env * ci: print out env * ci: adding the vars directly into the workflow * ci: example workflow for sd3 * ci: renamed DOCKERHUB_REPO to DOCKERHUB_REPOSITORY * ci: removed quotes for DOCKERHUB_REPOSITORY * ci: only use DOCKERHUB_REPO in bake * ci: added vars into sd3 target * ci: added direct target * ci: back to basics * ci: multi-stage build to not expose the HUGGINGFACE_ACCESS_TOKEN * ci: write everything into GITHUB_ENV again * ci: use correct name for final stage * ci: use correct runner * fix: make sure to use the latest versions of all packages * ci: simplified variables for all targets * docs: added 3 images, updated build your own image * docs: updated TOC * ci: updated name * ci: use docker bake to publish 3 images instead of just 1
- Loading branch information
1 parent
46474ac
commit dde69d6
Showing
6 changed files
with
240 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
variable "DOCKERHUB_REPO" { | ||
default = "" | ||
} | ||
|
||
variable "DOCKERHUB_IMG" { | ||
default = "" | ||
} | ||
|
||
variable "RELEASE_VERSION" { | ||
default = "" | ||
} | ||
|
||
variable "HUGGINGFACE_ACCESS_TOKEN" { | ||
default = "" | ||
} | ||
|
||
group "default" { | ||
targets = ["base", "sdxl", "sd3"] | ||
} | ||
|
||
target "base" { | ||
context = "." | ||
dockerfile = "Dockerfile" | ||
target = "base" | ||
tags = ["${DOCKERHUB_REPO}/${DOCKERHUB_IMG}:${RELEASE_VERSION}-base"] | ||
} | ||
|
||
target "sdxl" { | ||
context = "." | ||
dockerfile = "Dockerfile" | ||
target = "final" | ||
args = { | ||
MODEL_TYPE = "sdxl" | ||
} | ||
tags = ["${DOCKERHUB_REPO}/${DOCKERHUB_IMG}:${RELEASE_VERSION}-sdxl"] | ||
inherits = ["base"] | ||
} | ||
|
||
target "sd3" { | ||
context = "." | ||
dockerfile = "Dockerfile" | ||
target = "final" | ||
args = { | ||
MODEL_TYPE = "sd3" | ||
HUGGINGFACE_ACCESS_TOKEN = "${HUGGINGFACE_ACCESS_TOKEN}" | ||
} | ||
tags = ["${DOCKERHUB_REPO}/${DOCKERHUB_IMG}:${RELEASE_VERSION}-sd3"] | ||
inherits = ["base"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"input": { | ||
"workflow": { | ||
"6": { | ||
"inputs": { | ||
"text": "comic illustration of a white unicorn with a golden horn and pink mane and tail standing amidst a colorful and magical fantasy landscape. The background is filled with pastel-colored mountains and fluffy clouds and colorful balloons and stars. There are vibrant rainbows arching across the sky. The ground is adorned with oversized, candy-like plants, trees shaped like lollipops, and swirling ice cream cones. The scene is bathed in soft, dreamy light, giving it an enchanting and otherworldly feel. 4k, high resolution", | ||
"clip": ["252", 1] | ||
}, | ||
"class_type": "CLIPTextEncode", | ||
"_meta": { | ||
"title": "CLIP Text Encode (Prompt)" | ||
} | ||
}, | ||
"13": { | ||
"inputs": { | ||
"shift": 3, | ||
"model": ["252", 0] | ||
}, | ||
"class_type": "ModelSamplingSD3", | ||
"_meta": { | ||
"title": "ModelSamplingSD3" | ||
} | ||
}, | ||
"71": { | ||
"inputs": { | ||
"text": "worst quality, lowres, blurry, deformed, overexposure, bright, hands, oversaturated, burned, oversharpened, artifacts, hand, human, handwriting, nsfw, breast, breasts", | ||
"clip": ["252", 1] | ||
}, | ||
"class_type": "CLIPTextEncode", | ||
"_meta": { | ||
"title": "CLIP Text Encode (Negative Prompt)" | ||
} | ||
}, | ||
"135": { | ||
"inputs": { | ||
"width": 1152, | ||
"height": 768, | ||
"batch_size": 1 | ||
}, | ||
"class_type": "EmptySD3LatentImage", | ||
"_meta": { | ||
"title": "EmptySD3LatentImage" | ||
} | ||
}, | ||
"231": { | ||
"inputs": { | ||
"samples": ["271", 0], | ||
"vae": ["252", 2] | ||
}, | ||
"class_type": "VAEDecode", | ||
"_meta": { | ||
"title": "VAE Decode" | ||
} | ||
}, | ||
"252": { | ||
"inputs": { | ||
"ckpt_name": "sd3_medium_incl_clips_t5xxlfp8.safetensors" | ||
}, | ||
"class_type": "CheckpointLoaderSimple", | ||
"_meta": { | ||
"title": "Load Checkpoint" | ||
} | ||
}, | ||
"271": { | ||
"inputs": { | ||
"seed": 291740611171897, | ||
"steps": 28, | ||
"cfg": 4.5, | ||
"sampler_name": "dpmpp_2m", | ||
"scheduler": "sgm_uniform", | ||
"denoise": 1, | ||
"model": ["13", 0], | ||
"positive": ["6", 0], | ||
"negative": ["71", 0], | ||
"latent_image": ["135", 0] | ||
}, | ||
"class_type": "KSampler", | ||
"_meta": { | ||
"title": "KSampler" | ||
} | ||
}, | ||
"273": { | ||
"inputs": { | ||
"filename_prefix": "sd3/sd3", | ||
"images": ["231", 0] | ||
}, | ||
"class_type": "SaveImage", | ||
"_meta": { | ||
"title": "Save Image" | ||
} | ||
} | ||
} | ||
} | ||
} |