catacolabs
/
dis-background-removal
ECCV2022 Quick background removal
- Public
- 42 runs
-
T4
- GitHub
Prediction
catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0fIDhb89tc5kaxrga0cn4388basn2mStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MWrtyNH9X881mW2FJW1SJhSnRwafJjUfr2mKTbEfXoK8kDbT/dino.png" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", { input: { image: "https://replicate.delivery/pbxt/MWrtyNH9X881mW2FJW1SJhSnRwafJjUfr2mKTbEfXoK8kDbT/dino.png" } } ); // 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 catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", input={ "image": "https://replicate.delivery/pbxt/MWrtyNH9X881mW2FJW1SJhSnRwafJjUfr2mKTbEfXoK8kDbT/dino.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run catacolabs/dis-background-removal 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": "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", "input": { "image": "https://replicate.delivery/pbxt/MWrtyNH9X881mW2FJW1SJhSnRwafJjUfr2mKTbEfXoK8kDbT/dino.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-20T00:45:03.907296Z", "created_at": "2025-02-20T00:45:03.191000Z", "data_removed": false, "error": null, "id": "hb89tc5kaxrga0cn4388basn2m", "input": { "image": "https://replicate.delivery/pbxt/MWrtyNH9X881mW2FJW1SJhSnRwafJjUfr2mKTbEfXoK8kDbT/dino.png" }, "logs": "Image reading time: 0.025s\nPreprocessing time: 0.007s\nOriginal image shape: (768, 768), Preprocessed shape: torch.Size([3, 1024, 1024])\nTensor conversion time: 0.004s\nTransform time: 0.002s\nTotal image loading pipeline time: 0.059s\nTransfer to device time: 0.003s\nModel inference time: 0.010s\nUpsampling time: 0.000s\nFinal processing and transfer back to CPU time: 0.123s\nTotal prediction time: 0.136s\nFinal image processing and saving time: 0.344s\nTotal processing time: 0.539s", "metrics": { "predict_time": 0.702913785, "total_time": 0.716296 }, "output": "https://replicate.delivery/czjl/BQXIIRKCzdrZEtKlCqhxQLNr5JEcOvfi77cm7wnl8uhHahIKA/output.png", "started_at": "2025-02-20T00:45:03.204382Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-mx5hqsns5hdexpgctkjmy6yves3dzrladmfmtkhf76oukmw75cyq", "get": "https://api.replicate.com/v1/predictions/hb89tc5kaxrga0cn4388basn2m", "cancel": "https://api.replicate.com/v1/predictions/hb89tc5kaxrga0cn4388basn2m/cancel" }, "version": "9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f" }
Generated inImage reading time: 0.025s Preprocessing time: 0.007s Original image shape: (768, 768), Preprocessed shape: torch.Size([3, 1024, 1024]) Tensor conversion time: 0.004s Transform time: 0.002s Total image loading pipeline time: 0.059s Transfer to device time: 0.003s Model inference time: 0.010s Upsampling time: 0.000s Final processing and transfer back to CPU time: 0.123s Total prediction time: 0.136s Final image processing and saving time: 0.344s Total processing time: 0.539s
Prediction
catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0fIDn8y9qp6az9rga0cn438bbg3f84StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MWru4R7aL8QAnTKHa5359B1qx87a3rMZoRVHaUWpj0Nja6UN/football.png" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", { input: { image: "https://replicate.delivery/pbxt/MWru4R7aL8QAnTKHa5359B1qx87a3rMZoRVHaUWpj0Nja6UN/football.png" } } ); // 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 catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", input={ "image": "https://replicate.delivery/pbxt/MWru4R7aL8QAnTKHa5359B1qx87a3rMZoRVHaUWpj0Nja6UN/football.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run catacolabs/dis-background-removal 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": "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", "input": { "image": "https://replicate.delivery/pbxt/MWru4R7aL8QAnTKHa5359B1qx87a3rMZoRVHaUWpj0Nja6UN/football.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-20T00:45:09.871863Z", "created_at": "2025-02-20T00:45:09.242000Z", "data_removed": false, "error": null, "id": "n8y9qp6az9rga0cn438bbg3f84", "input": { "image": "https://replicate.delivery/pbxt/MWru4R7aL8QAnTKHa5359B1qx87a3rMZoRVHaUWpj0Nja6UN/football.png" }, "logs": "Image reading time: 0.019s\nPreprocessing time: 0.006s\nOriginal image shape: (768, 768), Preprocessed shape: torch.Size([3, 1024, 1024])\nTensor conversion time: 0.003s\nTransform time: 0.002s\nTotal image loading pipeline time: 0.049s\nTransfer to device time: 0.003s\nModel inference time: 0.007s\nUpsampling time: 0.000s\nFinal processing and transfer back to CPU time: 0.129s\nTotal prediction time: 0.139s\nFinal image processing and saving time: 0.238s\nTotal processing time: 0.426s", "metrics": { "predict_time": 0.61696982, "total_time": 0.629863 }, "output": "https://replicate.delivery/czjl/lT0nZmlUYpanPVdKewFKpkwbk6Lw7H5efBTedz3D5aiVRLERB/output.png", "started_at": "2025-02-20T00:45:09.254894Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-xxngpdorav7srg7nxiyfsbib2se36h5hmyqocefr4almugovsy5a", "get": "https://api.replicate.com/v1/predictions/n8y9qp6az9rga0cn438bbg3f84", "cancel": "https://api.replicate.com/v1/predictions/n8y9qp6az9rga0cn438bbg3f84/cancel" }, "version": "9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f" }
Generated inImage reading time: 0.019s Preprocessing time: 0.006s Original image shape: (768, 768), Preprocessed shape: torch.Size([3, 1024, 1024]) Tensor conversion time: 0.003s Transform time: 0.002s Total image loading pipeline time: 0.049s Transfer to device time: 0.003s Model inference time: 0.007s Upsampling time: 0.000s Final processing and transfer back to CPU time: 0.129s Total prediction time: 0.139s Final image processing and saving time: 0.238s Total processing time: 0.426s
Prediction
catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0fIDazsj79qqzsrgc0cn438a1acfz8StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MWruFtQDKdPw18FWrALpHmvoT1CJW6s7ziBC0H6YUEW1AuO4/upm36si3myg2fmyhwkxx6c8n986g.png" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", { input: { image: "https://replicate.delivery/pbxt/MWruFtQDKdPw18FWrALpHmvoT1CJW6s7ziBC0H6YUEW1AuO4/upm36si3myg2fmyhwkxx6c8n986g.png" } } ); // 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 catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", input={ "image": "https://replicate.delivery/pbxt/MWruFtQDKdPw18FWrALpHmvoT1CJW6s7ziBC0H6YUEW1AuO4/upm36si3myg2fmyhwkxx6c8n986g.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run catacolabs/dis-background-removal 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": "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", "input": { "image": "https://replicate.delivery/pbxt/MWruFtQDKdPw18FWrALpHmvoT1CJW6s7ziBC0H6YUEW1AuO4/upm36si3myg2fmyhwkxx6c8n986g.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-20T00:45:21.442008Z", "created_at": "2025-02-20T00:45:20.766000Z", "data_removed": false, "error": null, "id": "azsj79qqzsrgc0cn438a1acfz8", "input": { "image": "https://replicate.delivery/pbxt/MWruFtQDKdPw18FWrALpHmvoT1CJW6s7ziBC0H6YUEW1AuO4/upm36si3myg2fmyhwkxx6c8n986g.png" }, "logs": "Image reading time: 0.026s\nPreprocessing time: 0.007s\nOriginal image shape: (768, 768), Preprocessed shape: torch.Size([3, 1024, 1024])\nTensor conversion time: 0.004s\nTransform time: 0.002s\nTotal image loading pipeline time: 0.064s\nTransfer to device time: 0.003s\nModel inference time: 0.011s\nUpsampling time: 0.001s\nFinal processing and transfer back to CPU time: 0.122s\nTotal prediction time: 0.137s\nFinal image processing and saving time: 0.254s\nTotal processing time: 0.455s", "metrics": { "predict_time": 0.65870071, "total_time": 0.676008 }, "output": "https://replicate.delivery/czjl/Bbz6unfdxP0IXa14KKifO2SHWU3ewSlSQ3HPldcNHKcDpFioA/output.png", "started_at": "2025-02-20T00:45:20.783307Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-dft3y2l3dg6733np3epa32rdjjxbbxkyewr3jjnybebj3gs3d3qa", "get": "https://api.replicate.com/v1/predictions/azsj79qqzsrgc0cn438a1acfz8", "cancel": "https://api.replicate.com/v1/predictions/azsj79qqzsrgc0cn438a1acfz8/cancel" }, "version": "9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f" }
Generated inImage reading time: 0.026s Preprocessing time: 0.007s Original image shape: (768, 768), Preprocessed shape: torch.Size([3, 1024, 1024]) Tensor conversion time: 0.004s Transform time: 0.002s Total image loading pipeline time: 0.064s Transfer to device time: 0.003s Model inference time: 0.011s Upsampling time: 0.001s Final processing and transfer back to CPU time: 0.122s Total prediction time: 0.137s Final image processing and saving time: 0.254s Total processing time: 0.455s
Prediction
catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0fID23ep4d9891rg80cn438v5sxydcStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MWruRlLNKQNP8sOwILB6cIXwUvKGVhByxawPs0CcObQ4fKyu/replicate-prediction-f9tqpc8djxrm80cmyvb9x5e194.webp" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", { input: { image: "https://replicate.delivery/pbxt/MWruRlLNKQNP8sOwILB6cIXwUvKGVhByxawPs0CcObQ4fKyu/replicate-prediction-f9tqpc8djxrm80cmyvb9x5e194.webp" } } ); // 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 catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", input={ "image": "https://replicate.delivery/pbxt/MWruRlLNKQNP8sOwILB6cIXwUvKGVhByxawPs0CcObQ4fKyu/replicate-prediction-f9tqpc8djxrm80cmyvb9x5e194.webp" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run catacolabs/dis-background-removal 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": "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", "input": { "image": "https://replicate.delivery/pbxt/MWruRlLNKQNP8sOwILB6cIXwUvKGVhByxawPs0CcObQ4fKyu/replicate-prediction-f9tqpc8djxrm80cmyvb9x5e194.webp" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-20T00:45:33.574510Z", "created_at": "2025-02-20T00:45:33.128000Z", "data_removed": false, "error": null, "id": "23ep4d9891rg80cn438v5sxydc", "input": { "image": "https://replicate.delivery/pbxt/MWruRlLNKQNP8sOwILB6cIXwUvKGVhByxawPs0CcObQ4fKyu/replicate-prediction-f9tqpc8djxrm80cmyvb9x5e194.webp" }, "logs": "Image reading time: 0.018s\nPreprocessing time: 0.006s\nOriginal image shape: (1024, 1024), Preprocessed shape: torch.Size([3, 1024, 1024])\nTensor conversion time: 0.001s\nTransform time: 0.001s\nTotal image loading pipeline time: 0.040s\nTransfer to device time: 0.003s\nModel inference time: 0.014s\nUpsampling time: 0.000s\nFinal processing and transfer back to CPU time: 0.123s\nTotal prediction time: 0.141s\nFinal image processing and saving time: 0.105s\nTotal processing time: 0.285s", "metrics": { "predict_time": 0.432513559, "total_time": 0.44651 }, "output": "https://replicate.delivery/czjl/zi7TBUgGYD6eISWxTEnkfPZkAk7c70ewantcZXffGHeWLtQEF/output.png", "started_at": "2025-02-20T00:45:33.141997Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-yhsbcqpf3x3nxerhsawo7tsm3q6ytr66sxvvazcce5r7aldsyskq", "get": "https://api.replicate.com/v1/predictions/23ep4d9891rg80cn438v5sxydc", "cancel": "https://api.replicate.com/v1/predictions/23ep4d9891rg80cn438v5sxydc/cancel" }, "version": "9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f" }
Generated inImage reading time: 0.018s Preprocessing time: 0.006s Original image shape: (1024, 1024), Preprocessed shape: torch.Size([3, 1024, 1024]) Tensor conversion time: 0.001s Transform time: 0.001s Total image loading pipeline time: 0.040s Transfer to device time: 0.003s Model inference time: 0.014s Upsampling time: 0.000s Final processing and transfer back to CPU time: 0.123s Total prediction time: 0.141s Final image processing and saving time: 0.105s Total processing time: 0.285s
Prediction
catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0fID6v6r7sn64xrgc0cn43fa2c2h5cStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MWs8QifbDVCi7Mz7oDfrnElCo2Pd7I1ihAnxEtLE7uKseQ1v/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", { input: { image: "https://replicate.delivery/pbxt/MWs8QifbDVCi7Mz7oDfrnElCo2Pd7I1ihAnxEtLE7uKseQ1v/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" } } ); // 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 catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", input={ "image": "https://replicate.delivery/pbxt/MWs8QifbDVCi7Mz7oDfrnElCo2Pd7I1ihAnxEtLE7uKseQ1v/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run catacolabs/dis-background-removal 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": "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", "input": { "image": "https://replicate.delivery/pbxt/MWs8QifbDVCi7Mz7oDfrnElCo2Pd7I1ihAnxEtLE7uKseQ1v/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-20T01:00:17.982902Z", "created_at": "2025-02-20T01:00:17.319000Z", "data_removed": false, "error": null, "id": "6v6r7sn64xrgc0cn43fa2c2h5c", "input": { "image": "https://replicate.delivery/pbxt/MWs8QifbDVCi7Mz7oDfrnElCo2Pd7I1ihAnxEtLE7uKseQ1v/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" }, "logs": "Image reading time: 0.021s\nPreprocessing time: 0.006s\nOriginal image shape: (1024, 1024), Preprocessed shape: torch.Size([3, 1024, 1024])\nTensor conversion time: 0.001s\nTransform time: 0.002s\nTotal image loading pipeline time: 0.048s\nTransfer to device time: 0.003s\nModel inference time: 0.008s\nUpsampling time: 0.000s\nFinal processing and transfer back to CPU time: 0.129s\nTotal prediction time: 0.140s\nFinal image processing and saving time: 0.272s\nTotal processing time: 0.461s", "metrics": { "predict_time": 0.639663481, "total_time": 0.663902 }, "output": "https://replicate.delivery/czjl/RADQe1UNELxnRqzXXbnYwAp8O9XFDdfMe2xeeMkd8RYOUYIiC/output.png", "started_at": "2025-02-20T01:00:17.343238Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-5xp2aybfeghbfwjptagwdf35gxzrutak4ubdbtjigy4cqnvbttfa", "get": "https://api.replicate.com/v1/predictions/6v6r7sn64xrgc0cn43fa2c2h5c", "cancel": "https://api.replicate.com/v1/predictions/6v6r7sn64xrgc0cn43fa2c2h5c/cancel" }, "version": "9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f" }
Generated inImage reading time: 0.021s Preprocessing time: 0.006s Original image shape: (1024, 1024), Preprocessed shape: torch.Size([3, 1024, 1024]) Tensor conversion time: 0.001s Transform time: 0.002s Total image loading pipeline time: 0.048s Transfer to device time: 0.003s Model inference time: 0.008s Upsampling time: 0.000s Final processing and transfer back to CPU time: 0.129s Total prediction time: 0.140s Final image processing and saving time: 0.272s Total processing time: 0.461s
Prediction
catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0fIDebtr3r81edrg80cn43fs414tw0StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MWs8msue7Il6FdB7dSq7j22SH6uauThPQnM14QB4hJAgMjw1/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc%20%282%29.webp" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", { input: { image: "https://replicate.delivery/pbxt/MWs8msue7Il6FdB7dSq7j22SH6uauThPQnM14QB4hJAgMjw1/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc%20%282%29.webp" } } ); // 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 catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", input={ "image": "https://replicate.delivery/pbxt/MWs8msue7Il6FdB7dSq7j22SH6uauThPQnM14QB4hJAgMjw1/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc%20%282%29.webp" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run catacolabs/dis-background-removal 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": "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", "input": { "image": "https://replicate.delivery/pbxt/MWs8msue7Il6FdB7dSq7j22SH6uauThPQnM14QB4hJAgMjw1/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc%20%282%29.webp" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-20T01:00:41.275592Z", "created_at": "2025-02-20T01:00:40.691000Z", "data_removed": false, "error": null, "id": "ebtr3r81edrg80cn43fs414tw0", "input": { "image": "https://replicate.delivery/pbxt/MWs8msue7Il6FdB7dSq7j22SH6uauThPQnM14QB4hJAgMjw1/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc%20%282%29.webp" }, "logs": "Image reading time: 0.018s\nPreprocessing time: 0.006s\nOriginal image shape: (1024, 1024), Preprocessed shape: torch.Size([3, 1024, 1024])\nTensor conversion time: 0.004s\nTransform time: 0.001s\nTotal image loading pipeline time: 0.043s\nTransfer to device time: 0.003s\nModel inference time: 0.008s\nUpsampling time: 0.000s\nFinal processing and transfer back to CPU time: 0.129s\nTotal prediction time: 0.141s\nFinal image processing and saving time: 0.204s\nTotal processing time: 0.389s", "metrics": { "predict_time": 0.570864739, "total_time": 0.584592 }, "output": "https://replicate.delivery/czjl/qSQJmPonZ37lMlejf1dkf4Ep1HGzNYmSdRsJICWavhfkLMERB/output.png", "started_at": "2025-02-20T01:00:40.704727Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-lmcgkitl3cyfklgxl6zh7t7w4sryisjjtqfdoupsyrs4wffyu4ea", "get": "https://api.replicate.com/v1/predictions/ebtr3r81edrg80cn43fs414tw0", "cancel": "https://api.replicate.com/v1/predictions/ebtr3r81edrg80cn43fs414tw0/cancel" }, "version": "9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f" }
Generated inImage reading time: 0.018s Preprocessing time: 0.006s Original image shape: (1024, 1024), Preprocessed shape: torch.Size([3, 1024, 1024]) Tensor conversion time: 0.004s Transform time: 0.001s Total image loading pipeline time: 0.043s Transfer to device time: 0.003s Model inference time: 0.008s Upsampling time: 0.000s Final processing and transfer back to CPU time: 0.129s Total prediction time: 0.141s Final image processing and saving time: 0.204s Total processing time: 0.389s
Prediction
catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0fIDygemr3tp59rge0cn43fvt5zbggStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MWs97psj3GACcevYycVtex6F5T7MDEcTGbKEMXx82jHTNgDK/txt2img.png" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", { input: { image: "https://replicate.delivery/pbxt/MWs97psj3GACcevYycVtex6F5T7MDEcTGbKEMXx82jHTNgDK/txt2img.png" } } ); // 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 catacolabs/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", input={ "image": "https://replicate.delivery/pbxt/MWs97psj3GACcevYycVtex6F5T7MDEcTGbKEMXx82jHTNgDK/txt2img.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run catacolabs/dis-background-removal 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": "catacolabs/dis-background-removal:9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f", "input": { "image": "https://replicate.delivery/pbxt/MWs97psj3GACcevYycVtex6F5T7MDEcTGbKEMXx82jHTNgDK/txt2img.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-20T01:01:03.349206Z", "created_at": "2025-02-20T01:01:02.378000Z", "data_removed": false, "error": null, "id": "ygemr3tp59rge0cn43fvt5zbgg", "input": { "image": "https://replicate.delivery/pbxt/MWs97psj3GACcevYycVtex6F5T7MDEcTGbKEMXx82jHTNgDK/txt2img.png" }, "logs": "Image reading time: 0.035s\nPreprocessing time: 0.006s\nOriginal image shape: (1024, 1024), Preprocessed shape: torch.Size([3, 1024, 1024])\nTensor conversion time: 0.001s\nTransform time: 0.001s\nTotal image loading pipeline time: 0.078s\nTransfer to device time: 0.003s\nModel inference time: 0.009s\nUpsampling time: 0.000s\nFinal processing and transfer back to CPU time: 0.127s\nTotal prediction time: 0.139s\nFinal image processing and saving time: 0.531s\nTotal processing time: 0.749s", "metrics": { "predict_time": 0.952385603, "total_time": 0.971206 }, "output": "https://replicate.delivery/czjl/eqmaSqo3qs0CfEwnkPgeAcHZfah9yR99N4qnGouATDg8MMERB/output.png", "started_at": "2025-02-20T01:01:02.396820Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-j4yofxdgv4ym5whkfyinp6urii4fxmdwf5ektkkcivos6he727ua", "get": "https://api.replicate.com/v1/predictions/ygemr3tp59rge0cn43fvt5zbgg", "cancel": "https://api.replicate.com/v1/predictions/ygemr3tp59rge0cn43fvt5zbgg/cancel" }, "version": "9ef3e8df2d718749ca9cfd583cb501e108007d6eff2a2a5cd58abf5914a77e0f" }
Generated inImage reading time: 0.035s Preprocessing time: 0.006s Original image shape: (1024, 1024), Preprocessed shape: torch.Size([3, 1024, 1024]) Tensor conversion time: 0.001s Transform time: 0.001s Total image loading pipeline time: 0.078s Transfer to device time: 0.003s Model inference time: 0.009s Upsampling time: 0.000s Final processing and transfer back to CPU time: 0.127s Total prediction time: 0.139s Final image processing and saving time: 0.531s Total processing time: 0.749s
Want to make some of these yourself?
Run this model