Run yuni-eng/image-to-color using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"yuni-eng/image-to-color:517ab164521b1a5b14967b8d1bd858ff6906460cb1036d57e17c20f02feeb64c",
input={
"image": "https://replicate.delivery/pbxt/JzbRKplmngtoIQbvTPjjXCr78EAHHTSJL0e8EKkfvvdpjNwB/future%20WFH.png",
"question": "Analyze the image and talk about the objects"
}
)
print(output)
the man is sitting on the couch watching a football game on tv
Dominant colors in the image:
#a9aa85
#501f09
#1d0908
#4b3c2c
#c27934
#834716
#7c6b49
#577e97
#efebd1
#f1b462
{
"completed_at": "2023-12-04T23:24:37.739811Z",
"created_at": "2023-12-04T23:24:28.872511Z",
"data_removed": false,
"error": null,
"id": "umqink3bpf3xt2eh7cdcc3aiwe",
"input": {
"image": "https://replicate.delivery/pbxt/JzbRKplmngtoIQbvTPjjXCr78EAHHTSJL0e8EKkfvvdpjNwB/future%20WFH.png",
"question": "Analyze the image and talk about the objects"
},
"logs": null,
"metrics": {
"predict_time": 8.855841,
"total_time": 8.8673
},
"output": "the man is sitting on the couch watching a football game on tv\n\nDominant colors in the image:\n#a9aa85\n#501f09\n#1d0908\n#4b3c2c\n#c27934\n#834716\n#7c6b49\n#577e97\n#efebd1\n#f1b462",
"started_at": "2023-12-04T23:24:28.883970Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/umqink3bpf3xt2eh7cdcc3aiwe",
"cancel": "https://api.replicate.com/v1/predictions/umqink3bpf3xt2eh7cdcc3aiwe/cancel"
},
"version": "517ab164521b1a5b14967b8d1bd858ff6906460cb1036d57e17c20f02feeb64c"
}