Replicate.com: Methexis IncのImg2Promptツールを使用して、スタイルに合った画像に近いテキストプロンプトを生成します。 安定した拡散(clip ViT-L/14に最適化)に最適化されています。

Methexis-Inc Img2prompt APIをReplicateで使用します

紹介

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インターロゲーターノートブックのわずかに適応されたバージョンです。

methexis-inc/img2promptの価格設定

methexis-inc/img2promptの価格設定は明記されていません。ただし、このモデルはNvidia T4 GPUハードウェア上で実行され、通常51秒以内に予測が完了します。このモデルの予測時間は、入力に基づいて大幅に異なります。

Methexis-Inc - 代替案

写真をオンラインでカラー化する | 無料でお試し | リアルな色

Palette.fm: Palette.fmのAIパワードオンラインエディターを使用して、モノクロ画像を即座にカラー化します。効率的な写真のカラーリゼーションのためのサブスクリプションプランや主要な機能を探索してください。包括的なPalette FMのレビューを今すぐ読んでください。

417.4 K
AI写真生成 | フォトAI™

AIを使用して人々の写真をリアルに生成します。AIフォトグラファーで人々の見事な写真を撮影しましょう!写真や動画コンテンツを作成します。

--
AI向けの完全なデータ開発プラットフォーム | Encord

モデルを本番環境に導入する際のすべてのステップを加速させます。主要チームがEncordを使用して予測および生成コンピュータビジョンアプリケーションを構築する方法を発見してください。

184.9 K
あなたの日常の編集ツールの相棒 | Facetune

無料の7日間トライアルを開始してください。世界トップのセルフィーエディターの編集ツールで、写真や動画をレベルアップさせ、ビジュアルコンテンツを輝かせましょう。

392.3 K
に関するその他のタグ: Methexis-Inc Img2prompt APIをReplicateで使用します