[GLIDE] Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models

1、目的

        综合所有的text prompts来生成photorealistic images

2、方法

        Guided Language to Image Diffusion for Generation and Editing (GLIDE)

        1)模型

                -> 3.5B参数text-conditional diffusion model,64 x 64 resolution

                -> 1.5B参数text-conditional upsampling diffusion model,256 x 256 resolution

                -> noised 64 x 64 ViT-L CLIP model

        2)text condition

                -> Classifier-free guidance

                       

                        将text编码为K tokens送入Transformer模型:作为class embedding;token embeddings的最后一层K个feature vectors映射后并联到扩散模型的每个attention层

                        优于CLIP guidance

                -> CLIP Guidance

                       

                        将classifier guidance中的梯度替换为image和caption的encoding的点积对图像的导数,即 CLIP score = E[s(f(image) \cdot g(caption))]

                        需要在noised图像上训练CLIP,得到noised CLIP models

        3)对模型进行fine-tune,来执行image inpainting

                -> 增加4个通道:随机擦除图像区域后的RGB通道 + mask

                -> 新通道参数初始化为0

                -> 对于upsampling模型,gt仅包括高分辨率unmasked region

                -> 可以让使用者迭代生成结果,直到和复杂的prompts匹配

  • 4
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值