在Replicate上使用Methexis-Inc Img2prompt API

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

在Replicate上使用Methexis-Inc Img2prompt API

Giới thiệu

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 - Thay thế

DeepMake - AI-Powered Tools for Creativity

Deepmake.com:DeepMake利用生成式人工智慧輕鬆快速地優化內容創作。利用尖端的開源人工智慧技術,我們提供僅需點擊幾下即可獲得VFX,從文字提示生成庫存影片,即時分割圖層,並提供一系列其他創新解決方案。

9.6 K
使用AI - Prezo製作簡報、文件和網站

Prezo.ai:使用Prezo.ai輕鬆創建令人驚艷的演示文稿、文件和網站。這個由人工智慧驅動的平台提供各種互動塊,以增強您的內容。只需點擊一下即可分享您的創作,吸引您的觀眾。

63.2 K
Deep-Image.ai - 圖像放大、背景移除、頭像、室內設計和塗鴉

Deep-image.ai: 通過Deep Image AI輕鬆增強圖像、創建AI頭像並轉換背景。無需信用卡,免費試用我們的服務。提升您的電子商務視覺效果,重新想像房地產攝影。

445.9 K
使用穩定擴散人工智慧技術創建令人驚豔的圖像

Tinybots.net:在Tinybots Artbot上使用Stable Diffusion創建由AI生成的圖像和照片。利用由AI Horde提供動力的分佈式計算集群進行無縫圖像生成。無需登錄,完全免費使用。

22.2 K
Nhiều Danh mục hơn