Description
Model/Pipeline/Scheduler description
From the repository:
AnyText comprises a diffusion pipeline with two primary elements: an auxiliary latent module and a text embedding module. The former uses inputs like text glyph, position, and masked image to generate latent features for text generation or editing. The latter employs an OCR model for encoding stroke data as embeddings, which blend with image caption embeddings from the tokenizer to generate texts that seamlessly integrate with the background. We employed text-control diffusion loss and text perceptual loss for training to further enhance writing accuracy.
Open source status
- The model implementation is available.
- The model weights are available (Only relevant if addition is not a scheduler).
Provide useful links for the implementation
Repository: https://github.com/tyxsspa/AnyText
Paper: https://arxiv.org/abs/2311.03054
Weights and inference code: https://modelscope.cn/models/damo/cv_anytext_text_generation_editing/summary