Skip to content

consts

ALCHEMY_PARAMETER_FIELDS

Bases: StrEnum

Field names that commonly appear in alchemy parameter payloads.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class ALCHEMY_PARAMETER_FIELDS(StrEnum):
    """Field names that commonly appear in alchemy parameter payloads."""

    result_id = auto()
    form = auto()
    source_image = auto()
    upscaler = auto()
    facefixer = auto()
    interrogator = auto()
    caption_model = auto()
    nsfw_detector = auto()
    control_type = auto()

result_id class-attribute instance-attribute

result_id = auto()

form class-attribute instance-attribute

form = auto()

source_image class-attribute instance-attribute

source_image = auto()

upscaler class-attribute instance-attribute

upscaler = auto()

facefixer class-attribute instance-attribute

facefixer = auto()

interrogator class-attribute instance-attribute

interrogator = auto()

caption_model class-attribute instance-attribute

caption_model = auto()

nsfw_detector class-attribute instance-attribute

nsfw_detector = auto()

control_type class-attribute instance-attribute

control_type = auto()

KNOWN_ALCHEMY_FORMS

Bases: StrEnum

Forms (type of services) for alchemist type workers.

(nsfw, caption, interrogation, post_process, etc...)

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class KNOWN_ALCHEMY_FORMS(StrEnum):
    """Forms (type of services) for alchemist type workers.

    (nsfw, caption, interrogation, post_process, etc...)
    """

    nsfw = auto()
    """NSFW detection."""
    caption = auto()
    """Captioning (i.e., BLIP)."""
    interrogation = auto()
    """Interrogation (i.e., CLIP)."""
    post_process = auto()
    """Upscaling, facefixing, etc."""
    vectorize = auto()
    """Vectorization (raster image -> SVG)."""
    palette = auto()
    """Dominant-colour palette extraction (raster image -> ordered colour list)."""
    describe = auto()
    """Technical-metadata bundle (blurhash, perceptual hashes, dimensions, dominant colour)."""
    aesthetic = auto()
    """LAION aesthetic score (raster image -> 0-10 quality float)."""
    annotation = auto()
    """Controlnet annotation (raster image -> control map image). Parameterized by control type."""

nsfw class-attribute instance-attribute

nsfw = auto()

NSFW detection.

caption class-attribute instance-attribute

caption = auto()

Captioning (i.e., BLIP).

interrogation class-attribute instance-attribute

interrogation = auto()

Interrogation (i.e., CLIP).

post_process class-attribute instance-attribute

post_process = auto()

Upscaling, facefixing, etc.

vectorize class-attribute instance-attribute

vectorize = auto()

Vectorization (raster image -> SVG).

palette class-attribute instance-attribute

palette = auto()

Dominant-colour palette extraction (raster image -> ordered colour list).

describe class-attribute instance-attribute

describe = auto()

Technical-metadata bundle (blurhash, perceptual hashes, dimensions, dominant colour).

aesthetic class-attribute instance-attribute

aesthetic = auto()

LAION aesthetic score (raster image -> 0-10 quality float).

annotation class-attribute instance-attribute

annotation = auto()

Controlnet annotation (raster image -> control map image). Parameterized by control type.

KNOWN_ANNOTATION_CONTROL_TYPES

Bases: StrEnum

The controlnet control-map types the parameterized annotation alchemy form can produce.

This is the closed set the image-utilities backend can serve. It spells the line detector mlsd (its real name), unlike :class:horde_sdk.generation_parameters.image.consts.KNOWN_IMAGE_CONTROLNETS, which still spells the same detector hough for image-generation control_type compatibility.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class KNOWN_ANNOTATION_CONTROL_TYPES(StrEnum):
    """The controlnet control-map types the parameterized `annotation` alchemy form can produce.

    This is the closed set the image-utilities backend can serve. It spells the line detector `mlsd`
    (its real name), unlike :class:`horde_sdk.generation_parameters.image.consts.KNOWN_IMAGE_CONTROLNETS`,
    which still spells the same detector `hough` for image-generation control_type compatibility.
    """

    canny = auto()
    hed = auto()
    depth = auto()
    mlsd = auto()
    openpose = auto()
    normal = auto()
    scribble = auto()
    fakescribbles = auto()
    seg = auto()
    binary = auto()
    standard_lineart = auto()
    lineart = auto()
    lineart_anime = auto()
    lineart_anime_denoise = auto()
    pidinet = auto()
    scribble_xdog = auto()
    scribble_pidinet = auto()
    teed = auto()
    pyracanny = auto()
    midas_depth = auto()
    zoe_depth = auto()
    depth_anything = auto()
    depth_anything_v2 = auto()
    normal_bae = auto()
    oneformer_ade20k = auto()
    oneformer_coco = auto()
    color = auto()
    shuffle = auto()
    recolor_luminance = auto()
    recolor_intensity = auto()
    tile = auto()
    tile_ttplanet_guided = auto()
    tile_ttplanet_simple = auto()

canny class-attribute instance-attribute

canny = auto()

hed class-attribute instance-attribute

hed = auto()

depth class-attribute instance-attribute

depth = auto()

mlsd class-attribute instance-attribute

mlsd = auto()

openpose class-attribute instance-attribute

openpose = auto()

normal class-attribute instance-attribute

normal = auto()

scribble class-attribute instance-attribute

scribble = auto()

fakescribbles class-attribute instance-attribute

fakescribbles = auto()

seg class-attribute instance-attribute

seg = auto()

binary class-attribute instance-attribute

binary = auto()

standard_lineart class-attribute instance-attribute

standard_lineart = auto()

lineart class-attribute instance-attribute

lineart = auto()

lineart_anime class-attribute instance-attribute

lineart_anime = auto()

lineart_anime_denoise class-attribute instance-attribute

lineart_anime_denoise = auto()

pidinet class-attribute instance-attribute

pidinet = auto()

scribble_xdog class-attribute instance-attribute

scribble_xdog = auto()

scribble_pidinet class-attribute instance-attribute

scribble_pidinet = auto()

teed class-attribute instance-attribute

teed = auto()

pyracanny class-attribute instance-attribute

pyracanny = auto()

midas_depth class-attribute instance-attribute

midas_depth = auto()

zoe_depth class-attribute instance-attribute

zoe_depth = auto()

depth_anything class-attribute instance-attribute

depth_anything = auto()

depth_anything_v2 class-attribute instance-attribute

depth_anything_v2 = auto()

normal_bae class-attribute instance-attribute

normal_bae = auto()

oneformer_ade20k class-attribute instance-attribute

oneformer_ade20k = auto()

oneformer_coco class-attribute instance-attribute

oneformer_coco = auto()

color class-attribute instance-attribute

color = auto()

shuffle class-attribute instance-attribute

shuffle = auto()

recolor_luminance class-attribute instance-attribute

recolor_luminance = auto()

recolor_intensity class-attribute instance-attribute

recolor_intensity = auto()

tile class-attribute instance-attribute

tile = auto()

tile_ttplanet_guided class-attribute instance-attribute

tile_ttplanet_guided = auto()

tile_ttplanet_simple class-attribute instance-attribute

tile_ttplanet_simple = auto()

KNOWN_UPSCALERS

Bases: StrEnum

The upscalers that are known to the API.

(RealESRGAN_x4plus, RealESRGAN_x2plus, RealESRGAN_x4plus_anime_6B, etc)

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class KNOWN_UPSCALERS(StrEnum):
    """The upscalers that are known to the API.

    (RealESRGAN_x4plus, RealESRGAN_x2plus, RealESRGAN_x4plus_anime_6B, etc)
    """

    BACKEND_DEFAULT = auto()
    """The default model for the worker backend."""

    RealESRGAN_x4plus = auto()
    RealESRGAN_x2plus = auto()
    RealESRGAN_x4plus_anime_6B = auto()
    NMKD_Siax = auto()
    four_4x_AnimeSharp = "4x_AnimeSharp"
    """AKA 4x_AnimeSharp"""

    # Names begin with a digit (the upscale factor), so the member identifier prepends the
    # spelled-out leading digit while the value keeps the on-disk file-stem form.
    four_4xNomos8kSC = "4xNomos8kSC"
    four_4xLSDIRplus = "4xLSDIRplus"
    four_4xNomosWebPhoto_RealPLKSR = "4xNomosWebPhoto_RealPLKSR"
    four_4xNomos2_realplksr_dysample = "4xNomos2_realplksr_dysample"
    four_4xNomos2_hq_dat2 = "4xNomos2_hq_dat2"
    two_2xModernSpanimationV1 = "2xModernSpanimationV1"

BACKEND_DEFAULT class-attribute instance-attribute

BACKEND_DEFAULT = auto()

The default model for the worker backend.

RealESRGAN_x4plus class-attribute instance-attribute

RealESRGAN_x4plus = auto()

RealESRGAN_x2plus class-attribute instance-attribute

RealESRGAN_x2plus = auto()

RealESRGAN_x4plus_anime_6B class-attribute instance-attribute

RealESRGAN_x4plus_anime_6B = auto()

NMKD_Siax class-attribute instance-attribute

NMKD_Siax = auto()

four_4x_AnimeSharp class-attribute instance-attribute

four_4x_AnimeSharp = '4x_AnimeSharp'

AKA 4x_AnimeSharp

four_4xNomos8kSC class-attribute instance-attribute

four_4xNomos8kSC = '4xNomos8kSC'

four_4xLSDIRplus class-attribute instance-attribute

four_4xLSDIRplus = '4xLSDIRplus'

four_4xNomosWebPhoto_RealPLKSR class-attribute instance-attribute

four_4xNomosWebPhoto_RealPLKSR = "4xNomosWebPhoto_RealPLKSR"

four_4xNomos2_realplksr_dysample class-attribute instance-attribute

four_4xNomos2_realplksr_dysample = (
    "4xNomos2_realplksr_dysample"
)

four_4xNomos2_hq_dat2 class-attribute instance-attribute

four_4xNomos2_hq_dat2 = '4xNomos2_hq_dat2'

two_2xModernSpanimationV1 class-attribute instance-attribute

two_2xModernSpanimationV1 = '2xModernSpanimationV1'

KNOWN_FACEFIXERS

Bases: StrEnum

The facefixers that are known to the API.

(CodeFormers, etc)

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class KNOWN_FACEFIXERS(StrEnum):
    """The facefixers that are known to the API.

    (CodeFormers, etc)
    """

    BACKEND_DEFAULT = auto()
    """The default model for the worker backend."""

    GFPGAN = auto()
    CodeFormers = auto()

    GFPGANv1_3 = "GFPGANv1.3"
    """GFPGANv1.3: the predecessor GFPGAN weight, more identity-faithful than the default v1.4."""
    RestoreFormer = auto()
    """RestoreFormer: an Apache-2.0 transformer-based blind face restorer, realism-oriented."""

BACKEND_DEFAULT class-attribute instance-attribute

BACKEND_DEFAULT = auto()

The default model for the worker backend.

GFPGAN class-attribute instance-attribute

GFPGAN = auto()

CodeFormers class-attribute instance-attribute

CodeFormers = auto()

GFPGANv1_3 class-attribute instance-attribute

GFPGANv1_3 = 'GFPGANv1.3'

GFPGANv1.3: the predecessor GFPGAN weight, more identity-faithful than the default v1.4.

RestoreFormer class-attribute instance-attribute

RestoreFormer = auto()

RestoreFormer: an Apache-2.0 transformer-based blind face restorer, realism-oriented.

KNOWN_MISC_POST_PROCESSORS

Bases: StrEnum

The misc post processors that are known to the API.

(strip_background, etc)

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class KNOWN_MISC_POST_PROCESSORS(StrEnum):
    """The misc post processors that are known to the API.

    (strip_background, etc)
    """

    strip_background = auto()

strip_background class-attribute instance-attribute

strip_background = auto()

KNOWN_CLIP_BLIP_TYPES

Bases: StrEnum

The CLIP and BLIP models that are known to the API.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class KNOWN_CLIP_BLIP_TYPES(StrEnum):
    """The CLIP and BLIP models that are known to the API."""

    caption = auto()
    """The caption (BLIP) model."""
    interrogation = auto()
    """The interrogation (CLIP) model."""
    nsfw = auto()
    """The NSFW model."""

caption class-attribute instance-attribute

caption = auto()

The caption (BLIP) model.

interrogation class-attribute instance-attribute

interrogation = auto()

The interrogation (CLIP) model.

nsfw class-attribute instance-attribute

nsfw = auto()

The NSFW model.

KNOWN_INTERROGATORS

Bases: StrEnum

The interrogators that are known to the API.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class KNOWN_INTERROGATORS(StrEnum):
    """The interrogators that are known to the API."""

    BACKEND_DEFAULT = auto()
    """The default model for the worker backend."""

    vit_l_14 = "sentence-transformers/clip-ViT-L-14"
    vit_big_g_14_laion2b_39b_b160k = "laion/CLIP-ViT-bigG-14-laion2B-39B-b160k"

BACKEND_DEFAULT class-attribute instance-attribute

BACKEND_DEFAULT = auto()

The default model for the worker backend.

vit_l_14 class-attribute instance-attribute

vit_l_14 = 'sentence-transformers/clip-ViT-L-14'

vit_big_g_14_laion2b_39b_b160k class-attribute instance-attribute

vit_big_g_14_laion2b_39b_b160k = (
    "laion/CLIP-ViT-bigG-14-laion2B-39B-b160k"
)

KNOWN_CAPTION_MODELS

Bases: StrEnum

The caption models that are known to the API.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class KNOWN_CAPTION_MODELS(StrEnum):
    """The caption models that are known to the API."""

    BACKEND_DEFAULT = auto()
    """The default model for the worker backend."""

    BLIP_BASE_SALESFORCE = "Salesforce/blip-image-captioning-base"
    BLIP_LARGE_SALESFORCE = "Salesforce/blip-image-captioning-large"

BACKEND_DEFAULT class-attribute instance-attribute

BACKEND_DEFAULT = auto()

The default model for the worker backend.

BLIP_BASE_SALESFORCE class-attribute instance-attribute

BLIP_BASE_SALESFORCE = (
    "Salesforce/blip-image-captioning-base"
)

BLIP_LARGE_SALESFORCE class-attribute instance-attribute

BLIP_LARGE_SALESFORCE = (
    "Salesforce/blip-image-captioning-large"
)

KNOWN_ALCHEMY_TYPES

Bases: StrEnum

The alchemy processes (types) that are known to the API.

(caption, GFPGAN, strip_background, etc)

Source code in horde_sdk/generation_parameters/alchemy/consts.py
class KNOWN_ALCHEMY_TYPES(StrEnum):
    """The alchemy processes (types) that are known to the API.

    (caption, GFPGAN, strip_background, etc)
    """

    _NONE = ""  # FIXME

    caption = KNOWN_CLIP_BLIP_TYPES.caption
    interrogation = KNOWN_CLIP_BLIP_TYPES.interrogation
    nsfw = KNOWN_CLIP_BLIP_TYPES.nsfw

    RealESRGAN_x4plus = KNOWN_UPSCALERS.RealESRGAN_x4plus
    RealESRGAN_x2plus = KNOWN_UPSCALERS.RealESRGAN_x2plus
    RealESRGAN_x4plus_anime_6B = KNOWN_UPSCALERS.RealESRGAN_x4plus_anime_6B
    NMKD_Siax = KNOWN_UPSCALERS.NMKD_Siax
    fourx_AnimeSharp = KNOWN_UPSCALERS.four_4x_AnimeSharp

    four_4xNomos8kSC = KNOWN_UPSCALERS.four_4xNomos8kSC
    four_4xLSDIRplus = KNOWN_UPSCALERS.four_4xLSDIRplus
    four_4xNomosWebPhoto_RealPLKSR = KNOWN_UPSCALERS.four_4xNomosWebPhoto_RealPLKSR
    four_4xNomos2_realplksr_dysample = KNOWN_UPSCALERS.four_4xNomos2_realplksr_dysample
    four_4xNomos2_hq_dat2 = KNOWN_UPSCALERS.four_4xNomos2_hq_dat2
    two_2xModernSpanimationV1 = KNOWN_UPSCALERS.two_2xModernSpanimationV1

    GFPGAN = KNOWN_FACEFIXERS.GFPGAN
    CodeFormers = KNOWN_FACEFIXERS.CodeFormers
    GFPGANv1_3 = KNOWN_FACEFIXERS.GFPGANv1_3
    RestoreFormer = KNOWN_FACEFIXERS.RestoreFormer

    strip_background = KNOWN_MISC_POST_PROCESSORS.strip_background

    vectorize = KNOWN_ALCHEMY_FORMS.vectorize
    palette = KNOWN_ALCHEMY_FORMS.palette
    describe = KNOWN_ALCHEMY_FORMS.describe
    aesthetic = KNOWN_ALCHEMY_FORMS.aesthetic
    annotation = KNOWN_ALCHEMY_FORMS.annotation

caption class-attribute instance-attribute

caption = KNOWN_CLIP_BLIP_TYPES.caption

interrogation class-attribute instance-attribute

interrogation = KNOWN_CLIP_BLIP_TYPES.interrogation

nsfw class-attribute instance-attribute

nsfw = KNOWN_CLIP_BLIP_TYPES.nsfw

RealESRGAN_x4plus class-attribute instance-attribute

RealESRGAN_x4plus = KNOWN_UPSCALERS.RealESRGAN_x4plus

RealESRGAN_x2plus class-attribute instance-attribute

RealESRGAN_x2plus = KNOWN_UPSCALERS.RealESRGAN_x2plus

RealESRGAN_x4plus_anime_6B class-attribute instance-attribute

RealESRGAN_x4plus_anime_6B = (
    KNOWN_UPSCALERS.RealESRGAN_x4plus_anime_6B
)

NMKD_Siax class-attribute instance-attribute

NMKD_Siax = KNOWN_UPSCALERS.NMKD_Siax

fourx_AnimeSharp class-attribute instance-attribute

fourx_AnimeSharp = KNOWN_UPSCALERS.four_4x_AnimeSharp

four_4xNomos8kSC class-attribute instance-attribute

four_4xNomos8kSC = KNOWN_UPSCALERS.four_4xNomos8kSC

four_4xLSDIRplus class-attribute instance-attribute

four_4xLSDIRplus = KNOWN_UPSCALERS.four_4xLSDIRplus

four_4xNomosWebPhoto_RealPLKSR class-attribute instance-attribute

four_4xNomosWebPhoto_RealPLKSR = (
    KNOWN_UPSCALERS.four_4xNomosWebPhoto_RealPLKSR
)

four_4xNomos2_realplksr_dysample class-attribute instance-attribute

four_4xNomos2_realplksr_dysample = (
    KNOWN_UPSCALERS.four_4xNomos2_realplksr_dysample
)

four_4xNomos2_hq_dat2 class-attribute instance-attribute

four_4xNomos2_hq_dat2 = (
    KNOWN_UPSCALERS.four_4xNomos2_hq_dat2
)

two_2xModernSpanimationV1 class-attribute instance-attribute

two_2xModernSpanimationV1 = (
    KNOWN_UPSCALERS.two_2xModernSpanimationV1
)

GFPGAN class-attribute instance-attribute

GFPGAN = KNOWN_FACEFIXERS.GFPGAN

CodeFormers class-attribute instance-attribute

CodeFormers = KNOWN_FACEFIXERS.CodeFormers

GFPGANv1_3 class-attribute instance-attribute

GFPGANv1_3 = KNOWN_FACEFIXERS.GFPGANv1_3

RestoreFormer class-attribute instance-attribute

RestoreFormer = KNOWN_FACEFIXERS.RestoreFormer

strip_background class-attribute instance-attribute

strip_background = (
    KNOWN_MISC_POST_PROCESSORS.strip_background
)

vectorize class-attribute instance-attribute

vectorize = KNOWN_ALCHEMY_FORMS.vectorize

palette class-attribute instance-attribute

palette = KNOWN_ALCHEMY_FORMS.palette

describe class-attribute instance-attribute

describe = KNOWN_ALCHEMY_FORMS.describe

aesthetic class-attribute instance-attribute

aesthetic = KNOWN_ALCHEMY_FORMS.aesthetic

annotation class-attribute instance-attribute

annotation = KNOWN_ALCHEMY_FORMS.annotation

is_upscaler_form

is_upscaler_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool

Check if the form is an upscaler form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_upscaler_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is an upscaler form."""
    value = form
    if isinstance(form, KNOWN_ALCHEMY_TYPES):
        value = form.value

    return value in KNOWN_UPSCALERS.__members__ or value in KNOWN_UPSCALERS.__members__.values()

is_facefixer_form

is_facefixer_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool

Check if the form is a facefixer form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_facefixer_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is a facefixer form."""
    value = form
    if isinstance(form, KNOWN_ALCHEMY_TYPES):
        value = form.value

    return value in KNOWN_FACEFIXERS.__members__ or value in KNOWN_FACEFIXERS.__members__.values()

is_interrogator_form

is_interrogator_form(
    form: KNOWN_ALCHEMY_TYPES | str,
) -> bool

Check if the form is an interrogator form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_interrogator_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is an interrogator form."""
    return form == KNOWN_CLIP_BLIP_TYPES.interrogation

is_caption_form

is_caption_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool

Check if the form is a caption form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_caption_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is a caption form."""
    return form == KNOWN_CLIP_BLIP_TYPES.caption

is_nsfw_detector_form

is_nsfw_detector_form(
    form: KNOWN_ALCHEMY_TYPES | str,
) -> bool

Check if the form is an NSFW form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_nsfw_detector_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is an NSFW form."""
    return form == KNOWN_CLIP_BLIP_TYPES.nsfw

is_strip_background_form

is_strip_background_form(
    form: KNOWN_ALCHEMY_TYPES | str,
) -> bool

Check if the form is a strip background form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_strip_background_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is a strip background form."""
    return form == KNOWN_MISC_POST_PROCESSORS.strip_background

is_image_vectorizer_form

is_image_vectorizer_form(
    form: KNOWN_ALCHEMY_TYPES | str,
) -> bool

Check if the form is an image vectorizer (raster -> SVG) form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_image_vectorizer_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is an image vectorizer (raster -> SVG) form."""
    return form == KNOWN_ALCHEMY_FORMS.vectorize

is_palette_form

is_palette_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool

Check if the form is a colour-palette extraction form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_palette_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is a colour-palette extraction form."""
    return form == KNOWN_ALCHEMY_FORMS.palette

is_describe_form

is_describe_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool

Check if the form is a technical-metadata (describe) form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_describe_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is a technical-metadata (describe) form."""
    return form == KNOWN_ALCHEMY_FORMS.describe

is_aesthetic_form

is_aesthetic_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool

Check if the form is a LAION aesthetic-score form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_aesthetic_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is a LAION aesthetic-score form."""
    return form == KNOWN_ALCHEMY_FORMS.aesthetic

is_annotation_form

is_annotation_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool

Check if the form is a controlnet annotation (raster -> control map) form.

Source code in horde_sdk/generation_parameters/alchemy/consts.py
def is_annotation_form(form: KNOWN_ALCHEMY_TYPES | str) -> bool:
    """Check if the form is a controlnet annotation (raster -> control map) form."""
    return form == KNOWN_ALCHEMY_FORMS.annotation