免費工具

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 GIFs - 高級人工智慧技術打造獨特迷人的動態 GIF

Aigifs.vercel.app:使用先進的人工智慧技術打造迷人的視覺內容,創建獨特的迷因生成器。在Vercel上使用我們的AI動態圖工具探索動畫GIF的世界。

--
AI 驅動的圖像編輯工具:Storia Lab

Textify.storia.ai: 使用由Storia AI提供的Textify輕鬆編輯圖像,這是一個AI動力工具,可幫助您修復文本,刪除物件並更換圖像背景。使用這種創新的AI技術,將素描圖轉換為高畫質圖像、向量化等。探索Textify,體驗無縫的編輯體驗。

--
利用人工智慧增強照片:照片修復、圖像放大、上色 - Nero AI

Ai.nero.com:Nero AI 提供先進的照片修復和修復服務。利用 AI 技術,Nero AI 可快速消除舊照片上的划痕並增強顏色。立即嘗試我們的在線工具,輕鬆恢復和上色您的圖像。

--
AI圖像生成器 - 使用ImgCreator.AI創建令人驚嘆的AI設計

Imgcreator.ai: 使用ImgCreator.AI創建令人驚嘆的AI生成圖像。我們的AI圖像生成器提供一系列工具,包括AI設計師、AI模型和AI肖像生成器。生成神奇的背景,將文本轉換為圖像,並探索Deepgram技術。利用自定義AI藝術、插圖和概念藝術,解鎖生成藝術和未來工具的力量。通過功能如圖像參考因子、自由設計、各種畫布尺寸和輸出分辨率來自定義您的圖像。輕鬆更改背景,生成填充圖像,並輕鬆刪除水印。

--
更多標籤: 在Replicate上使用Methexis-Inc Img2prompt API