cddb07a176
build container image / cpu (push) Waiting to run
build container image / cuda (push) Waiting to run
build container image / rocm (push) Waiting to run
frontend tests / frontend-tests (push) Waiting to run
openapi checks / openapi-checks (push) Waiting to run
python tests / py3.12: macos-default (push) Waiting to run
python tests / py3.11: windows-cpu (push) Waiting to run
python tests / py3.12: windows-cpu (push) Waiting to run
python tests / py3.11: linux-cpu (push) Waiting to run
python tests / py3.12: linux-cpu (push) Waiting to run
typegen checks / typegen-checks (push) Waiting to run
uv lock checks / uv-lock-checks (push) Waiting to run
frontend checks / frontend-checks (push) Waiting to run
lfs checks / lfs-check (push) Waiting to run
python checks / python-checks (push) Waiting to run
python tests / py3.11: macos-default (push) Waiting to run
docs / deploy (push) Has been cancelled
docs / changes (push) Has been cancelled
docs / check-and-build (push) Has been cancelled
17 lines
615 B
Python
17 lines
615 B
Python
from pydantic import BaseModel, Field
|
|
|
|
from invokeai.app.invocations.fields import FieldDescriptions
|
|
|
|
|
|
class FreeUConfig(BaseModel):
|
|
"""
|
|
Configuration for the FreeU hyperparameters.
|
|
- https://huggingface.co/docs/diffusers/main/en/using-diffusers/freeu
|
|
- https://github.com/ChenyangSi/FreeU
|
|
"""
|
|
|
|
s1: float = Field(ge=-1, le=3, description=FieldDescriptions.freeu_s1)
|
|
s2: float = Field(ge=-1, le=3, description=FieldDescriptions.freeu_s2)
|
|
b1: float = Field(ge=-1, le=3, description=FieldDescriptions.freeu_b1)
|
|
b2: float = Field(ge=-1, le=3, description=FieldDescriptions.freeu_b2)
|