生成与图片名称相似的图片

问题描述 投票:0回答:1

我有一个要求,我想生成一个与我的项目名称相似的图像。例如。如果我的商品名称是 Butter Chicken,那么我希望生成一张黄油鸡的图像。我的要求只是特定于食物。我查看了 DeepAI 图像 API,但它生成的图像质量很差。谁能建议我该怎么做? PS:我想在 NodeJs 中做这个。

node.js deep-learning artificial-intelligence pre-trained-model jimp
1个回答
1
投票

我建议你使用Dalle-2、Midjourney、Adobe Firefly等的API服务,你必须在你的末端有缓存机制和令牌相似性识别系统,以避免类似短语重复API调用,如Butter Chicken和ButterChicken,

  1. https://docs.midjourney.com/
  2. https://platform.openai.com/docs/api-reference
  3. https://www.adobe.com/sensei/generative-ai/firefly.html

如果你的堆栈是服务器较少,那么最好与中间层 CDN 集成

© www.soinside.com 2019 - 2024. All rights reserved.