Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
arielreplicate /gscorecam-clip-analyzer:8ffb602b
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run arielreplicate/gscorecam-clip-analyzer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"arielreplicate/gscorecam-clip-analyzer:8ffb602b35a3c4836758bfa8d9f6f19bb6d8870b2e1d6c2f5744e091f5ed9d37",
{
input: {
drop: true,
topk: 300,
input_text: "iPod",
input_image: "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg",
clip_version: "RN50x16",
overly_output: true
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run arielreplicate/gscorecam-clip-analyzer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"arielreplicate/gscorecam-clip-analyzer:8ffb602b35a3c4836758bfa8d9f6f19bb6d8870b2e1d6c2f5744e091f5ed9d37",
input={
"drop": True,
"topk": 300,
"input_text": "iPod",
"input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg",
"clip_version": "RN50x16",
"overly_output": True
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run arielreplicate/gscorecam-clip-analyzer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "8ffb602b35a3c4836758bfa8d9f6f19bb6d8870b2e1d6c2f5744e091f5ed9d37",
"input": {
"drop": true,
"topk": 300,
"input_text": "iPod",
"input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg",
"clip_version": "RN50x16",
"overly_output": true
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-01-24T18:41:58.936697Z",
"created_at": "2023-01-24T18:40:07.994281Z",
"data_removed": false,
"error": null,
"id": "vaa2cdof6bdblpm52xavxdxeny",
"input": {
"drop": true,
"topk": 300,
"input_text": "iPod",
"input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg",
"clip_version": "RN50x16",
"overly_output": true
},
"logs": "0%| | 0/5 [00:00<?, ?it/s]\n 20%|██ | 1/5 [00:01<00:04, 1.02s/it]\n 40%|████ | 2/5 [00:01<00:02, 1.03it/s]\n 60%|██████ | 3/5 [00:02<00:01, 1.04it/s]\n 80%|████████ | 4/5 [00:03<00:00, 1.04it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.19it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.11it/s]",
"metrics": {
"predict_time": 31.124282,
"total_time": 110.942416
},
"output": "https://replicate.delivery/pbxt/0Xlf8ew1Uokji0eAfAe5Tcj7wkdjWvK3TK5WoreIfRAP7wuLIA/output.png",
"started_at": "2023-01-24T18:41:27.812415Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/vaa2cdof6bdblpm52xavxdxeny",
"cancel": "https://api.replicate.com/v1/predictions/vaa2cdof6bdblpm52xavxdxeny/cancel"
},
"version": "8ffb602b35a3c4836758bfa8d9f6f19bb6d8870b2e1d6c2f5744e091f5ed9d37"
}
0%| | 0/5 [00:00<?, ?it/s]
20%|██ | 1/5 [00:01<00:04, 1.02s/it]
40%|████ | 2/5 [00:01<00:02, 1.03it/s]
60%|██████ | 3/5 [00:02<00:01, 1.04it/s]
80%|████████ | 4/5 [00:03<00:00, 1.04it/s]
100%|██████████| 5/5 [00:04<00:00, 1.19it/s]
100%|██████████| 5/5 [00:04<00:00, 1.11it/s]