-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Research Project
] Add AnyText: Multilingual Visual Text Generation And Editing
#8998
base: main
Are you sure you want to change the base?
Conversation
This commit adds improvements to the modify_prompt method in the AnyTextPipeline class. The method now handles special characters and replaces selected string prompts with a placeholder. Additionally, it includes a check for Chinese text and translation using the trans_pipe.
…se of the transformers library`
…ConditioningEmbedding`
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
…text_controlnet.py
Thanks for the opportunity to fix #6407!
Paper: AnyText: Multilingual Visual Text Generation And Editing
Repository: https://github.com/tyxsspa/AnyText
Hugging Face Space: modelscope/AnyText
TODOs:
⏳
AuxiliaryLatentModule
✅
AnyTextControlNetModel
-> Inherited and adapted fromControlNetModel
. The only difference is that using Gylph Block, Position Block, and Fuse Block instead ofinput_hint_block
orcontrolnet_cond_embedding
from an ordinary ControlNet -ControlNetConditioningEmbedding
is different. I deactivated theControlNetConditioningEmbedding
part and moved the new blocks intoAuxiliaryLatentModule
just to comply with the Figure.⏳
AnyTextPipeline
-> Adapted fromStableDiffusionControlNetPipeline
.⏳
TextEmbeddingModule
-> Replaces theencode_prompt()
function. I may transfer whatTextEmbeddingModule
does intoencode_prompt()
.✅
convert_anytext_to_diffusers.py
⏳ Verify outputs with the original implementation
⏳ Finish HF integration & upload converted checkpoints to HF
⏳
README.md
⬜ Make it as simple as possible, but not simpler