GLIGEN文生图模型

我要开发同款
匿名用户2024年07月31日
34阅读
所属分类aipytorch
开源地址https://modelscope.cn/models/jianguo_wjg/GLIGEN
授权协议MIT License

作品详情

GLIGEN

GLIGEN: Open-Set Grounded Text-to-Image Generatio

example

from modelscope.pipelines import pipeline

pipe = pipeline('gligen', model="jianguo_wjg/GLIGEN", model_revision="v1.0.1")

meta = dict(
    prompt="a teddy bear sitting next to a bird",
    phrases=['a teddy bear', 'a bird'],
    locations=[[0.0, 0.09, 0.33, 0.76], [0.55, 0.11, 1.0, 0.8]],
    alpha_type=[0.3, 0.0, 0.7],
    save_folder_name="generation_box_text"
)

sample = pipe(meta)[0]

sample.save("out.png")

License

The model is licensed under the MIT license.

Citation

@article{li2023gligen,
  title={GLIGEN: Open-Set Grounded Text-to-Image Generation},
  author={Li, Yuheng and Liu, Haotian and Wu, Qingyang and Mu, Fangzhou and Yang, Jianwei and Gao, Jianfeng and Li, Chunyuan and Lee, Yong Jae},
  journal={CVPR},
  year={2023}
}

Clone with HTTP

 git clone https://www.modelscope.cn/jianguo_wjg/GLIGEN.git
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论