/ Модель

Характеристики

Лицензия
Apache 2.0
Библиотека
pytorch
Опубликована
21 окт 2026

zyi-256-flash

Генерация изображенийТекст → изображение3 профессии

Компактная модель для генерации изображений 256×256 по тексту и редактирования изображений по инструкциям.

459скачиваний за 30 дней3лайкавеса обновлены21 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

ZYI-256 Flash — модель генерации и редактирования изображений, разработанная авторами проекта ZYI. Это компактная модель на 343 млн параметров с архитектурой DiT и rectified flow (flow matching), обученная с нуля и затем дообученная; для редактирования в неё добавлено условие по исходному изображению. Она создаёт изображения размером 256×256 по текстовому запросу и редактирует изображение по текстовой инструкции. Для кодирования текста используется flan-T5-base, а исходные изображения центрируются и обрезаются до квадрата.

Модель рассчитана на быстрые эксперименты и генерацию сцен, интерьеров, еды, предметов и изображений в разных художественных стилях. Также в обучении уделялось внимание надписям, людям, подсчёту объектов и редактированию, однако авторы отмечают слабые результаты с анатомией животных, лицами, руками, читаемым текстом и пространственными отношениями. Лучше всего работают запросы на английском языке. Модель распространяется по лицензии Apache-2.0.

Сценарии применения

  • генерация иллюстраций по английскому описанию
  • создание пейзажей, интерьеров и изображений еды
  • генерация предметных изображений и художественных стилей
  • редактирование фотографии по текстовой инструкции
  • изменение окружения или стиля изображения

Ограничения

Выходное разрешение ограничено 256×256; мелкие детали и правки, лица, руки, анатомия животных, читаемый текст и пространственные отношения обрабатываются ненадёжно.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

ZYI-256 Flash

ZYI-256 Flash

A small text-to-image model (343M parameters) that generates 256×256 images. Trained from scratch in ~5 hours on a single RTX PRO 6000 (96 GB).

samples

v2.1 — anatomy, text and quality update

Same architecture and the same zyi256.py API — only the weights changed (previous weights: revision v2.1).

v2 samples

  • Region-weighted loss: a pose detector marks the face and hand tokens of people images and the loss weighs them 3×; synthetic text images weigh the text region 3×.
  • Data mix: people images 2×, real text images 2×, counting captions 2×, 100,000 synthetic text images (words rendered in many fonts and layouts on real photos, exact captions), 15% image editing.
  • Spell: quoted text is also spelled out in the prompt ("OPEN" (O P E N)), in training and at inference (spell=True).
  • Annealing: the last 30% of training only uses the top 35% images by quality score.
  • Preference tuning (DPO, in v2): not used
  • v2.1 finishing: text sized to the scene — synthetic signs of many sizes (mostly small/medium, size in the caption: a small sign that says "OPEN"), perspective, shadow and scene lighting; only 10% synthetic text and none in the final real-photo annealing phase. +15,669 steps from v2.1.
  • Training: +15,669 steps, 334,736 FLUX-Reason images, 40,000 edit pairs, 1× NVIDIA RTX PRO 6000, 5.7 h.

Image editing (mega update)

The same model now does text-to-image and instruction-based image editing at 256×256, still with flan-T5-base. The source image is encoded by the DC-AE and its 64 tokens join the same sequence as the 64 target tokens (in-context conditioning, shared 2D RoPE positions, one learned "source" embedding — the only new weights). Editing uses text + image classifier-free guidance (InstructPix2Pix-style).

edit samples

Each row: source · edited · reference.

from PIL import Image
pipe = zyi256.ZyiPipeline("caikybaldo999/zyi-256-flash")
pipe("a red fox sitting in a snowy forest", n=4, seed=0)             # text -> image (unchanged)
pipe.edit(Image.open("photo.jpg"), "make it winter, add snow")[0]  # image editing (English instructions)
  • Training: +18,613 steps from the previous weights (revision v1.2-edit), 40% text-to-image / 60% editing
  • Data: 1,000,000 images from LucasFang/FLUX-Reason-6M and 190,988 edit pairs from TIGER-Lab/OmniEdit-Filtered-1.2M (MIT): add, remove, swap, attribute, environment and style edits
  • Hardware: 1× NVIDIA RTX PRO 6000, 6.5 h
  • Images are center-cropped to a square; low resolution limits fine edits (text, small objects, faces).

Model

ArchitectureDiT with rectified flow (flow matching)
Parameters343M
Hidden size / depth / heads1024 / 20 / 16
Resolution256×256
Latent spaceDC-AE f32c32 (mit-han-lab/dc-ae-f32c32-sana-1.0-diffusers), 32×8×8 = 64 tokens
Text encodergoogle/flan-t5-base (frozen, 96 tokens)
Details2D RoPE, QK-norm, adaLN-single, SwiGLU, cross-attention, EMA weights

Training

  • Data: 1,226,758 images from LucasFang/FLUX-Reason-6M (quality score ≥ 7), random short or long caption per sample
  • Steps: 9,544 at batch size 1024
  • Optimizer: AdamW, lr 0.0002, cosine schedule, bf16
  • Hardware: 1× NVIDIA RTX PRO 6000, ~5 h total (data download, encoding and training)

Fine-tuning

These weights continue from the base model (revision v1.0-base, 32,748 steps).

  • Extra steps: 10,233 (total 42,981) at batch size 1024
  • New data: 2,139,181 images from LucasFang/FLUX-Reason-6M not seen by the base model
  • Optimizer: AdamW, lr 0.0001, cosine schedule, bf16
  • Hardware: 1× NVIDIA RTX PRO 6000, 5.7 h so far

The sample grid above is regenerated from these weights.

Usage

pip install torch diffusers transformers safetensors huggingface_hub sentencepiece
from huggingface_hub import hf_hub_download
import importlib.util

path = hf_hub_download("caikybaldo999/zyi-256-flash", "zyi256.py")
spec = importlib.util.spec_from_file_location("zyi256", path)
zyi256 = importlib.util.module_from_spec(spec); spec.loader.exec_module(zyi256)

pipe = zyi256.ZyiPipeline("caikybaldo999/zyi-256-flash")
images = pipe("a misty mountain lake at sunrise with pine trees", n=4, steps=28, cfg=4.5, seed=0)
images[0].save("out.png")

English prompts work best (the training captions are in English).

Limitations

  • Good at landscapes, interiors, food, objects and painting styles.
  • Weak at animal anatomy, faces, hands and readable text.
  • Does not follow spatial relations reliably ("a red ball on top of a blue box").

ZYI-GIF · Geração experimental de GIFs (LoRA)

Fine-tuning de previsão do quadro seguinte (256×256, 8 frames) baseado nesta ZYI-256 Flash. Os pesos principais de geração de imagens não foram alterados.

from huggingface_hub import hf_hub_download
import importlib.util
src=hf_hub_download("caikybaldo999/zyi-256-flash", "gif/inference.py")
spec=importlib.util.spec_from_file_location("zyigif", src)
m=importlib.util.module_from_spec(spec);spec.loader.exec_module(m)
pipe,base=m.load_zyigif("caikybaldo999/zyi-256-flash",device="cuda")
m.generate_gif(pipe,base,"a candle flame flickering","output.gif",num_frames=8,fps=8)

Exemplos gerados pelo modelo: abrir pasta GIF. O treinamento é experimental: movimentos podem ficar inconsistentes.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch

Нельзя запустить

Генеративная модель выложена не в формате diffusers.

Ревизия весов
caf8600

0 моделей