在Replicate上使用Methexis-Inc Img2prompt API

Replicate.com:使用Methexis Inc的Img2Prompt工具生成與圖像風格相匹配的文本提示。優化為穩定擴散(clip ViT-L/14)。

在Replicate上使用Methexis-Inc Img2prompt API

介紹

methexis-inc/img2prompt是什麼?

methexis-inc/img2prompt是一個模型,可以生成與圖像匹配的帶有風格的近似文本提示。它經過了穩定擴散(clip ViT-L/14)的優化。

如何使用methexis-inc/img2prompt

您可以通過各種方法來使用methexis-inc/img2prompt,包括Node.js、Python、Elixir、HTTP、Cog和Docker。以下是如何使用該模型的一些示例:

Node.js

const replicate = new Replicate({
  auth: process.env.REPLICATE_API_TOKEN,
});

const output = await replicate.run(
  "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5",
  {
    input: {
      image: "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png"
    }
  }
);
console.log(output);

Python

import replicate

output = replicate.run(
    "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5",
    input={
        "image": "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png"
    }
)
print(output)

Elixir

output = Replicate.run(
  "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5",
  %{
    image: "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png"
  }
)
IO.inspect(output)

HTTP

curl -s -X POST \
  -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d $'{
    "version": "50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5",
    "input": {
      "image": "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png"
    }
  }' \
  https://api.replicate.com/v1/predictions

Cog

cog predict r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5 \
  -i 'image="https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png"'

Docker

docker run -d -p 5000:5000 --gpus=all r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5
curl -s -X POST \
  -H "Content-Type: application/json" \
  -d $'{
    "input": {
      "image": "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png"
    }
  }' \
  http://localhost:5000/predictions

methexis-inc/img2prompt的特點

該模型提供了可以與穩定擴散一起使用的近似文本提示,以重新創建圖像/繪畫的外觀。這是由@pharmapsychotic稍作調整的CLIP Interrogator筆記本的版本。

methexis-inc/img2prompt的價格

methexis-inc/img2prompt的價格未指定。但是,該模型在Nvidia T4 GPU硬件上運行,預測通常在51秒內完成。該模型的預測時間會根據輸入而有顯著差異。

在Replicate上使用Methexis-Inc - 替代

使用AI圖像編輯創作令人驚艷的藝術 - 文字繪畫

Paintbytext.chat: 使用AI技術在Paint by Text上使用書面指示編輯您的照片。通過生成式AI模型生成獨特的抽象圖像和3D渲染來進行實驗。使用這款創新的AI工具,通過基於文本的指示複製和修改圖像。

1.0 K
頂尖狗品種辨識應用程式 | 狗狗辨識器

Thedogidentifier.com:使用Dog Identifier應用程式輕鬆辨識狗品種。只需拍照,讓AI狗狗掃描器辨識品種。非常適合辨識雜交品種!

780
Stability AI 揭開 StableStudio: DreamStudio 未來的開源之路

Stability.ai:Stability AI 推出 StableStudio,一個開源的文本到圖像應用程式,專注於社區驅動的開發和推進生成式人工智慧。加入 StableStudio,體驗 AI 未來,進行逼真圖像生成、語言模型等。

1.1 M
AI視頻編輯軟件 | 輕鬆在線視頻編輯工具

Wearenova.ai: 使用我們的 AI 驅動在線視頻編輯平台創建令人驚嘆的視頻。輕鬆修剪、剪切和合併您的片段。使用我們用戶友好的視頻編輯工具添加字幕、翻譯等。無需安裝 - 一切都在線上完成,方便快捷。

44.9 K
更多類別