ptran1203
/
pytorch-animegan
PyTorch implementation of AnimeGAN for fast photo animation
Prediction
ptran1203/pytorch-animegan:8196a395IDfdd673pi4fbwhpmybti4aq2i5iStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/f73705ac-9df1-4131-9050-3b5809b11855/132.jpg", "model": "Hayao" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", { input: { image: "https://replicate.delivery/mgxm/f73705ac-9df1-4131-9050-3b5809b11855/132.jpg", model: "Hayao" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", input={ "image": "https://replicate.delivery/mgxm/f73705ac-9df1-4131-9050-3b5809b11855/132.jpg", "model": "Hayao" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run ptran1203/pytorch-animegan 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": "8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", "input": { "image": "https://replicate.delivery/mgxm/f73705ac-9df1-4131-9050-3b5809b11855/132.jpg", "model": "Hayao" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run ptran1203/pytorch-animegan using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e \ -i 'image="https://replicate.delivery/mgxm/f73705ac-9df1-4131-9050-3b5809b11855/132.jpg"' \ -i 'model="Hayao"'
To learn more, take a look at the Cog documentation.
Pull and run ptran1203/pytorch-animegan using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/f73705ac-9df1-4131-9050-3b5809b11855/132.jpg", "model": "Hayao" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2021-08-23T03:56:58.321195Z", "created_at": "2021-08-23T03:56:53.907586Z", "data_removed": false, "error": null, "id": "fdd673pi4fbwhpmybti4aq2i5i", "input": { "image": "https://replicate.delivery/mgxm/f73705ac-9df1-4131-9050-3b5809b11855/132.jpg", "model": "Hayao" }, "logs": null, "metrics": { "total_time": 4.413609 }, "output": [ { "file": "https://replicate.delivery/mgxm/be5c0459-2fa4-4dc4-baf7-12557c05c0cd/out.png" } ], "started_at": "2022-05-03T15:05:03.817589Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/fdd673pi4fbwhpmybti4aq2i5i", "cancel": "https://api.replicate.com/v1/predictions/fdd673pi4fbwhpmybti4aq2i5i/cancel" }, "version": "163ba05100a2385815d4e56e9276ff70de824d0d3672f0c3e5634c319c5102dd" }
Prediction
ptran1203/pytorch-animegan:8196a395IDew5xz6de4bbbbaqoqye7pnghjyStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/b21ebb59-30f0-4c25-beae-70d42f0a77d7/136.jpg", "model": "Hayao" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", { input: { image: "https://replicate.delivery/mgxm/b21ebb59-30f0-4c25-beae-70d42f0a77d7/136.jpg", model: "Hayao" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", input={ "image": "https://replicate.delivery/mgxm/b21ebb59-30f0-4c25-beae-70d42f0a77d7/136.jpg", "model": "Hayao" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run ptran1203/pytorch-animegan 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": "8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", "input": { "image": "https://replicate.delivery/mgxm/b21ebb59-30f0-4c25-beae-70d42f0a77d7/136.jpg", "model": "Hayao" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run ptran1203/pytorch-animegan using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e \ -i 'image="https://replicate.delivery/mgxm/b21ebb59-30f0-4c25-beae-70d42f0a77d7/136.jpg"' \ -i 'model="Hayao"'
To learn more, take a look at the Cog documentation.
Pull and run ptran1203/pytorch-animegan using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/b21ebb59-30f0-4c25-beae-70d42f0a77d7/136.jpg", "model": "Hayao" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2021-08-23T03:57:27.905123Z", "created_at": "2021-08-23T03:57:22.885361Z", "data_removed": false, "error": null, "id": "ew5xz6de4bbbbaqoqye7pnghjy", "input": { "image": "https://replicate.delivery/mgxm/b21ebb59-30f0-4c25-beae-70d42f0a77d7/136.jpg", "model": "Hayao" }, "logs": null, "metrics": { "total_time": 5.019762 }, "output": [ { "file": "https://replicate.delivery/mgxm/e61cf7a1-a8ac-4734-b400-31a4a1e2c1ee/out.png" } ], "started_at": "2022-01-03T09:32:49.842069Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ew5xz6de4bbbbaqoqye7pnghjy", "cancel": "https://api.replicate.com/v1/predictions/ew5xz6de4bbbbaqoqye7pnghjy/cancel" }, "version": "163ba05100a2385815d4e56e9276ff70de824d0d3672f0c3e5634c319c5102dd" }
Prediction
ptran1203/pytorch-animegan:8196a395IDm6rzj2l57vanlo2kofszvzbvdmStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/69e8c071-a65b-4fc6-8f56-99c8ee8656db/146.jpg", "model": "Hayao" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", { input: { image: "https://replicate.delivery/mgxm/69e8c071-a65b-4fc6-8f56-99c8ee8656db/146.jpg", model: "Hayao" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", input={ "image": "https://replicate.delivery/mgxm/69e8c071-a65b-4fc6-8f56-99c8ee8656db/146.jpg", "model": "Hayao" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run ptran1203/pytorch-animegan 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": "8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", "input": { "image": "https://replicate.delivery/mgxm/69e8c071-a65b-4fc6-8f56-99c8ee8656db/146.jpg", "model": "Hayao" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run ptran1203/pytorch-animegan using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e \ -i 'image="https://replicate.delivery/mgxm/69e8c071-a65b-4fc6-8f56-99c8ee8656db/146.jpg"' \ -i 'model="Hayao"'
To learn more, take a look at the Cog documentation.
Pull and run ptran1203/pytorch-animegan using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/69e8c071-a65b-4fc6-8f56-99c8ee8656db/146.jpg", "model": "Hayao" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2021-08-23T03:57:48.088039Z", "created_at": "2021-08-23T03:57:43.984441Z", "data_removed": false, "error": null, "id": "m6rzj2l57vanlo2kofszvzbvdm", "input": { "image": "https://replicate.delivery/mgxm/69e8c071-a65b-4fc6-8f56-99c8ee8656db/146.jpg", "model": "Hayao" }, "logs": null, "metrics": { "total_time": 4.103598 }, "output": [ { "file": "https://replicate.delivery/mgxm/da3aaa99-12a5-48af-8a67-326d8eae8cf3/out.png" } ], "started_at": "2022-05-15T03:30:58.852409Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/m6rzj2l57vanlo2kofszvzbvdm", "cancel": "https://api.replicate.com/v1/predictions/m6rzj2l57vanlo2kofszvzbvdm/cancel" }, "version": "163ba05100a2385815d4e56e9276ff70de824d0d3672f0c3e5634c319c5102dd" }
Prediction
ptran1203/pytorch-animegan:8196a395IDpejgbl25f5hzhlwvg4inot36q4StatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/148b2895-4ff2-4560-88eb-629b8ac828bc/155.jpg", "model": "Hayao" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", { input: { image: "https://replicate.delivery/mgxm/148b2895-4ff2-4560-88eb-629b8ac828bc/155.jpg", model: "Hayao" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", input={ "image": "https://replicate.delivery/mgxm/148b2895-4ff2-4560-88eb-629b8ac828bc/155.jpg", "model": "Hayao" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run ptran1203/pytorch-animegan 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": "8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", "input": { "image": "https://replicate.delivery/mgxm/148b2895-4ff2-4560-88eb-629b8ac828bc/155.jpg", "model": "Hayao" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run ptran1203/pytorch-animegan using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e \ -i 'image="https://replicate.delivery/mgxm/148b2895-4ff2-4560-88eb-629b8ac828bc/155.jpg"' \ -i 'model="Hayao"'
To learn more, take a look at the Cog documentation.
Pull and run ptran1203/pytorch-animegan using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/148b2895-4ff2-4560-88eb-629b8ac828bc/155.jpg", "model": "Hayao" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2021-08-23T03:58:12.337114Z", "created_at": "2021-08-23T03:58:08.771383Z", "data_removed": false, "error": null, "id": "pejgbl25f5hzhlwvg4inot36q4", "input": { "image": "https://replicate.delivery/mgxm/148b2895-4ff2-4560-88eb-629b8ac828bc/155.jpg", "model": "Hayao" }, "logs": null, "metrics": { "total_time": 3.565731 }, "output": [ { "file": "https://replicate.delivery/mgxm/70d203d7-eb01-47f7-95c8-1f82b57e181b/out.png" } ], "started_at": "2022-05-18T18:39:14.695479Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/pejgbl25f5hzhlwvg4inot36q4", "cancel": "https://api.replicate.com/v1/predictions/pejgbl25f5hzhlwvg4inot36q4/cancel" }, "version": "163ba05100a2385815d4e56e9276ff70de824d0d3672f0c3e5634c319c5102dd" }
Prediction
ptran1203/pytorch-animegan:8196a395ID7vduriritnazncvpd5olzyrcdaStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/004d08ba-c2c0-435a-8565-516f4445bd8a/142.jpg", "model": "Hayao" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", { input: { image: "https://replicate.delivery/mgxm/004d08ba-c2c0-435a-8565-516f4445bd8a/142.jpg", model: "Hayao" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run ptran1203/pytorch-animegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "ptran1203/pytorch-animegan:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", input={ "image": "https://replicate.delivery/mgxm/004d08ba-c2c0-435a-8565-516f4445bd8a/142.jpg", "model": "Hayao" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run ptran1203/pytorch-animegan 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": "8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e", "input": { "image": "https://replicate.delivery/mgxm/004d08ba-c2c0-435a-8565-516f4445bd8a/142.jpg", "model": "Hayao" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run ptran1203/pytorch-animegan using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e \ -i 'image="https://replicate.delivery/mgxm/004d08ba-c2c0-435a-8565-516f4445bd8a/142.jpg"' \ -i 'model="Hayao"'
To learn more, take a look at the Cog documentation.
Pull and run ptran1203/pytorch-animegan using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 r8.im/ptran1203/pytorch-animegan@sha256:8196a395a46403d2b9eab5ff24bdc783f938d2c75f513829d58cbedefa74303e
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/004d08ba-c2c0-435a-8565-516f4445bd8a/142.jpg", "model": "Hayao" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2021-08-23T03:58:28.127412Z", "created_at": "2021-08-23T03:58:24.071364Z", "data_removed": false, "error": null, "id": "7vduriritnazncvpd5olzyrcda", "input": { "image": "https://replicate.delivery/mgxm/004d08ba-c2c0-435a-8565-516f4445bd8a/142.jpg", "model": "Hayao" }, "logs": null, "metrics": {}, "output": [ { "file": "https://replicate.delivery/mgxm/929ed83a-f99f-4e53-85fc-289ae33e45cc/out.png" } ], "started_at": null, "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/7vduriritnazncvpd5olzyrcda", "cancel": "https://api.replicate.com/v1/predictions/7vduriritnazncvpd5olzyrcda/cancel" }, "version": "163ba05100a2385815d4e56e9276ff70de824d0d3672f0c3e5634c319c5102dd" }
Want to make some of these yourself?
Run this model