arielreplicate
/
gscorecam-clip-analyzer
Shows what CLIP looks at in an image given text
Prediction
arielreplicate/gscorecam-clip-analyzer:414953a7IDsw7zpabwmrcibpgdmnftfh3ffmStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "drop": true, "topk": 300, "input_text": "Heart", "input_image": "https://replicate.delivery/pbxt/IAYh4YrHkkbfMvCyRq1i401CNpXNom7pFvXzq9SZ9QN5cwOQ/Screenshot%20from%202023-01-20%2013-57-44.png", "clip_version": "RN50x16", "overly_output": true }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client: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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", { input: { drop: true, topk: 300, input_text: "Heart", input_image: "https://replicate.delivery/pbxt/IAYh4YrHkkbfMvCyRq1i401CNpXNom7pFvXzq9SZ9QN5cwOQ/Screenshot%20from%202023-01-20%2013-57-44.png", clip_version: "RN50x16" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_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 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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", input={ "drop": True, "topk": 300, "input_text": "Heart", "input_image": "https://replicate.delivery/pbxt/IAYh4YrHkkbfMvCyRq1i401CNpXNom7pFvXzq9SZ9QN5cwOQ/Screenshot%20from%202023-01-20%2013-57-44.png", "clip_version": "RN50x16" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_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": "414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", "input": { "drop": true, "topk": 300, "input_text": "Heart", "input_image": "https://replicate.delivery/pbxt/IAYh4YrHkkbfMvCyRq1i401CNpXNom7pFvXzq9SZ9QN5cwOQ/Screenshot%20from%202023-01-20%2013-57-44.png", "clip_version": "RN50x16" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-01-24T18:40:57.776215Z", "created_at": "2023-01-24T18:39:26.951072Z", "data_removed": false, "error": null, "id": "sw7zpabwmrcibpgdmnftfh3ffm", "input": { "drop": true, "topk": 300, "input_text": "Heart", "input_image": "https://replicate.delivery/pbxt/IAYh4YrHkkbfMvCyRq1i401CNpXNom7pFvXzq9SZ9QN5cwOQ/Screenshot%20from%202023-01-20%2013-57-44.png", "clip_version": "RN50x16", "overly_output": true }, "logs": "0%| | 0/5 [00:00<?, ?it/s]\n 20%|██ | 1/5 [00:01<00:04, 1.03s/it]\n 40%|████ | 2/5 [00:02<00:03, 1.01s/it]\n 60%|██████ | 3/5 [00:03<00:01, 1.00it/s]\n 80%|████████ | 4/5 [00:03<00:00, 1.01it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.14it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.07it/s]", "metrics": { "predict_time": 23.442016, "total_time": 90.825143 }, "output": "https://replicate.delivery/pbxt/lH8bSSGEKoLYA9aXR41XmkNpKm4Vg1wIP24ItckX90fcwuLIA/output.png", "started_at": "2023-01-24T18:40:34.334199Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/sw7zpabwmrcibpgdmnftfh3ffm", "cancel": "https://api.replicate.com/v1/predictions/sw7zpabwmrcibpgdmnftfh3ffm/cancel" }, "version": "8ffb602b35a3c4836758bfa8d9f6f19bb6d8870b2e1d6c2f5744e091f5ed9d37" }
Generated in0%| | 0/5 [00:00<?, ?it/s] 20%|██ | 1/5 [00:01<00:04, 1.03s/it] 40%|████ | 2/5 [00:02<00:03, 1.01s/it] 60%|██████ | 3/5 [00:03<00:01, 1.00it/s] 80%|████████ | 4/5 [00:03<00:00, 1.01it/s] 100%|██████████| 5/5 [00:04<00:00, 1.14it/s] 100%|██████████| 5/5 [00:04<00:00, 1.07it/s]
Prediction
arielreplicate/gscorecam-clip-analyzer:414953a7ID7ctf3imjdfgshoy7c5n4zdmnrqStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "drop": true, "topk": 300, "input_text": "Apple", "input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", "clip_version": "RN50x16", "overly_output": true }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client: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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", { input: { drop: true, topk: 300, input_text: "Apple", input_image: "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", clip_version: "RN50x16" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_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 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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", input={ "drop": True, "topk": 300, "input_text": "Apple", "input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", "clip_version": "RN50x16" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_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": "414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", "input": { "drop": true, "topk": 300, "input_text": "Apple", "input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", "clip_version": "RN50x16" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-01-24T18:41:42.441621Z", "created_at": "2023-01-24T18:40:05.856837Z", "data_removed": false, "error": null, "id": "7ctf3imjdfgshoy7c5n4zdmnrq", "input": { "drop": true, "topk": 300, "input_text": "Apple", "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.06s/it]\n 40%|████ | 2/5 [00:02<00:03, 1.03s/it]\n 60%|██████ | 3/5 [00:03<00:02, 1.02s/it]\n 80%|████████ | 4/5 [00:04<00:01, 1.01s/it]\n100%|██████████| 5/5 [00:04<00:00, 1.14it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.06it/s]", "metrics": { "predict_time": 22.497501, "total_time": 96.584784 }, "output": "https://replicate.delivery/pbxt/xqhalAMBwa6JB54L5JiI7KghtLUxol7zegiOLH2yqkdzwuLIA/output.png", "started_at": "2023-01-24T18:41:19.944120Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/7ctf3imjdfgshoy7c5n4zdmnrq", "cancel": "https://api.replicate.com/v1/predictions/7ctf3imjdfgshoy7c5n4zdmnrq/cancel" }, "version": "8ffb602b35a3c4836758bfa8d9f6f19bb6d8870b2e1d6c2f5744e091f5ed9d37" }
Generated in0%| | 0/5 [00:00<?, ?it/s] 20%|██ | 1/5 [00:01<00:04, 1.06s/it] 40%|████ | 2/5 [00:02<00:03, 1.03s/it] 60%|██████ | 3/5 [00:03<00:02, 1.02s/it] 80%|████████ | 4/5 [00:04<00:01, 1.01s/it] 100%|██████████| 5/5 [00:04<00:00, 1.14it/s] 100%|██████████| 5/5 [00:04<00:00, 1.06it/s]
Prediction
arielreplicate/gscorecam-clip-analyzer:414953a7IDvaa2cdof6bdblpm52xavxdxenyStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "drop": true, "topk": 300, "input_text": "iPod", "input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", "clip_version": "RN50x16", "overly_output": true }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client: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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", { input: { drop: true, topk: 300, input_text: "iPod", input_image: "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", clip_version: "RN50x16" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_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 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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", input={ "drop": True, "topk": 300, "input_text": "iPod", "input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", "clip_version": "RN50x16" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_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": "414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", "input": { "drop": true, "topk": 300, "input_text": "iPod", "input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", "clip_version": "RN50x16" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
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" }
Generated in0%| | 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]
Prediction
arielreplicate/gscorecam-clip-analyzer:414953a7IDkxecrskkmndhfj5kmf2cavo32iStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "drop": true, "topk": 300, "input_text": "background fence", "input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", "clip_version": "RN50x16", "overly_output": true }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client: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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", { input: { drop: true, topk: 300, input_text: "background fence", input_image: "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", clip_version: "RN50x16" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_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 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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", input={ "drop": True, "topk": 300, "input_text": "background fence", "input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", "clip_version": "RN50x16" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_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": "414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", "input": { "drop": true, "topk": 300, "input_text": "background fence", "input_image": "https://replicate.delivery/pbxt/IAa6qtgBBpgrG7xEqYd7aQRTnS4hfnXzGYqhK1MS3OTICtBm/apple-ipod.jpg", "clip_version": "RN50x16" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-01-24T18:42:05.175462Z", "created_at": "2023-01-24T18:40:11.534580Z", "data_removed": false, "error": null, "id": "kxecrskkmndhfj5kmf2cavo32i", "input": { "drop": true, "topk": 300, "input_text": "background fence", "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.04s/it]\n 40%|████ | 2/5 [00:02<00:03, 1.02s/it]\n 60%|██████ | 3/5 [00:03<00:02, 1.02s/it]\n 80%|████████ | 4/5 [00:04<00:01, 1.02s/it]\n100%|██████████| 5/5 [00:04<00:00, 1.11it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.05it/s]", "metrics": { "predict_time": 22.669444, "total_time": 113.640882 }, "output": "https://replicate.delivery/pbxt/hd8aNKCopIrWFls42o9IDlXQYwWLl8ycfNYk6mF1eTM8hdXQA/output.png", "started_at": "2023-01-24T18:41:42.506018Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/kxecrskkmndhfj5kmf2cavo32i", "cancel": "https://api.replicate.com/v1/predictions/kxecrskkmndhfj5kmf2cavo32i/cancel" }, "version": "8ffb602b35a3c4836758bfa8d9f6f19bb6d8870b2e1d6c2f5744e091f5ed9d37" }
Generated in0%| | 0/5 [00:00<?, ?it/s] 20%|██ | 1/5 [00:01<00:04, 1.04s/it] 40%|████ | 2/5 [00:02<00:03, 1.02s/it] 60%|██████ | 3/5 [00:03<00:02, 1.02s/it] 80%|████████ | 4/5 [00:04<00:01, 1.02s/it] 100%|██████████| 5/5 [00:04<00:00, 1.11it/s] 100%|██████████| 5/5 [00:04<00:00, 1.05it/s]
Prediction
arielreplicate/gscorecam-clip-analyzer:414953a7IDlqmx3n7twjcjnoeytk6b7adbt4StatusSucceededSourceWebHardware–Total durationCreatedInput
{ "drop": true, "topk": 300, "input_text": "A flag", "input_image": "https://replicate.delivery/pbxt/IAYy3cReCYZJnbdfx6RwY4hWqjQrN1NdC5Lyusnz1eKScaLU/pizza_tower.jpeg", "clip_version": "RN50x16", "overly_output": true }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client: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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", { input: { drop: true, topk: 300, input_text: "A flag", input_image: "https://replicate.delivery/pbxt/IAYy3cReCYZJnbdfx6RwY4hWqjQrN1NdC5Lyusnz1eKScaLU/pizza_tower.jpeg", clip_version: "RN50x16" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_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 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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", input={ "drop": True, "topk": 300, "input_text": "A flag", "input_image": "https://replicate.delivery/pbxt/IAYy3cReCYZJnbdfx6RwY4hWqjQrN1NdC5Lyusnz1eKScaLU/pizza_tower.jpeg", "clip_version": "RN50x16" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_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": "414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", "input": { "drop": true, "topk": 300, "input_text": "A flag", "input_image": "https://replicate.delivery/pbxt/IAYy3cReCYZJnbdfx6RwY4hWqjQrN1NdC5Lyusnz1eKScaLU/pizza_tower.jpeg", "clip_version": "RN50x16" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-01-24T18:44:45.205141Z", "created_at": "2023-01-24T18:44:17.195815Z", "data_removed": false, "error": null, "id": "lqmx3n7twjcjnoeytk6b7adbt4", "input": { "drop": true, "topk": 300, "input_text": "A flag", "input_image": "https://replicate.delivery/pbxt/IAYy3cReCYZJnbdfx6RwY4hWqjQrN1NdC5Lyusnz1eKScaLU/pizza_tower.jpeg", "clip_version": "RN50x16", "overly_output": true }, "logs": "0%| | 0/5 [00:00<?, ?it/s]\n 20%|██ | 1/5 [00:01<00:04, 1.03s/it]\n 40%|████ | 2/5 [00:02<00:03, 1.03s/it]\n 60%|██████ | 3/5 [00:03<00:02, 1.03s/it]\n 80%|████████ | 4/5 [00:04<00:01, 1.04s/it]\n100%|██████████| 5/5 [00:04<00:00, 1.09it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.03it/s]", "metrics": { "predict_time": 27.951651, "total_time": 28.009326 }, "output": "https://replicate.delivery/pbxt/eGasOfnFxViUz0qxneKPJ786MgrQyOsQfTDiutRyC1xwR2dBB/output.png", "started_at": "2023-01-24T18:44:17.253490Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/lqmx3n7twjcjnoeytk6b7adbt4", "cancel": "https://api.replicate.com/v1/predictions/lqmx3n7twjcjnoeytk6b7adbt4/cancel" }, "version": "8ffb602b35a3c4836758bfa8d9f6f19bb6d8870b2e1d6c2f5744e091f5ed9d37" }
Generated in0%| | 0/5 [00:00<?, ?it/s] 20%|██ | 1/5 [00:01<00:04, 1.03s/it] 40%|████ | 2/5 [00:02<00:03, 1.03s/it] 60%|██████ | 3/5 [00:03<00:02, 1.03s/it] 80%|████████ | 4/5 [00:04<00:01, 1.04s/it] 100%|██████████| 5/5 [00:04<00:00, 1.09it/s] 100%|██████████| 5/5 [00:04<00:00, 1.03it/s]
Prediction
arielreplicate/gscorecam-clip-analyzer:414953a7IDd5mq57ephvdxbekatccnjg7rvqStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "drop": true, "topk": 300, "input_text": "House", "input_image": "https://replicate.delivery/pbxt/IAYwTHPRWh6LCdAZOBcO8WEuiaFuHqHdbUYfEnmf5uCt1OPL/361010.jpg", "clip_version": "RN50x16", "overly_output": true }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client: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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", { input: { drop: true, topk: 300, input_text: "House", input_image: "https://replicate.delivery/pbxt/IAYwTHPRWh6LCdAZOBcO8WEuiaFuHqHdbUYfEnmf5uCt1OPL/361010.jpg", clip_version: "RN50x16" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_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 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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", input={ "drop": True, "topk": 300, "input_text": "House", "input_image": "https://replicate.delivery/pbxt/IAYwTHPRWh6LCdAZOBcO8WEuiaFuHqHdbUYfEnmf5uCt1OPL/361010.jpg", "clip_version": "RN50x16" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_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": "414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", "input": { "drop": true, "topk": 300, "input_text": "House", "input_image": "https://replicate.delivery/pbxt/IAYwTHPRWh6LCdAZOBcO8WEuiaFuHqHdbUYfEnmf5uCt1OPL/361010.jpg", "clip_version": "RN50x16" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-01-24T18:45:04.080950Z", "created_at": "2023-01-24T18:44:26.108570Z", "data_removed": false, "error": null, "id": "d5mq57ephvdxbekatccnjg7rvq", "input": { "drop": true, "topk": 300, "input_text": "House", "input_image": "https://replicate.delivery/pbxt/IAYwTHPRWh6LCdAZOBcO8WEuiaFuHqHdbUYfEnmf5uCt1OPL/361010.jpg", "clip_version": "RN50x16", "overly_output": true }, "logs": "0%| | 0/5 [00:00<?, ?it/s]\n 20%|██ | 1/5 [00:01<00:04, 1.12s/it]\n 40%|████ | 2/5 [00:02<00:03, 1.08s/it]\n 60%|██████ | 3/5 [00:03<00:02, 1.06s/it]\n 80%|████████ | 4/5 [00:04<00:01, 1.06s/it]\n100%|██████████| 5/5 [00:04<00:00, 1.09it/s]\n100%|██████████| 5/5 [00:04<00:00, 1.01it/s]", "metrics": { "predict_time": 18.804382, "total_time": 37.97238 }, "output": "https://replicate.delivery/pbxt/8aCaf9YGKTy9EqKdQmWzNrTMoOXZhwP8LbntfRzW0LivkdXQA/output.png", "started_at": "2023-01-24T18:44:45.276568Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/d5mq57ephvdxbekatccnjg7rvq", "cancel": "https://api.replicate.com/v1/predictions/d5mq57ephvdxbekatccnjg7rvq/cancel" }, "version": "8ffb602b35a3c4836758bfa8d9f6f19bb6d8870b2e1d6c2f5744e091f5ed9d37" }
Generated in0%| | 0/5 [00:00<?, ?it/s] 20%|██ | 1/5 [00:01<00:04, 1.12s/it] 40%|████ | 2/5 [00:02<00:03, 1.08s/it] 60%|██████ | 3/5 [00:03<00:02, 1.06s/it] 80%|████████ | 4/5 [00:04<00:01, 1.06s/it] 100%|██████████| 5/5 [00:04<00:00, 1.09it/s] 100%|██████████| 5/5 [00:04<00:00, 1.01it/s]
Prediction
arielreplicate/gscorecam-clip-analyzer:414953a7IDhto5wmfiijdcxiijyo5g43f2waStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "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 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client: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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", { 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" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_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 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:414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", 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" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_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": "414953a78bfd5f84c7db7ee5c3eac5cd74473698780c4fb1c1da52058b48ce31", "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" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
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" }
Generated in0%| | 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)
Want to make some of these yourself?
Run this model