Text-to-Image
MLX
Safetensors
Diffusion Single File
File size: 1,786 Bytes
3bdc93d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
"""Baseline workflow settings derived from Anima's official ComfyUI material."""

from __future__ import annotations

from dataclasses import dataclass


@dataclass(frozen=True)
class WorkflowSpec:
    diffusion_model: str
    text_encoder: str
    vae: str
    positive_prompt: str
    negative_prompt: str
    width: int
    height: int
    batch_size: int
    seed: int
    steps: int
    cfg: float
    sampler_name: str
    scheduler: str
    denoise: float
    flow_shift: float
    flow_multiplier: float

    @property
    def latent_height(self) -> int:
        return self.height // 8

    @property
    def latent_width(self) -> int:
        return self.width // 8

    @property
    def latent_shape_2d(self) -> tuple[int, int, int, int]:
        return (self.batch_size, 16, self.latent_height, self.latent_width)

    @property
    def comfy_empty_latent_shape(self) -> tuple[int, int, int, int]:
        return (self.batch_size, 4, self.latent_height, self.latent_width)


DEFAULT_WORKFLOW_SPEC = WorkflowSpec(
    diffusion_model="anima-base-v1.0-mlx.safetensors",
    text_encoder="qwen_3_06b_base-mlx.safetensors",
    vae="qwen_image_vae-mlx.safetensors",
    positive_prompt=(
        "masterpiece, best quality, score_7, safe, 1girl, fern "
        "\\(sousou no frieren\\), sousou no frieren, @izei1337, "
        "purple hair, black robe, white dress, butterfly on hand, "
        "purple eyes, looking at viewer, simple background"
    ),
    negative_prompt="worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts",
    width=896,
    height=1152,
    batch_size=1,
    seed=807_882_066_116_956,
    steps=30,
    cfg=4.0,
    sampler_name="er_sde",
    scheduler="simple",
    denoise=1.0,
    flow_shift=3.0,
    flow_multiplier=1.0,
)