协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
text-to-image-generation【开发与工程】Write and debug Python min-dalle text-to-image generation calls, streams, tensor/PIL outputs, sampling controls, seamless tiling, seeds, devices, dtypes, and reuse choices.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a future agent needs to write, adapt, or debug Python MinDalle text-to-image calls: model construction, single-image grids, per-image tensor batches, progressive streams, sampling parameters, seamless tiling, reproducible seeds, is_mega, is_reusable, device, and dtype choices.
Start here:
MinDalle signatures, output types, shapes, and parameter semantics.--run is supplied.Operating rules:
generate_images() and generate_images_stream() need grid_size in kwargs because the implementation reshapes output batches from kwargs["grid_size"].generate_image()/generate_image_stream() for PIL grid images; generate_images()/generate_images_stream() for tensor batches of individual 256×256 images; generate_raw_image_stream() for raw grid tensors.MinDalle(...) construction as potentially expensive: tokenizer assets may be requested immediately, and full encoder/decoder/detokenizer weights load during construction when is_reusable=True. Route cache/download/storage and detailed dtype memory planning to ../model-assets-and-runtime/SKILL.md.image_from_text.py, Tkinter UI, Colab notebook UX, Replicate, Spaces, or public deployment interface tasks to ../deployment-and-interfaces/SKILL.md.