Skip to content
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

feat: flux support #139

Merged
merged 4 commits into from
Sep 11, 2024
Merged
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: 2 additions & 0 deletions .github/workflows/prtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
with:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Some key takeaways for the new `stable_diffusion.json`:
- `stable_diffusion_2_512`
- `stable_diffusion_xl`
- `stable_cascade`
- `flux_1`
- An MD5 sum is no longer included. All models (of all types) will have an SHA included from now on.
- `download` entries optionally contain a new key, `known_slow_download`, which indicates this download host is known to be slow at times.

Expand Down
4 changes: 3 additions & 1 deletion horde_model_reference/meta_consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,14 @@ class MODEL_PURPOSE(StrEnum):


class STABLE_DIFFUSION_BASELINE_CATEGORY(StrEnum):
"""An enum of all the stable diffusion baselines."""
"""An enum of all the image generation baselines."""

stable_diffusion_1 = auto()
stable_diffusion_2_768 = auto()
stable_diffusion_2_512 = auto()
stable_diffusion_xl = auto()
stable_cascade = auto()
flux_1 = auto() # TODO: Extract flux and create "IMAGE_GENERATION_BASELINE_CATEGORY" due to name inconsistency


MODEL_PURPOSE_LOOKUP: dict[MODEL_REFERENCE_CATEGORY, MODEL_PURPOSE] = {
Expand All @@ -110,6 +111,7 @@ class STABLE_DIFFUSION_BASELINE_CATEGORY(StrEnum):
STABLE_DIFFUSION_BASELINE_CATEGORY.stable_diffusion_2_512: 512,
STABLE_DIFFUSION_BASELINE_CATEGORY.stable_diffusion_xl: 1024,
STABLE_DIFFUSION_BASELINE_CATEGORY.stable_cascade: 1024,
STABLE_DIFFUSION_BASELINE_CATEGORY.flux_1: 1024,
}
"""The single-side preferred resolution for each known stable diffusion baseline."""

Expand Down
5 changes: 3 additions & 2 deletions stable_diffusion.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,14 @@
"type": "string"
},
"STABLE_DIFFUSION_BASELINE_CATEGORY": {
"description": "An enum of all the stable diffusion baselines.",
"description": "An enum of all the image generation baselines.",
"enum": [
"stable_diffusion_1",
"stable_diffusion_2_768",
"stable_diffusion_2_512",
"stable_diffusion_xl",
"stable_cascade"
"stable_cascade",
"flux_1"
],
"title": "STABLE_DIFFUSION_BASELINE_CATEGORY",
"type": "string"
Expand Down
Loading