arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18870cs.CV
收藏

基于4张消费级GPU的从预训练到微调的犬种文本到图像流匹配

MiniDog: Dog-Breed Text-to-image Flow Matching from Pretraining to Fine-Tuning on 4 Consumer GPUs

The Australian National University(澳大利亚国立大学)

Reyhaneh Esmailizadeh, Xingjian Leng, Zhanhao Liang, Liang Zheng

AI总结:

本研究开发MiniDog框架,可在4张3090 GPU上用55分钟预训练、15分钟微调犬种文本到图像扩散模型,采用特定架构与加速方法,支持多类评估指标,降低了相关模型训练的资源门槛。

摘要:

人们普遍认为,训练文本到图像扩散模型需要大量计算资源,若要打造前沿综合模型,这一点确实成立。这种认知阻碍了该领域新手训练自己的模型。我们开发了MiniDog框架,可在4张3090 GPU上用55分钟完成扩散Transformer的预训练,再用15分钟完成微调。数据方面,我们使用ImageNet中的2.6万张犬类图像并为其添加标题用于预训练,使用FLUX.1-schnell生成的2000张图像用于微调。为提升效率,我们预计算图像和文本特征并进行缓存。架构方面,我们采用E2E-INVAE以利用其语义潜在空间,采用参数规模为22M的小型Transformer、用于文本编码的小型Qwen模型以及上下文条件机制。训练方面,我们使用iREPA和EUPE感知编码器来加速。评估方面,我们的代码库支持FID、HPSv2分数、PickScore以及多种VAE重建指标。

英文摘要:

We generally perceive that training text-to-image diffusion models requires heavy compute: it is true if we aim at a comprehensive frontier model. This understanding prevents people from training their own models when getting started in the field. We develop MiniDog, a framework that enables pretraining diffusion transformers in 55 minutes and fine-tuning in another 15 minutes on four 3090 GPUs. For data, we use 26k dog images from ImageNet and caption them for pretraining and use 2k images generated by FLUX.1-schnell for fine-tuning. We precompute the image and text features and cache them for efficiency. For architecture, we use E2E-INVAE for its semantic latent space, a small transformer with 22M parameters, a small Qwen model for text encoding, and in-context conditioning. For training, we use iREPA and an EUPE perception encoder for acceleration. For evaluation, our repository supports FID, HPSv2 score, PickScore, and various VAE reconstruction metrics. The project is open-sourced at https://github.com/Reyhaneesmailizadeh/MiniDog. We do not claim technical novelty.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑