Instructions to use fukujusou/Anima-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use fukujusou/Anima-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Anima-mlx fukujusou/Anima-mlx
- Diffusion Single File
How to use fukujusou/Anima-mlx with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
| """Baseline workflow settings derived from Anima's official ComfyUI material.""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| 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 | |
| def latent_height(self) -> int: | |
| return self.height // 8 | |
| def latent_width(self) -> int: | |
| return self.width // 8 | |
| def latent_shape_2d(self) -> tuple[int, int, int, int]: | |
| return (self.batch_size, 16, self.latent_height, self.latent_width) | |
| 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, | |
| ) | |