arielreplicate
/
deoldify_image
Add colours to old images
Prediction
arielreplicate/deoldify_image:0da600faID5ml3jdzxxba7xevvvgetgbzi5aStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "model_name": "Artistic", "input_image": "https://replicate.delivery/pbxt/I9uDZgopnhz6X956zgaBoorFWbUmu5HHDyjkd3BY3ZnxVAdu/1.jpg", "render_factor": 35 }
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/deoldify_image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "arielreplicate/deoldify_image:0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", { input: { model_name: "Artistic", input_image: "https://replicate.delivery/pbxt/I9uDZgopnhz6X956zgaBoorFWbUmu5HHDyjkd3BY3ZnxVAdu/1.jpg", render_factor: 35 } } ); 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/deoldify_image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "arielreplicate/deoldify_image:0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", input={ "model_name": "Artistic", "input_image": "https://replicate.delivery/pbxt/I9uDZgopnhz6X956zgaBoorFWbUmu5HHDyjkd3BY3ZnxVAdu/1.jpg", "render_factor": 35 } ) 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/deoldify_image 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": "0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", "input": { "model_name": "Artistic", "input_image": "https://replicate.delivery/pbxt/I9uDZgopnhz6X956zgaBoorFWbUmu5HHDyjkd3BY3ZnxVAdu/1.jpg", "render_factor": 35 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-01-18T15:54:11.067921Z", "created_at": "2023-01-18T15:53:43.474682Z", "data_removed": false, "error": null, "id": "5ml3jdzxxba7xevvvgetgbzi5a", "input": { "model_name": "Artistic", "input_image": "https://replicate.delivery/pbxt/I9uDZgopnhz6X956zgaBoorFWbUmu5HHDyjkd3BY3ZnxVAdu/1.jpg", "render_factor": 35 }, "logs": "/root/.pyenv/versions/3.8.16/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.\nwarnings.warn(\n/root/.pyenv/versions/3.8.16/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet34_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet34_Weights.DEFAULT` to get the most up-to-date weights.\nwarnings.warn(msg)", "metrics": { "predict_time": 27.548307, "total_time": 27.593239 }, "output": "https://replicate.delivery/pbxt/QDMDijnVRXYWNNW32rxQbbClRDwaIfgJSVG1rfvXVeyFB5qgA/tmpvp0xc_2a1.jpg", "started_at": "2023-01-18T15:53:43.519614Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/5ml3jdzxxba7xevvvgetgbzi5a", "cancel": "https://api.replicate.com/v1/predictions/5ml3jdzxxba7xevvvgetgbzi5a/cancel" }, "version": "376c74a2c9eb442a2ff9391b84dc5b949cd4e80b4dc0565115be0a19b7df0ae6" }
Generated in/root/.pyenv/versions/3.8.16/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead. warnings.warn( /root/.pyenv/versions/3.8.16/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet34_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet34_Weights.DEFAULT` to get the most up-to-date weights. warnings.warn(msg)
Prediction
arielreplicate/deoldify_image:0da600faIDbkeni36ppngwjghhvbkmsbpq3mStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uGozFYUNhQICuYgu0tZvzcy5awfJh6Ses1DfV41JgTPRts/2.jpg", "render_factor": 35 }
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/deoldify_image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "arielreplicate/deoldify_image:0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", { input: { model_name: "Stable", input_image: "https://replicate.delivery/pbxt/I9uGozFYUNhQICuYgu0tZvzcy5awfJh6Ses1DfV41JgTPRts/2.jpg", render_factor: 35 } } ); 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/deoldify_image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "arielreplicate/deoldify_image:0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", input={ "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uGozFYUNhQICuYgu0tZvzcy5awfJh6Ses1DfV41JgTPRts/2.jpg", "render_factor": 35 } ) 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/deoldify_image 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": "0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", "input": { "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uGozFYUNhQICuYgu0tZvzcy5awfJh6Ses1DfV41JgTPRts/2.jpg", "render_factor": 35 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-01-18T15:57:32.762395Z", "created_at": "2023-01-18T15:57:10.665619Z", "data_removed": false, "error": null, "id": "bkeni36ppngwjghhvbkmsbpq3m", "input": { "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uGozFYUNhQICuYgu0tZvzcy5awfJh6Ses1DfV41JgTPRts/2.jpg", "render_factor": 35 }, "logs": null, "metrics": { "predict_time": 22.059515, "total_time": 22.096776 }, "output": "https://replicate.delivery/pbxt/qzypePce20uGHEeKPikfWFdcoImAS0vYu1mGY9Av0qryOyVBB/tmpb0coa7f02.jpg", "started_at": "2023-01-18T15:57:10.702880Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/bkeni36ppngwjghhvbkmsbpq3m", "cancel": "https://api.replicate.com/v1/predictions/bkeni36ppngwjghhvbkmsbpq3m/cancel" }, "version": "376c74a2c9eb442a2ff9391b84dc5b949cd4e80b4dc0565115be0a19b7df0ae6" }
Generated inPrediction
arielreplicate/deoldify_image:0da600faIDipob3wahmvc6rmcfjr5qp7c4uqStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uI2UHRKc2h24RErZmX7OlZvv94AUJFL2bFtj3jUPb9TNYf/3.jpg", "render_factor": 21 }
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/deoldify_image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "arielreplicate/deoldify_image:0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", { input: { model_name: "Stable", input_image: "https://replicate.delivery/pbxt/I9uI2UHRKc2h24RErZmX7OlZvv94AUJFL2bFtj3jUPb9TNYf/3.jpg", render_factor: 21 } } ); 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/deoldify_image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "arielreplicate/deoldify_image:0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", input={ "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uI2UHRKc2h24RErZmX7OlZvv94AUJFL2bFtj3jUPb9TNYf/3.jpg", "render_factor": 21 } ) 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/deoldify_image 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": "0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", "input": { "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uI2UHRKc2h24RErZmX7OlZvv94AUJFL2bFtj3jUPb9TNYf/3.jpg", "render_factor": 21 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-01-18T15:58:43.333661Z", "created_at": "2023-01-18T15:58:27.735701Z", "data_removed": false, "error": null, "id": "ipob3wahmvc6rmcfjr5qp7c4uq", "input": { "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uI2UHRKc2h24RErZmX7OlZvv94AUJFL2bFtj3jUPb9TNYf/3.jpg", "render_factor": 21 }, "logs": null, "metrics": { "predict_time": 15.558004, "total_time": 15.59796 }, "output": "https://replicate.delivery/pbxt/0ZPV3hLBJlL3El6RrlDkJYHwq1KWHlSK5WwmYhdzEZfZSuKIA/tmpvhehwyhj3.jpg", "started_at": "2023-01-18T15:58:27.775657Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ipob3wahmvc6rmcfjr5qp7c4uq", "cancel": "https://api.replicate.com/v1/predictions/ipob3wahmvc6rmcfjr5qp7c4uq/cancel" }, "version": "376c74a2c9eb442a2ff9391b84dc5b949cd4e80b4dc0565115be0a19b7df0ae6" }
Generated inPrediction
arielreplicate/deoldify_image:0da600faIDnd35fypskfedbjrwwobvwbf7x4StatusSucceededSourceWebHardware–Total durationCreatedInput
{ "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uMHbDCMz0jj89AFbbClxBUO04sHjt0HPEgOCdQFsFJJMzb/4.webp", "render_factor": 50 }
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/deoldify_image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "arielreplicate/deoldify_image:0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", { input: { model_name: "Stable", input_image: "https://replicate.delivery/pbxt/I9uMHbDCMz0jj89AFbbClxBUO04sHjt0HPEgOCdQFsFJJMzb/4.webp", render_factor: 50 } } ); 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/deoldify_image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "arielreplicate/deoldify_image:0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", input={ "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uMHbDCMz0jj89AFbbClxBUO04sHjt0HPEgOCdQFsFJJMzb/4.webp", "render_factor": 50 } ) 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/deoldify_image 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": "0da600fab0c45a66211339f1c16b71345d22f26ef5fea3dca1bb90bb5711e950", "input": { "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uMHbDCMz0jj89AFbbClxBUO04sHjt0HPEgOCdQFsFJJMzb/4.webp", "render_factor": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-01-18T16:03:26.381167Z", "created_at": "2023-01-18T16:02:56.103748Z", "data_removed": false, "error": null, "id": "nd35fypskfedbjrwwobvwbf7x4", "input": { "model_name": "Stable", "input_image": "https://replicate.delivery/pbxt/I9uMHbDCMz0jj89AFbbClxBUO04sHjt0HPEgOCdQFsFJJMzb/4.webp", "render_factor": 50 }, "logs": null, "metrics": { "predict_time": 30.229936, "total_time": 30.277419 }, "output": "https://replicate.delivery/pbxt/Wg4YL8z8LYrzD1oxaZAozOhMYHlHFPSddqv3hogMaYlTKXFE/tmpmwddh2yv4.webp", "started_at": "2023-01-18T16:02:56.151231Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nd35fypskfedbjrwwobvwbf7x4", "cancel": "https://api.replicate.com/v1/predictions/nd35fypskfedbjrwwobvwbf7x4/cancel" }, "version": "376c74a2c9eb442a2ff9391b84dc5b949cd4e80b4dc0565115be0a19b7df0ae6" }
Generated in
Want to make some of these yourself?
Run this model