近期对于多模态方向的研究进展十分炽热,尤其是文生图方向,国内外ERNIE-ViLG、Stable-Diffusion、Disco-Diffusion相继开源凋谢,对于想要疾速尝试学术界最新成绩的同学,不防试一试开源的工具PaddleHub,只需三行代码就能够生成高质量图片,成果十分惊艳~ 是时候施展本人想象力的时候了~

传送门GitHub Code: https://github.com/PaddlePadd...

Huggingface Space: https://huggingface.co/spaces...

import paddlehub as hub module = hub.Module(name=" stable_diffusion ")  results = module.generate_image(text_prompts=[" close-up maximalist illustration of lion, by makoto shinkai, akihiko yoshida, yoshitaka amano, super detailed "])