pengdaqian2020 / image-tagger

image tagger

  • Public
  • 41.8M runs
  • CPU

Input

pip install replicate
Set the REPLICATE_API_TOKEN environment variable:
export REPLICATE_API_TOKEN=<paste-your-token-here>

Find your API token in your account settings.

Import the client:
import replicate

Run pengdaqian2020/image-tagger using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

output = replicate.run(
    "pengdaqian2020/image-tagger:5a3e65f223fe2291679a6c3c812ddb278aa6d43bbcf118c09530b4309aaac00e",
    input={
        "image": "https://replicate.delivery/pbxt/Iq6u39HlpVeYwhM3hzWBfbOCVKJJ2LENzNC1ccXrw5SUYAaC/bunny3.webp",
        "score_general_threshold": 0.35,
        "score_character_threshold": 0.85
    }
)

print(output)

To learn more, take a look at the guide on getting started with Python.

Output

tag

blurry

confidence

0.8186014890670776

tag

no_humans

confidence

0.9389649629592896

tag

depth_of_field

confidence

0.5496093034744263

tag

animal

confidence

0.8239761590957642

tag

cat

confidence

0.608523964881897

tag

rabbit

confidence

0.4221939146518707

tag

realistic

confidence

0.7589364647865295

tag

animal_focus

confidence

0.911034345626831
Generated in

Run time and cost

This model costs approximately $0.0032 to run on Replicate, or 312 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on CPU hardware. Predictions typically complete within 33 seconds. The predict time for this model varies significantly based on the inputs.

Readme

This model doesn't have a readme.