nohamoamary
/
image-captioning-with-visual-attention
datasets: Flickr8k
Prediction
nohamoamary/image-captioning-with-visual-attention:9bb60a6bIDcgaoqd3givcldkkt66fypb6qtaStatusSucceededSourceWebHardware–Total durationCreatedInput
- input
- https://replicate.delivery/mgxm/67f6c036-08f1-4be3-af05-c9c48c04814b/20.jpg
{ "input": "https://replicate.delivery/mgxm/67f6c036-08f1-4be3-af05-c9c48c04814b/20.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", { input: {} } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", input={} ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run nohamoamary/image-captioning-with-visual-attention 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": "9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", "input": {} }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run nohamoamary/image-captioning-with-visual-attention using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986 \
To learn more, take a look at the Cog documentation.
Pull and run nohamoamary/image-captioning-with-visual-attention using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": {} }' \ http://localhost:5000/predictions
Output
person on bike on the road{ "completed_at": "2022-01-23T19:29:53.158202Z", "created_at": "2022-01-23T19:29:52.193231Z", "data_removed": false, "error": null, "id": "cgaoqd3givcldkkt66fypb6qta", "input": { "input": "https://replicate.delivery/mgxm/67f6c036-08f1-4be3-af05-c9c48c04814b/20.jpg" }, "logs": null, "metrics": { "predict_time": 0.807907, "total_time": 0.964971 }, "output": [ { "text": "person on bike on the road" } ], "started_at": "2022-01-23T19:29:52.350295Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/cgaoqd3givcldkkt66fypb6qta", "cancel": "https://api.replicate.com/v1/predictions/cgaoqd3givcldkkt66fypb6qta/cancel" }, "version": "508d006dfaff69aa9c997eb7d778c891f34777ad368ca4d3e9958b6e3abc2bd3" }
Generated inPrediction
nohamoamary/image-captioning-with-visual-attention:9bb60a6bInput
- input
- https://replicate.delivery/mgxm/df9413b0-90f9-403e-a61f-c2066d0a27f7/7.jpeg
{ "input": "https://replicate.delivery/mgxm/df9413b0-90f9-403e-a61f-c2066d0a27f7/7.jpeg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", { input: {} } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", input={} ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run nohamoamary/image-captioning-with-visual-attention 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": "9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", "input": {} }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run nohamoamary/image-captioning-with-visual-attention using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986 \
To learn more, take a look at the Cog documentation.
Pull and run nohamoamary/image-captioning-with-visual-attention using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": {} }' \ http://localhost:5000/predictions
Output
young girl is standing in the background{ "completed_at": "2022-01-23T19:27:52.797858Z", "created_at": "2022-01-23T19:27:51.719034Z", "data_removed": false, "error": null, "id": "dcieqxm3lffw7iffxnzl2bpaxa", "input": { "input": "https://replicate.delivery/mgxm/df9413b0-90f9-403e-a61f-c2066d0a27f7/7.jpeg" }, "logs": null, "metrics": { "predict_time": 0.859941, "total_time": 1.078824 }, "output": [ { "text": "young girl is standing in the background" } ], "started_at": "2022-01-23T19:27:51.937917Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/dcieqxm3lffw7iffxnzl2bpaxa", "cancel": "https://api.replicate.com/v1/predictions/dcieqxm3lffw7iffxnzl2bpaxa/cancel" }, "version": "508d006dfaff69aa9c997eb7d778c891f34777ad368ca4d3e9958b6e3abc2bd3" }
Generated inPrediction
nohamoamary/image-captioning-with-visual-attention:9bb60a6bIDl3jn64rmirfk3kva36tofsoadmStatusSucceededSourceWebHardware–Total durationCreatedInput
- input
- https://replicate.delivery/mgxm/f392a57e-f6a1-4948-a92e-e729eb6229cc/6.jpg
{ "input": "https://replicate.delivery/mgxm/f392a57e-f6a1-4948-a92e-e729eb6229cc/6.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", { input: {} } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", input={} ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run nohamoamary/image-captioning-with-visual-attention 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": "9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", "input": {} }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run nohamoamary/image-captioning-with-visual-attention using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986 \
To learn more, take a look at the Cog documentation.
Pull and run nohamoamary/image-captioning-with-visual-attention using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": {} }' \ http://localhost:5000/predictions
Output
young boy in water about to white water{ "completed_at": "2022-01-23T19:28:27.347067Z", "created_at": "2022-01-23T19:28:26.221335Z", "data_removed": false, "error": null, "id": "l3jn64rmirfk3kva36tofsoadm", "input": { "input": "https://replicate.delivery/mgxm/f392a57e-f6a1-4948-a92e-e729eb6229cc/6.jpg" }, "logs": null, "metrics": { "predict_time": 0.863917, "total_time": 1.125732 }, "output": [ { "text": "young boy in water about to white water" } ], "started_at": "2022-01-23T19:28:26.483150Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/l3jn64rmirfk3kva36tofsoadm", "cancel": "https://api.replicate.com/v1/predictions/l3jn64rmirfk3kva36tofsoadm/cancel" }, "version": "508d006dfaff69aa9c997eb7d778c891f34777ad368ca4d3e9958b6e3abc2bd3" }
Generated inPrediction
nohamoamary/image-captioning-with-visual-attention:9bb60a6bInput
- input
- https://replicate.delivery/mgxm/0375d10a-8374-4ef6-b9f0-d40a253b0687/18.jpeg
{ "input": "https://replicate.delivery/mgxm/0375d10a-8374-4ef6-b9f0-d40a253b0687/18.jpeg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", { input: {} } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", input={} ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run nohamoamary/image-captioning-with-visual-attention 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": "9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", "input": {} }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run nohamoamary/image-captioning-with-visual-attention using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986 \
To learn more, take a look at the Cog documentation.
Pull and run nohamoamary/image-captioning-with-visual-attention using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": {} }' \ http://localhost:5000/predictions
Output
man hikes on foggy cliff{ "completed_at": "2022-01-23T20:31:03.709606Z", "created_at": "2022-01-23T20:30:27.842247Z", "data_removed": false, "error": null, "id": "3mekk6icijf33ccccdhh45oo4a", "input": { "input": "https://replicate.delivery/mgxm/0375d10a-8374-4ef6-b9f0-d40a253b0687/18.jpeg" }, "logs": "2022-01-23 20:31:00.725074: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcudnn.so.8\n2022-01-23 20:31:01.363218: I tensorflow/stream_executor/cuda/cuda_dnn.cc:359] Loaded cuDNN version 8101\n2022-01-23 20:31:02.099783: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcublas.so.11\n2022-01-23 20:31:02.600324: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcublasLt.so.11", "metrics": { "predict_time": 2.636301, "total_time": 35.867359 }, "output": [ { "text": "man hikes on foggy cliff" } ], "started_at": "2022-01-23T20:31:01.073305Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3mekk6icijf33ccccdhh45oo4a", "cancel": "https://api.replicate.com/v1/predictions/3mekk6icijf33ccccdhh45oo4a/cancel" }, "version": "508d006dfaff69aa9c997eb7d778c891f34777ad368ca4d3e9958b6e3abc2bd3" }
Generated in2022-01-23 20:31:00.725074: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcudnn.so.8 2022-01-23 20:31:01.363218: I tensorflow/stream_executor/cuda/cuda_dnn.cc:359] Loaded cuDNN version 8101 2022-01-23 20:31:02.099783: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcublas.so.11 2022-01-23 20:31:02.600324: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcublasLt.so.11
Prediction
nohamoamary/image-captioning-with-visual-attention:9bb60a6bIDyifehicmmnfwxlubc5br256upmStatusSucceededSourceWebHardware–Total durationCreatedInput
- input
- https://replicate.delivery/mgxm/63038835-a2ad-4905-89f0-9b250729f5dd/55.jpeg
{ "input": "https://replicate.delivery/mgxm/63038835-a2ad-4905-89f0-9b250729f5dd/55.jpeg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", { input: {} } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", input={} ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run nohamoamary/image-captioning-with-visual-attention 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": "9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", "input": {} }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run nohamoamary/image-captioning-with-visual-attention using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986 \
To learn more, take a look at the Cog documentation.
Pull and run nohamoamary/image-captioning-with-visual-attention using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": {} }' \ http://localhost:5000/predictions
Output
brown and white dog is running across grass{ "completed_at": "2022-01-23T20:38:14.306162Z", "created_at": "2022-01-23T20:38:12.966805Z", "data_removed": false, "error": null, "id": "yifehicmmnfwxlubc5br256upm", "input": { "input": "https://replicate.delivery/mgxm/63038835-a2ad-4905-89f0-9b250729f5dd/55.jpeg" }, "logs": null, "metrics": { "predict_time": 1.163817, "total_time": 1.339357 }, "output": [ { "text": "brown and white dog is running across grass" } ], "started_at": "2022-01-23T20:38:13.142345Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/yifehicmmnfwxlubc5br256upm", "cancel": "https://api.replicate.com/v1/predictions/yifehicmmnfwxlubc5br256upm/cancel" }, "version": "508d006dfaff69aa9c997eb7d778c891f34777ad368ca4d3e9958b6e3abc2bd3" }
Generated inPrediction
nohamoamary/image-captioning-with-visual-attention:9bb60a6bIDy3k6d6skendg5otia6i3dm3o7mStatusSucceededSourceWebHardware–Total durationCreatedInput
- input
- https://replicate.delivery/mgxm/076c3760-9156-4caa-93d6-8c7939becd7d/3.jpeg
{ "input": "https://replicate.delivery/mgxm/076c3760-9156-4caa-93d6-8c7939becd7d/3.jpeg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", { input: {} } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", input={} ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run nohamoamary/image-captioning-with-visual-attention 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": "9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", "input": {} }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run nohamoamary/image-captioning-with-visual-attention using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986 \
To learn more, take a look at the Cog documentation.
Pull and run nohamoamary/image-captioning-with-visual-attention using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": {} }' \ http://localhost:5000/predictions
Output
man in glasses holds and take picture{ "completed_at": "2022-01-23T19:29:08.871955Z", "created_at": "2022-01-23T19:29:07.360996Z", "data_removed": false, "error": null, "id": "y3k6d6skendg5otia6i3dm3o7m", "input": { "input": "https://replicate.delivery/mgxm/076c3760-9156-4caa-93d6-8c7939becd7d/3.jpeg" }, "logs": null, "metrics": { "predict_time": 1.331229, "total_time": 1.510959 }, "output": [ { "text": "man in glasses holds and take picture" } ], "started_at": "2022-01-23T19:29:07.540726Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/y3k6d6skendg5otia6i3dm3o7m", "cancel": "https://api.replicate.com/v1/predictions/y3k6d6skendg5otia6i3dm3o7m/cancel" }, "version": "508d006dfaff69aa9c997eb7d778c891f34777ad368ca4d3e9958b6e3abc2bd3" }
Generated inPrediction
nohamoamary/image-captioning-with-visual-attention:9bb60a6bIDcabt2vp7o5fdzis2rqs5xphcoiStatusSucceededSourceWebHardware–Total durationCreatedInput
- input
- https://replicate.delivery/mgxm/2cdb29f3-8986-4539-b065-41c23ba25636/333.jpg
{ "input": "https://replicate.delivery/mgxm/2cdb29f3-8986-4539-b065-41c23ba25636/333.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", { input: {} } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", input={} ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run nohamoamary/image-captioning-with-visual-attention 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": "9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", "input": {} }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run nohamoamary/image-captioning-with-visual-attention using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986 \
To learn more, take a look at the Cog documentation.
Pull and run nohamoamary/image-captioning-with-visual-attention using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": {} }' \ http://localhost:5000/predictions
Output
tan dog is running through field{ "completed_at": "2022-01-23T20:39:00.273295Z", "created_at": "2022-01-23T20:38:59.165060Z", "data_removed": false, "error": null, "id": "cabt2vp7o5fdzis2rqs5xphcoi", "input": { "input": "https://replicate.delivery/mgxm/2cdb29f3-8986-4539-b065-41c23ba25636/333.jpg" }, "logs": null, "metrics": { "predict_time": 0.89354, "total_time": 1.108235 }, "output": [ { "text": "tan dog is running through field" } ], "started_at": "2022-01-23T20:38:59.379755Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/cabt2vp7o5fdzis2rqs5xphcoi", "cancel": "https://api.replicate.com/v1/predictions/cabt2vp7o5fdzis2rqs5xphcoi/cancel" }, "version": "508d006dfaff69aa9c997eb7d778c891f34777ad368ca4d3e9958b6e3abc2bd3" }
Generated inPrediction
nohamoamary/image-captioning-with-visual-attention:9bb60a6bIDqktgkyherfbjjjwojawxd6cdpqStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/Ijrm6a7lyXfMLXwPLafBBdOfxnE5VpNeVOlbbDSv8tPsp8Ig/2023-mclaren-artura-101-1655218102.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", { input: { image: "https://replicate.delivery/pbxt/Ijrm6a7lyXfMLXwPLafBBdOfxnE5VpNeVOlbbDSv8tPsp8Ig/2023-mclaren-artura-101-1655218102.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run nohamoamary/image-captioning-with-visual-attention using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nohamoamary/image-captioning-with-visual-attention:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", input={ "image": "https://replicate.delivery/pbxt/Ijrm6a7lyXfMLXwPLafBBdOfxnE5VpNeVOlbbDSv8tPsp8Ig/2023-mclaren-artura-101-1655218102.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run nohamoamary/image-captioning-with-visual-attention 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": "9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986", "input": { "image": "https://replicate.delivery/pbxt/Ijrm6a7lyXfMLXwPLafBBdOfxnE5VpNeVOlbbDSv8tPsp8Ig/2023-mclaren-artura-101-1655218102.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run nohamoamary/image-captioning-with-visual-attention using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986 \ -i 'image="https://replicate.delivery/pbxt/Ijrm6a7lyXfMLXwPLafBBdOfxnE5VpNeVOlbbDSv8tPsp8Ig/2023-mclaren-artura-101-1655218102.jpg"'
To learn more, take a look at the Cog documentation.
Pull and run nohamoamary/image-captioning-with-visual-attention using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/nohamoamary/image-captioning-with-visual-attention@sha256:9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/Ijrm6a7lyXfMLXwPLafBBdOfxnE5VpNeVOlbbDSv8tPsp8Ig/2023-mclaren-artura-101-1655218102.jpg" } }' \ http://localhost:5000/predictions
Output
blue car driving over bend in the background{ "completed_at": "2023-04-29T23:20:01.249952Z", "created_at": "2023-04-29T23:20:00.606246Z", "data_removed": false, "error": null, "id": "qktgkyherfbjjjwojawxd6cdpq", "input": { "image": "https://replicate.delivery/pbxt/Ijrm6a7lyXfMLXwPLafBBdOfxnE5VpNeVOlbbDSv8tPsp8Ig/2023-mclaren-artura-101-1655218102.jpg" }, "logs": null, "metrics": { "predict_time": 0.529245, "total_time": 0.643706 }, "output": "blue car driving over bend in the background", "started_at": "2023-04-29T23:20:00.720707Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/qktgkyherfbjjjwojawxd6cdpq", "cancel": "https://api.replicate.com/v1/predictions/qktgkyherfbjjjwojawxd6cdpq/cancel" }, "version": "9bb60a6baa58801aa7cd4c4fafc95fcf1531bf59b84962aff5a718f4d1f58986" }
Generated in
Want to make some of these yourself?
Run this model