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:4878986a
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:4878986a1c516439d5f7327591c6caad6f1d215cef2b00c181e8fd33d3c5884f",
{
input: {
drop: true,
topk: 300,
input_text: "A Car",
input_image: "https://replicate.delivery/pbxt/IAYh4YrHkkbfMvCyRq1i401CNpXNom7pFvXzq9SZ9QN5cwOQ/Screenshot%20from%202023-01-20%2013-57-44.png",
clip_version: "RN50x16",
overly_output: false
}
}
);
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:4878986a1c516439d5f7327591c6caad6f1d215cef2b00c181e8fd33d3c5884f",
input={
"drop": True,
"topk": 300,
"input_text": "A Car",
"input_image": "https://replicate.delivery/pbxt/IAYh4YrHkkbfMvCyRq1i401CNpXNom7pFvXzq9SZ9QN5cwOQ/Screenshot%20from%202023-01-20%2013-57-44.png",
"clip_version": "RN50x16",
"overly_output": False
}
)
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": "4878986a1c516439d5f7327591c6caad6f1d215cef2b00c181e8fd33d3c5884f",
"input": {
"drop": true,
"topk": 300,
"input_text": "A Car",
"input_image": "https://replicate.delivery/pbxt/IAYh4YrHkkbfMvCyRq1i401CNpXNom7pFvXzq9SZ9QN5cwOQ/Screenshot%20from%202023-01-20%2013-57-44.png",
"clip_version": "RN50x16",
"overly_output": false
}
}' \
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-26T07:21:06.795352Z",
"created_at": "2023-01-26T07:20:42.868393Z",
"data_removed": false,
"error": null,
"id": "hto5wmfiijdcxiijyo5g43f2wa",
"input": {
"drop": true,
"topk": 300,
"input_text": "A Car",
"input_image": "https://replicate.delivery/pbxt/IAYh4YrHkkbfMvCyRq1i401CNpXNom7pFvXzq9SZ9QN5cwOQ/Screenshot%20from%202023-01-20%2013-57-44.png",
"clip_version": "RN50x16",
"overly_output": false
},
"logs": "0%| | 0/5 [00:00<?, ?it/s]\n 20%|██ | 1/5 [00:00<00:03, 1.02it/s]\n 40%|████ | 2/5 [00:01<00:02, 1.04it/s]\n 60%|██████ | 3/5 [00:02<00:01, 1.04it/s]\n 80%|████████ | 4/5 [00:03<00:00, 1.05it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.18it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.11it/s]\n(634, 633)",
"metrics": {
"predict_time": 23.8764,
"total_time": 23.926959
},
"output": "https://replicate.delivery/pbxt/9y044nlsFcKdCFaQvXeCxNNPeukSb2T5VReNfjWZizFLetfFE/output.png",
"started_at": "2023-01-26T07:20:42.918952Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/hto5wmfiijdcxiijyo5g43f2wa",
"cancel": "https://api.replicate.com/v1/predictions/hto5wmfiijdcxiijyo5g43f2wa/cancel"
},
"version": "4878986a1c516439d5f7327591c6caad6f1d215cef2b00c181e8fd33d3c5884f"
}
0%| | 0/5 [00:00<?, ?it/s]
20%|██ | 1/5 [00:00<00:03, 1.02it/s]
40%|████ | 2/5 [00:01<00:02, 1.04it/s]
60%|██████ | 3/5 [00:02<00:01, 1.04it/s]
80%|████████ | 4/5 [00:03<00:00, 1.05it/s]
100%|██████████| 5/5 [00:04<00:00, 1.18it/s]
100%|██████████| 5/5 [00:04<00:00, 1.11it/s]
(634, 633)