Replicate.com : Générez des prompts textuels qui correspondent étroitement à une image avec style en utilisant l'outil Img2Prompt de Methexis Inc. Optimisé pour la diffusion stable (clip ViT-L/14).

Methexis-Inc Img2prompt API sur Replicate

Présentation

Qu'est-ce que methexis-inc/img2prompt?

methexis-inc/img2prompt est un modèle qui génère une approximation de texte prompt, avec style, correspondant à une image. Il est optimisé pour la diffusion stable (clip ViT-L/14).

Comment utiliser methexis-inc/img2prompt

Vous pouvez utiliser methexis-inc/img2prompt à travers diverses méthodes, y compris Node.js, Python, Elixir, HTTP, Cog et Docker. Voici quelques exemples d'utilisation du modèle :

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

Caractéristiques de methexis-inc/img2prompt

Le modèle fournit des approximations de texte prompt qui peuvent être utilisées avec la diffusion stable pour recréer des versions similaires de l'image/peinture. Il s'agit d'une version légèrement adaptée du notebook CLIP Interrogator par @pharmapsychotic.

Tarification de methexis-inc/img2prompt

La tarification de methexis-inc/img2prompt n'est pas spécifiée. Cependant, le modèle fonctionne sur du matériel GPU Nvidia T4, et les prédictions se terminent généralement en 51 secondes. Le temps de prédiction pour ce modèle varie considérablement en fonction des entrées.

Methexis-Inc - Alternative

Améliorez vos photos en ligne : améliorez la qualité de l'image gratuitement

Picsenhancer.com : Améliorez vos images avec un outil d'amélioration de photos alimenté par l'IA qui affine et clarifie les images floues sans compromettre la qualité. Profitez d'une utilisation illimitée gratuitement sur PicsEnhancer.

--
Picture To Summary AI

Image à Résumé AI en ligne: Obtenez des résumés à partir d'images avec Image à Résumé AI, un outil en ligne utilisant la technologie de l'IA pour analyser et résumer les images efficacement.

--
PikFlow

PikFlow - Plateforme de création et d'édition d'images alimentée par l'IA avec technologie de conversion de texte en image et outils de suppression de fond.

--
PikPoet | Comble l'écart entre vos photos et les légendes parfaites.

Explorez le monde des expressions créatives et faites parler vos photos avec de belles et évocatrices expressions textuelles

--
Plus de tags sur: Methexis-Inc Img2prompt API sur Replicate