javirk / object-removal-partial-convolutions
Removes specified objects from image
- Public
- 899 runs
- GitHub
Prediction
javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479IDl2funoaeondrlcrl4algnwqah4StatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image_path": "https://replicate.delivery/mgxm/521ce1af-1bcf-457e-af4f-683461a76790/Screen_Shot_2022-05-24_at_10.29.55_PM.png", "objects_to_remove": "person" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run javirk/object-removal-partial-convolutions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", { input: { image_path: "https://replicate.delivery/mgxm/521ce1af-1bcf-457e-af4f-683461a76790/Screen_Shot_2022-05-24_at_10.29.55_PM.png", objects_to_remove: "person" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run javirk/object-removal-partial-convolutions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", input={ "image_path": "https://replicate.delivery/mgxm/521ce1af-1bcf-457e-af4f-683461a76790/Screen_Shot_2022-05-24_at_10.29.55_PM.png", "objects_to_remove": "person" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run javirk/object-removal-partial-convolutions 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": "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", "input": { "image_path": "https://replicate.delivery/mgxm/521ce1af-1bcf-457e-af4f-683461a76790/Screen_Shot_2022-05-24_at_10.29.55_PM.png", "objects_to_remove": "person" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-05-25T05:32:26.626006Z", "created_at": "2022-05-25T05:30:11.081992Z", "data_removed": false, "error": null, "id": "l2funoaeondrlcrl4algnwqah4", "input": { "image_path": "https://replicate.delivery/mgxm/521ce1af-1bcf-457e-af4f-683461a76790/Screen_Shot_2022-05-24_at_10.29.55_PM.png", "objects_to_remove": "person" }, "logs": "Deeplab model. person will be extracted\nDownloading: \"https://download.pytorch.org/models/resnet101-5d3b4d8f.pth\" to /root/.cache/torch/hub/checkpoints/resnet101-5d3b4d8f.pth\n\n 0%| | 0.00/170M [00:00<?, ?B/s]\n 3%|▎ | 5.90M/170M [00:00<00:02, 61.8MB/s]\n 17%|█▋ | 28.7M/170M [00:00<00:00, 166MB/s]\n 31%|███ | 52.2M/170M [00:00<00:00, 202MB/s]\n 44%|████▍ | 74.9M/170M [00:00<00:00, 217MB/s]\n 57%|█████▋ | 97.3M/170M [00:00<00:00, 223MB/s]\n 70%|███████ | 120M/170M [00:00<00:00, 227MB/s]\n 83%|████████▎ | 142M/170M [00:00<00:00, 229MB/s]\n 97%|█████████▋| 165M/170M [00:00<00:00, 232MB/s]\n100%|██████████| 170M/170M [00:00<00:00, 217MB/s]\nDownloading: \"https://download.pytorch.org/models/deeplabv3_resnet101_coco-586e9e4e.pth\" to /root/.cache/torch/hub/checkpoints/deeplabv3_resnet101_coco-586e9e4e.pth\n\n 0%| | 0.00/233M [00:00<?, ?B/s]\n 4%|▍ | 9.75M/233M [00:00<00:02, 102MB/s]\n 15%|█▍ | 34.6M/233M [00:00<00:01, 196MB/s]\n 25%|██▌ | 58.7M/233M [00:00<00:00, 221MB/s]\n 36%|███▌ | 83.4M/233M [00:00<00:00, 236MB/s]\n 46%|████▌ | 108M/233M [00:00<00:00, 243MB/s]\n 57%|█████▋ | 132M/233M [00:00<00:00, 247MB/s]\n 68%|██████▊ | 158M/233M [00:00<00:00, 254MB/s]\n 78%|███████▊ | 183M/233M [00:00<00:00, 257MB/s]\n 89%|████████▉ | 208M/233M [00:00<00:00, 259MB/s]\n100%|█████████▉| 233M/233M [00:01<00:00, 258MB/s]\n100%|██████████| 233M/233M [00:01<00:00, 243MB/s]\n/tmp/tmp7vyh71ey/output.png", "metrics": { "predict_time": 10.555685, "total_time": 135.544014 }, "output": "https://replicate.delivery/mgxm/6d30399c-35ce-4d2f-b3ad-bc9873751dfb/output.png", "started_at": "2022-05-25T05:32:16.070321Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/l2funoaeondrlcrl4algnwqah4", "cancel": "https://api.replicate.com/v1/predictions/l2funoaeondrlcrl4algnwqah4/cancel" }, "version": "f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479" }
Generated inDeeplab model. person will be extracted Downloading: "https://download.pytorch.org/models/resnet101-5d3b4d8f.pth" to /root/.cache/torch/hub/checkpoints/resnet101-5d3b4d8f.pth 0%| | 0.00/170M [00:00<?, ?B/s] 3%|▎ | 5.90M/170M [00:00<00:02, 61.8MB/s] 17%|█▋ | 28.7M/170M [00:00<00:00, 166MB/s] 31%|███ | 52.2M/170M [00:00<00:00, 202MB/s] 44%|████▍ | 74.9M/170M [00:00<00:00, 217MB/s] 57%|█████▋ | 97.3M/170M [00:00<00:00, 223MB/s] 70%|███████ | 120M/170M [00:00<00:00, 227MB/s] 83%|████████▎ | 142M/170M [00:00<00:00, 229MB/s] 97%|█████████▋| 165M/170M [00:00<00:00, 232MB/s] 100%|██████████| 170M/170M [00:00<00:00, 217MB/s] Downloading: "https://download.pytorch.org/models/deeplabv3_resnet101_coco-586e9e4e.pth" to /root/.cache/torch/hub/checkpoints/deeplabv3_resnet101_coco-586e9e4e.pth 0%| | 0.00/233M [00:00<?, ?B/s] 4%|▍ | 9.75M/233M [00:00<00:02, 102MB/s] 15%|█▍ | 34.6M/233M [00:00<00:01, 196MB/s] 25%|██▌ | 58.7M/233M [00:00<00:00, 221MB/s] 36%|███▌ | 83.4M/233M [00:00<00:00, 236MB/s] 46%|████▌ | 108M/233M [00:00<00:00, 243MB/s] 57%|█████▋ | 132M/233M [00:00<00:00, 247MB/s] 68%|██████▊ | 158M/233M [00:00<00:00, 254MB/s] 78%|███████▊ | 183M/233M [00:00<00:00, 257MB/s] 89%|████████▉ | 208M/233M [00:00<00:00, 259MB/s] 100%|█████████▉| 233M/233M [00:01<00:00, 258MB/s] 100%|██████████| 233M/233M [00:01<00:00, 243MB/s] /tmp/tmp7vyh71ey/output.png
Prediction
javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479IDo6i4lby7hbacbco2umneicfwveStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image_path": "https://replicate.delivery/mgxm/503d43bf-0e1a-4035-848f-601c2a698588/Screen_Shot_2022-05-24_at_10.32.37_PM.png", "objects_to_remove": "person" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run javirk/object-removal-partial-convolutions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", { input: { image_path: "https://replicate.delivery/mgxm/503d43bf-0e1a-4035-848f-601c2a698588/Screen_Shot_2022-05-24_at_10.32.37_PM.png", objects_to_remove: "person" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run javirk/object-removal-partial-convolutions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", input={ "image_path": "https://replicate.delivery/mgxm/503d43bf-0e1a-4035-848f-601c2a698588/Screen_Shot_2022-05-24_at_10.32.37_PM.png", "objects_to_remove": "person" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run javirk/object-removal-partial-convolutions 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": "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", "input": { "image_path": "https://replicate.delivery/mgxm/503d43bf-0e1a-4035-848f-601c2a698588/Screen_Shot_2022-05-24_at_10.32.37_PM.png", "objects_to_remove": "person" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-05-25T05:34:28.538611Z", "created_at": "2022-05-25T05:34:23.461993Z", "data_removed": false, "error": null, "id": "o6i4lby7hbacbco2umneicfwve", "input": { "image_path": "https://replicate.delivery/mgxm/503d43bf-0e1a-4035-848f-601c2a698588/Screen_Shot_2022-05-24_at_10.32.37_PM.png", "objects_to_remove": "person" }, "logs": "Deeplab model. person will be extracted\n/tmp/tmpi9kee0fg/output.png", "metrics": { "predict_time": 4.976502, "total_time": 5.076618 }, "output": "https://replicate.delivery/mgxm/ff659160-49e9-46c4-838b-18f835df9e79/output.png", "started_at": "2022-05-25T05:34:23.562109Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/o6i4lby7hbacbco2umneicfwve", "cancel": "https://api.replicate.com/v1/predictions/o6i4lby7hbacbco2umneicfwve/cancel" }, "version": "f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479" }
Prediction
javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479IDs2tlik2qwncifoqqck7clujfrqStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image_path": "https://replicate.delivery/mgxm/e96bee1b-e8f8-4ba5-beae-702a8a2f1834/Screen_Shot_2022-05-24_at_10.32.52_PM.png", "objects_to_remove": "person" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run javirk/object-removal-partial-convolutions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", { input: { image_path: "https://replicate.delivery/mgxm/e96bee1b-e8f8-4ba5-beae-702a8a2f1834/Screen_Shot_2022-05-24_at_10.32.52_PM.png", objects_to_remove: "person" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run javirk/object-removal-partial-convolutions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", input={ "image_path": "https://replicate.delivery/mgxm/e96bee1b-e8f8-4ba5-beae-702a8a2f1834/Screen_Shot_2022-05-24_at_10.32.52_PM.png", "objects_to_remove": "person" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run javirk/object-removal-partial-convolutions 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": "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", "input": { "image_path": "https://replicate.delivery/mgxm/e96bee1b-e8f8-4ba5-beae-702a8a2f1834/Screen_Shot_2022-05-24_at_10.32.52_PM.png", "objects_to_remove": "person" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-05-25T05:34:50.067498Z", "created_at": "2022-05-25T05:34:44.955395Z", "data_removed": false, "error": null, "id": "s2tlik2qwncifoqqck7clujfrq", "input": { "image_path": "https://replicate.delivery/mgxm/e96bee1b-e8f8-4ba5-beae-702a8a2f1834/Screen_Shot_2022-05-24_at_10.32.52_PM.png", "objects_to_remove": "person" }, "logs": "Deeplab model. person will be extracted\n/tmp/tmpt4g8p71e/output.png", "metrics": { "predict_time": 4.991556, "total_time": 5.112103 }, "output": "https://replicate.delivery/mgxm/f521a3cf-3222-426c-9026-efee8413219b/output.png", "started_at": "2022-05-25T05:34:45.075942Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/s2tlik2qwncifoqqck7clujfrq", "cancel": "https://api.replicate.com/v1/predictions/s2tlik2qwncifoqqck7clujfrq/cancel" }, "version": "f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479" }
Prediction
javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479IDahl5ztpokfhqxmahfuk4mlclnaStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image_path": "https://replicate.delivery/mgxm/0ada007f-489f-47e5-8acb-2befbd55ad62/cats.jpeg", "objects_to_remove": "cat" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run javirk/object-removal-partial-convolutions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", { input: { image_path: "https://replicate.delivery/mgxm/0ada007f-489f-47e5-8acb-2befbd55ad62/cats.jpeg", objects_to_remove: "cat" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run javirk/object-removal-partial-convolutions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", input={ "image_path": "https://replicate.delivery/mgxm/0ada007f-489f-47e5-8acb-2befbd55ad62/cats.jpeg", "objects_to_remove": "cat" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run javirk/object-removal-partial-convolutions 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": "javirk/object-removal-partial-convolutions:f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479", "input": { "image_path": "https://replicate.delivery/mgxm/0ada007f-489f-47e5-8acb-2befbd55ad62/cats.jpeg", "objects_to_remove": "cat" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-05-25T05:36:54.128111Z", "created_at": "2022-05-25T05:36:49.568078Z", "data_removed": false, "error": null, "id": "ahl5ztpokfhqxmahfuk4mlclna", "input": { "image_path": "https://replicate.delivery/mgxm/0ada007f-489f-47e5-8acb-2befbd55ad62/cats.jpeg", "objects_to_remove": "cat" }, "logs": "Deeplab model. cat will be extracted\n/tmp/tmp1c0s34pb/output.png", "metrics": { "predict_time": 4.370032, "total_time": 4.560033 }, "output": "https://replicate.delivery/mgxm/36d59765-003f-4e25-a94d-adb25fa32054/output.png", "started_at": "2022-05-25T05:36:49.758079Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ahl5ztpokfhqxmahfuk4mlclna", "cancel": "https://api.replicate.com/v1/predictions/ahl5ztpokfhqxmahfuk4mlclna/cancel" }, "version": "f3dfa2900b41dd1e866552df4e543278251f8f7ccb5122b9504ac33315a17479" }
Want to make some of these yourself?
Run this model