Classifies images with ResNet-50
{ "image": "https://replicate.delivery/mgxm/64ae6640-b109-4484-9c45-2e6bae918f56/cat.jpg" }
npm install replicate
import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run replicate/resnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "replicate/resnet:dd782a3d531b61af491d1026434392e8afb40bfb53b8af35f727e80661489767", { input: { image: "https://replicate.delivery/mgxm/64ae6640-b109-4484-9c45-2e6bae918f56/cat.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "replicate/resnet:dd782a3d531b61af491d1026434392e8afb40bfb53b8af35f727e80661489767", input={ "image": "https://replicate.delivery/mgxm/64ae6640-b109-4484-9c45-2e6bae918f56/cat.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "replicate/resnet:dd782a3d531b61af491d1026434392e8afb40bfb53b8af35f727e80661489767", "input": { "image": "https://replicate.delivery/mgxm/64ae6640-b109-4484-9c45-2e6bae918f56/cat.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{ "completed_at": "2022-05-17T02:17:27.651177Z", "created_at": "2022-05-17T02:16:47.309508Z", "data_removed": false, "error": null, "id": "disjucw2djbrhg5c5rzhegd2g4", "input": { "image": "https://replicate.delivery/mgxm/64ae6640-b109-4484-9c45-2e6bae918f56/cat.jpg" }, "logs": "Downloading data from https://storage.googleapis.com/download.tensorflow.org/data/imagenet_class_index.json\n\n16384/35363 [============>.................] - ETA: 0s\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\n40960/35363 [==================================] - 0s 0us/step\n\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\n49152/35363 [=========================================] - 0s 0us/step", "metrics": { "predict_time": 4.73821, "total_time": 40.341669 }, "output": [ [ "n02123597", "Siamese_cat", 0.8829364776611328 ], [ "n02123394", "Persian_cat", 0.09810526669025421 ], [ "n02123045", "tabby", 0.005758069921284914 ] ], "started_at": "2022-05-17T02:17:22.912967Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/disjucw2djbrhg5c5rzhegd2g4", "cancel": "https://api.replicate.com/v1/predictions/disjucw2djbrhg5c5rzhegd2g4/cancel" }, "version": "dd782a3d531b61af491d1026434392e8afb40bfb53b8af35f727e80661489767" }
Downloading data from https://storage.googleapis.com/download.tensorflow.org/data/imagenet_class_index.json 16384/35363 [============>.................] - ETA: 40960/35363 [==================================] - 0s 0us/step 49152/35363 [=========================================] - 0s 0us/step
Want to make some of these yourself?
This is a language model that can be used to obtain document embeddings suitable for downstream tasks like semantic search and clustering.
Train your own custom Stable Diffusion model using a small set of images
A language model by Google for tasks like classification, summarization, and more
Generates goo
A large language model by EleutherAI
Transformers implementation of the LLaMA language model
Train your own custom RVC model
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.