williamyang1991
/
gp-unit
[CVPR 2022] Unsupervised Image-to-Image Translation with Generative Prior
Prediction
williamyang1991/gp-unit:08fe6617IDnpv5o3clprd3faeqlfgfsdwmdiStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "task": "cat2dog", "style": "https://replicate.delivery/mgxm/05167c08-00de-4711-abfc-4d6a9edc9e12/flickr_dog_000572.jpg", "content": "https://replicate.delivery/mgxm/e47c3bad-7aa5-4e63-b035-7898c69a6ef5/flickr_cat_000418.jpg" }
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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", { input: { task: "cat2dog", style: "https://replicate.delivery/mgxm/05167c08-00de-4711-abfc-4d6a9edc9e12/flickr_dog_000572.jpg", content: "https://replicate.delivery/mgxm/e47c3bad-7aa5-4e63-b035-7898c69a6ef5/flickr_cat_000418.jpg" } } ); 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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", input={ "task": "cat2dog", "style": "https://replicate.delivery/mgxm/05167c08-00de-4711-abfc-4d6a9edc9e12/flickr_dog_000572.jpg", "content": "https://replicate.delivery/mgxm/e47c3bad-7aa5-4e63-b035-7898c69a6ef5/flickr_cat_000418.jpg" } ) 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 williamyang1991/gp-unit 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": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", "input": { "task": "cat2dog", "style": "https://replicate.delivery/mgxm/05167c08-00de-4711-abfc-4d6a9edc9e12/flickr_dog_000572.jpg", "content": "https://replicate.delivery/mgxm/e47c3bad-7aa5-4e63-b035-7898c69a6ef5/flickr_cat_000418.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-04-13T15:58:22.381187Z", "created_at": "2022-04-13T15:56:27.811668Z", "data_removed": false, "error": null, "id": "npv5o3clprd3faeqlfgfsdwmdi", "input": { "task": "cat2dog", "style": "https://replicate.delivery/mgxm/05167c08-00de-4711-abfc-4d6a9edc9e12/flickr_dog_000572.jpg", "content": "https://replicate.delivery/mgxm/e47c3bad-7aa5-4e63-b035-7898c69a6ef5/flickr_cat_000418.jpg" }, "logs": null, "metrics": { "predict_time": 4.43487, "total_time": 114.569519 }, "output": "https://replicate.delivery/mgxm/8edd71dc-a8a2-44ea-be0e-9c72c5cfff04/output.png", "started_at": "2022-04-13T15:58:17.946317Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/npv5o3clprd3faeqlfgfsdwmdi", "cancel": "https://api.replicate.com/v1/predictions/npv5o3clprd3faeqlfgfsdwmdi/cancel" }, "version": "fde468de82c6b3b3174cd0f147757723a104688b5d0f9e22c2d6fa7045a1f8b4" }
Generated inPrediction
williamyang1991/gp-unit:08fe6617ID6l7pocrjwbgwdblucrehw5z4nqStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "task": "cat2face", "style": "https://replicate.delivery/mgxm/b3dfc9b4-c068-46a8-95de-b43051845814/29057.jpg", "content": "https://replicate.delivery/mgxm/ba747159-594b-4bc9-9cee-0d5c4c9ebaba/pixabay_cat_000441.jpg" }
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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", { input: { task: "cat2face", style: "https://replicate.delivery/mgxm/b3dfc9b4-c068-46a8-95de-b43051845814/29057.jpg", content: "https://replicate.delivery/mgxm/ba747159-594b-4bc9-9cee-0d5c4c9ebaba/pixabay_cat_000441.jpg" } } ); 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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", input={ "task": "cat2face", "style": "https://replicate.delivery/mgxm/b3dfc9b4-c068-46a8-95de-b43051845814/29057.jpg", "content": "https://replicate.delivery/mgxm/ba747159-594b-4bc9-9cee-0d5c4c9ebaba/pixabay_cat_000441.jpg" } ) 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 williamyang1991/gp-unit 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": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", "input": { "task": "cat2face", "style": "https://replicate.delivery/mgxm/b3dfc9b4-c068-46a8-95de-b43051845814/29057.jpg", "content": "https://replicate.delivery/mgxm/ba747159-594b-4bc9-9cee-0d5c4c9ebaba/pixabay_cat_000441.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-04-14T12:45:20.554430Z", "created_at": "2022-04-14T12:45:19.097950Z", "data_removed": false, "error": null, "id": "6l7pocrjwbgwdblucrehw5z4nq", "input": { "task": "cat2face", "style": "https://replicate.delivery/mgxm/b3dfc9b4-c068-46a8-95de-b43051845814/29057.jpg", "content": "https://replicate.delivery/mgxm/ba747159-594b-4bc9-9cee-0d5c4c9ebaba/pixabay_cat_000441.jpg" }, "logs": null, "metrics": { "predict_time": 1.292023, "total_time": 1.45648 }, "output": "https://replicate.delivery/mgxm/fc291c47-5c86-4dfc-9175-60a6d3c68891/output.png", "started_at": "2022-04-14T12:45:19.262407Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6l7pocrjwbgwdblucrehw5z4nq", "cancel": "https://api.replicate.com/v1/predictions/6l7pocrjwbgwdblucrehw5z4nq/cancel" }, "version": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45" }
Generated inPrediction
williamyang1991/gp-unit:08fe6617IDeagk3qbquvdonn5zg6c4eegzsuStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "task": "face2cat", "style": "https://replicate.delivery/mgxm/5c4cacd1-0b5b-4767-84a7-e0b5bbe19a22/pixabay_cat_000441.jpg", "content": "https://replicate.delivery/mgxm/35eb9a73-5e2f-49cf-9335-d016d4415fed/29057.jpg" }
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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", { input: { task: "face2cat", style: "https://replicate.delivery/mgxm/5c4cacd1-0b5b-4767-84a7-e0b5bbe19a22/pixabay_cat_000441.jpg", content: "https://replicate.delivery/mgxm/35eb9a73-5e2f-49cf-9335-d016d4415fed/29057.jpg" } } ); 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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", input={ "task": "face2cat", "style": "https://replicate.delivery/mgxm/5c4cacd1-0b5b-4767-84a7-e0b5bbe19a22/pixabay_cat_000441.jpg", "content": "https://replicate.delivery/mgxm/35eb9a73-5e2f-49cf-9335-d016d4415fed/29057.jpg" } ) 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 williamyang1991/gp-unit 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": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", "input": { "task": "face2cat", "style": "https://replicate.delivery/mgxm/5c4cacd1-0b5b-4767-84a7-e0b5bbe19a22/pixabay_cat_000441.jpg", "content": "https://replicate.delivery/mgxm/35eb9a73-5e2f-49cf-9335-d016d4415fed/29057.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-04-14T12:45:48.723328Z", "created_at": "2022-04-14T12:45:47.274105Z", "data_removed": false, "error": null, "id": "eagk3qbquvdonn5zg6c4eegzsu", "input": { "task": "face2cat", "style": "https://replicate.delivery/mgxm/5c4cacd1-0b5b-4767-84a7-e0b5bbe19a22/pixabay_cat_000441.jpg", "content": "https://replicate.delivery/mgxm/35eb9a73-5e2f-49cf-9335-d016d4415fed/29057.jpg" }, "logs": null, "metrics": { "predict_time": 1.22336, "total_time": 1.449223 }, "output": "https://replicate.delivery/mgxm/d9e560bc-b078-4077-86c3-a7f7e07d99cd/output.png", "started_at": "2022-04-14T12:45:47.499968Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/eagk3qbquvdonn5zg6c4eegzsu", "cancel": "https://api.replicate.com/v1/predictions/eagk3qbquvdonn5zg6c4eegzsu/cancel" }, "version": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45" }
Generated inPrediction
williamyang1991/gp-unit:08fe6617IDh2ddmjrzqbgo5oaime63u64koqStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "task": "male2female", "style": "https://replicate.delivery/mgxm/d936b4f2-e5e7-40ce-98cf-09d531ae08be/002569.jpg", "content": "https://replicate.delivery/mgxm/bc5df7ba-afcd-496c-8857-ad3310315fd0/020167.jpg" }
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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", { input: { task: "male2female", style: "https://replicate.delivery/mgxm/d936b4f2-e5e7-40ce-98cf-09d531ae08be/002569.jpg", content: "https://replicate.delivery/mgxm/bc5df7ba-afcd-496c-8857-ad3310315fd0/020167.jpg" } } ); 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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", input={ "task": "male2female", "style": "https://replicate.delivery/mgxm/d936b4f2-e5e7-40ce-98cf-09d531ae08be/002569.jpg", "content": "https://replicate.delivery/mgxm/bc5df7ba-afcd-496c-8857-ad3310315fd0/020167.jpg" } ) 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 williamyang1991/gp-unit 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": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", "input": { "task": "male2female", "style": "https://replicate.delivery/mgxm/d936b4f2-e5e7-40ce-98cf-09d531ae08be/002569.jpg", "content": "https://replicate.delivery/mgxm/bc5df7ba-afcd-496c-8857-ad3310315fd0/020167.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-04-14T12:28:44.070643Z", "created_at": "2022-04-14T12:28:42.136489Z", "data_removed": false, "error": null, "id": "h2ddmjrzqbgo5oaime63u64koq", "input": { "task": "male2female", "style": "https://replicate.delivery/mgxm/d936b4f2-e5e7-40ce-98cf-09d531ae08be/002569.jpg", "content": "https://replicate.delivery/mgxm/bc5df7ba-afcd-496c-8857-ad3310315fd0/020167.jpg" }, "logs": null, "metrics": { "predict_time": 1.403268, "total_time": 1.934154 }, "output": "https://replicate.delivery/mgxm/19124b21-32b4-46bb-a735-1a327cf1c146/output.png", "started_at": "2022-04-14T12:28:42.667375Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/h2ddmjrzqbgo5oaime63u64koq", "cancel": "https://api.replicate.com/v1/predictions/h2ddmjrzqbgo5oaime63u64koq/cancel" }, "version": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45" }
Generated inPrediction
williamyang1991/gp-unit:08fe6617IDidyzukmcgfdhpicov55ay6owkeStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "task": "bird2dog", "style": "https://replicate.delivery/mgxm/cfc8167d-8eb2-4ca7-9a96-f02e3fad2fa7/0.jpg", "content": "https://replicate.delivery/mgxm/48a216e6-2fe0-4129-9be8-7b30ddce34f5/2.jpg" }
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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", { input: { task: "bird2dog", style: "https://replicate.delivery/mgxm/cfc8167d-8eb2-4ca7-9a96-f02e3fad2fa7/0.jpg", content: "https://replicate.delivery/mgxm/48a216e6-2fe0-4129-9be8-7b30ddce34f5/2.jpg" } } ); 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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", input={ "task": "bird2dog", "style": "https://replicate.delivery/mgxm/cfc8167d-8eb2-4ca7-9a96-f02e3fad2fa7/0.jpg", "content": "https://replicate.delivery/mgxm/48a216e6-2fe0-4129-9be8-7b30ddce34f5/2.jpg" } ) 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 williamyang1991/gp-unit 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": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", "input": { "task": "bird2dog", "style": "https://replicate.delivery/mgxm/cfc8167d-8eb2-4ca7-9a96-f02e3fad2fa7/0.jpg", "content": "https://replicate.delivery/mgxm/48a216e6-2fe0-4129-9be8-7b30ddce34f5/2.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-04-14T12:52:23.364243Z", "created_at": "2022-04-14T12:52:21.947699Z", "data_removed": false, "error": null, "id": "idyzukmcgfdhpicov55ay6owke", "input": { "task": "bird2dog", "style": "https://replicate.delivery/mgxm/cfc8167d-8eb2-4ca7-9a96-f02e3fad2fa7/0.jpg", "content": "https://replicate.delivery/mgxm/48a216e6-2fe0-4129-9be8-7b30ddce34f5/2.jpg" }, "logs": null, "metrics": { "predict_time": 1.202758, "total_time": 1.416544 }, "output": "https://replicate.delivery/mgxm/77b558f9-17b9-423b-9a2b-a693f9b7c1b0/output.png", "started_at": "2022-04-14T12:52:22.161485Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/idyzukmcgfdhpicov55ay6owke", "cancel": "https://api.replicate.com/v1/predictions/idyzukmcgfdhpicov55ay6owke/cancel" }, "version": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45" }
Generated inPrediction
williamyang1991/gp-unit:08fe6617IDdbwpfnfrongj3cerjlcjrp2tcyStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "task": "dog2bird", "style": "https://replicate.delivery/mgxm/9be789e5-274c-4d5f-a45c-3aa2c27d4df8/2.jpg", "content": "https://replicate.delivery/mgxm/6f057d68-dbec-460b-99f8-17b397f8e7a2/0.jpg" }
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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", { input: { task: "dog2bird", style: "https://replicate.delivery/mgxm/9be789e5-274c-4d5f-a45c-3aa2c27d4df8/2.jpg", content: "https://replicate.delivery/mgxm/6f057d68-dbec-460b-99f8-17b397f8e7a2/0.jpg" } } ); 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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", input={ "task": "dog2bird", "style": "https://replicate.delivery/mgxm/9be789e5-274c-4d5f-a45c-3aa2c27d4df8/2.jpg", "content": "https://replicate.delivery/mgxm/6f057d68-dbec-460b-99f8-17b397f8e7a2/0.jpg" } ) 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 williamyang1991/gp-unit 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": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", "input": { "task": "dog2bird", "style": "https://replicate.delivery/mgxm/9be789e5-274c-4d5f-a45c-3aa2c27d4df8/2.jpg", "content": "https://replicate.delivery/mgxm/6f057d68-dbec-460b-99f8-17b397f8e7a2/0.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-04-14T12:52:53.728820Z", "created_at": "2022-04-14T12:52:52.276118Z", "data_removed": false, "error": null, "id": "dbwpfnfrongj3cerjlcjrp2tcy", "input": { "task": "dog2bird", "style": "https://replicate.delivery/mgxm/9be789e5-274c-4d5f-a45c-3aa2c27d4df8/2.jpg", "content": "https://replicate.delivery/mgxm/6f057d68-dbec-460b-99f8-17b397f8e7a2/0.jpg" }, "logs": null, "metrics": { "predict_time": 1.263403, "total_time": 1.452702 }, "output": "https://replicate.delivery/mgxm/9b956188-596e-4137-931e-a8a8d5f4c1b5/output.png", "started_at": "2022-04-14T12:52:52.465417Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/dbwpfnfrongj3cerjlcjrp2tcy", "cancel": "https://api.replicate.com/v1/predictions/dbwpfnfrongj3cerjlcjrp2tcy/cancel" }, "version": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45" }
Generated inPrediction
williamyang1991/gp-unit:08fe6617ID5tj74v7j5vfyveupecbejkjedyStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "task": "female2male", "style": "https://replicate.delivery/mgxm/09136812-1a2e-4842-bf10-73acbf8e2982/020167.jpg", "content": "https://replicate.delivery/mgxm/587da9ee-3a0d-40ba-8d31-1379e6a23250/002569.jpg" }
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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", { input: { task: "female2male", style: "https://replicate.delivery/mgxm/09136812-1a2e-4842-bf10-73acbf8e2982/020167.jpg", content: "https://replicate.delivery/mgxm/587da9ee-3a0d-40ba-8d31-1379e6a23250/002569.jpg" } } ); 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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", input={ "task": "female2male", "style": "https://replicate.delivery/mgxm/09136812-1a2e-4842-bf10-73acbf8e2982/020167.jpg", "content": "https://replicate.delivery/mgxm/587da9ee-3a0d-40ba-8d31-1379e6a23250/002569.jpg" } ) 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 williamyang1991/gp-unit 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": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", "input": { "task": "female2male", "style": "https://replicate.delivery/mgxm/09136812-1a2e-4842-bf10-73acbf8e2982/020167.jpg", "content": "https://replicate.delivery/mgxm/587da9ee-3a0d-40ba-8d31-1379e6a23250/002569.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-04-13T16:22:44.788090Z", "created_at": "2022-04-13T16:22:43.526917Z", "data_removed": false, "error": null, "id": "5tj74v7j5vfyveupecbejkjedy", "input": { "task": "female2male", "style": "https://replicate.delivery/mgxm/09136812-1a2e-4842-bf10-73acbf8e2982/020167.jpg", "content": "https://replicate.delivery/mgxm/587da9ee-3a0d-40ba-8d31-1379e6a23250/002569.jpg" }, "logs": null, "metrics": { "predict_time": 1.065177, "total_time": 1.261173 }, "output": "https://replicate.delivery/mgxm/33abe241-6df1-44fe-8135-1500a2ccc321/output.png", "started_at": "2022-04-13T16:22:43.722913Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/5tj74v7j5vfyveupecbejkjedy", "cancel": "https://api.replicate.com/v1/predictions/5tj74v7j5vfyveupecbejkjedy/cancel" }, "version": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45" }
Generated inPrediction
williamyang1991/gp-unit:08fe6617IDcv2kluswzvdk3frcnljd62ax7yStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "task": "dog2cat", "style": "https://replicate.delivery/mgxm/2b73cb9a-af2e-4ec4-9db3-150950118edd/flickr_cat_000418.jpg", "content": "https://replicate.delivery/mgxm/b474f9df-17fd-4777-b66a-911a591ea658/flickr_dog_000572.jpg" }
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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", { input: { task: "dog2cat", style: "https://replicate.delivery/mgxm/2b73cb9a-af2e-4ec4-9db3-150950118edd/flickr_cat_000418.jpg", content: "https://replicate.delivery/mgxm/b474f9df-17fd-4777-b66a-911a591ea658/flickr_dog_000572.jpg" } } ); 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 williamyang1991/gp-unit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "williamyang1991/gp-unit:08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", input={ "task": "dog2cat", "style": "https://replicate.delivery/mgxm/2b73cb9a-af2e-4ec4-9db3-150950118edd/flickr_cat_000418.jpg", "content": "https://replicate.delivery/mgxm/b474f9df-17fd-4777-b66a-911a591ea658/flickr_dog_000572.jpg" } ) 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 williamyang1991/gp-unit 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": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45", "input": { "task": "dog2cat", "style": "https://replicate.delivery/mgxm/2b73cb9a-af2e-4ec4-9db3-150950118edd/flickr_cat_000418.jpg", "content": "https://replicate.delivery/mgxm/b474f9df-17fd-4777-b66a-911a591ea658/flickr_dog_000572.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-04-14T12:31:20.881120Z", "created_at": "2022-04-14T12:31:19.419629Z", "data_removed": false, "error": null, "id": "cv2kluswzvdk3frcnljd62ax7y", "input": { "task": "dog2cat", "style": "https://replicate.delivery/mgxm/2b73cb9a-af2e-4ec4-9db3-150950118edd/flickr_cat_000418.jpg", "content": "https://replicate.delivery/mgxm/b474f9df-17fd-4777-b66a-911a591ea658/flickr_dog_000572.jpg" }, "logs": null, "metrics": { "predict_time": 1.223592, "total_time": 1.461491 }, "output": "https://replicate.delivery/mgxm/44049a74-e2e7-4c1a-a888-f85891e70fdb/output.png", "started_at": "2022-04-14T12:31:19.657528Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/cv2kluswzvdk3frcnljd62ax7y", "cancel": "https://api.replicate.com/v1/predictions/cv2kluswzvdk3frcnljd62ax7y/cancel" }, "version": "08fe6617918a8ea931715badc5e5cc8abd7ddd76b26667ee323720ce2b2bac45" }
Generated in
Want to make some of these yourself?
Run this model