cjwbw / micromotion-stylegan
Decoding Micromotion in Low-dimensional Latent Spaces from StyleGAN
Prediction
cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27fInput
{ "image": "https://replicate.delivery/mgxm/9e36eba2-1e6c-4f1e-88d2-e9afa6b24728/van_gouh.jpeg", "scale": 5, "micromotion": "eyesClose" }
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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", { input: { image: "https://replicate.delivery/mgxm/9e36eba2-1e6c-4f1e-88d2-e9afa6b24728/van_gouh.jpeg", scale: 5, micromotion: "eyesClose" } } ); // 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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", input={ "image": "https://replicate.delivery/mgxm/9e36eba2-1e6c-4f1e-88d2-e9afa6b24728/van_gouh.jpeg", "scale": 5, "micromotion": "eyesClose" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/micromotion-stylegan 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": "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", "input": { "image": "https://replicate.delivery/mgxm/9e36eba2-1e6c-4f1e-88d2-e9afa6b24728/van_gouh.jpeg", "scale": 5, "micromotion": "eyesClose" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-04T12:27:31.322243Z", "created_at": "2022-08-04T12:25:01.615705Z", "data_removed": false, "error": null, "id": "nsuplk2ijrhsbmnsvtlevzhcsi", "input": { "image": "https://replicate.delivery/mgxm/9e36eba2-1e6c-4f1e-88d2-e9afa6b24728/van_gouh.jpeg", "scale": 5, "micromotion": "eyesClose" }, "logs": "<class 'str'>\ncomputing latent ...\nAligned image has shape: (256, 256)\ngenerating frames ...", "metrics": { "predict_time": 26.270038, "total_time": 149.706538 }, "output": "https://replicate.delivery/mgxm/ad3adda3-8409-48ad-8b88-1e99d88d4b3a/output.mp4", "started_at": "2022-08-04T12:27:05.052205Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nsuplk2ijrhsbmnsvtlevzhcsi", "cancel": "https://api.replicate.com/v1/predictions/nsuplk2ijrhsbmnsvtlevzhcsi/cancel" }, "version": "e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f" }
Generated in<class 'str'> computing latent ... Aligned image has shape: (256, 256) generating frames ...
Prediction
cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27fInput
{ "image": "https://replicate.delivery/mgxm/5bbdb884-5f86-456d-8961-7c94ac0cda74/van_gouh.jpeg", "scale": "8", "micromotion": "smile" }
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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", { input: { image: "https://replicate.delivery/mgxm/5bbdb884-5f86-456d-8961-7c94ac0cda74/van_gouh.jpeg", scale: "8", micromotion: "smile" } } ); // 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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", input={ "image": "https://replicate.delivery/mgxm/5bbdb884-5f86-456d-8961-7c94ac0cda74/van_gouh.jpeg", "scale": "8", "micromotion": "smile" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/micromotion-stylegan 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": "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", "input": { "image": "https://replicate.delivery/mgxm/5bbdb884-5f86-456d-8961-7c94ac0cda74/van_gouh.jpeg", "scale": "8", "micromotion": "smile" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-04T12:29:06.442087Z", "created_at": "2022-08-04T12:28:38.932456Z", "data_removed": false, "error": null, "id": "vupcx6wgy5dp5izskfrzih4lja", "input": { "image": "https://replicate.delivery/mgxm/5bbdb884-5f86-456d-8961-7c94ac0cda74/van_gouh.jpeg", "scale": "8", "micromotion": "smile" }, "logs": "<class 'str'>\ncomputing latent ...\nAligned image has shape: (256, 256)\ngenerating frames ...", "metrics": { "predict_time": 27.38282, "total_time": 27.509631 }, "output": "https://replicate.delivery/mgxm/14a75a2e-a8a7-433d-9199-260200abbc77/output.mp4", "started_at": "2022-08-04T12:28:39.059267Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vupcx6wgy5dp5izskfrzih4lja", "cancel": "https://api.replicate.com/v1/predictions/vupcx6wgy5dp5izskfrzih4lja/cancel" }, "version": "e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f" }
Generated in<class 'str'> computing latent ... Aligned image has shape: (256, 256) generating frames ...
Prediction
cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27fInput
{ "image": "https://replicate.delivery/mgxm/382cb8e8-49c6-45b9-821c-4b1a5b26b3b6/aerith.png", "scale": "8", "micromotion": "angry" }
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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", { input: { image: "https://replicate.delivery/mgxm/382cb8e8-49c6-45b9-821c-4b1a5b26b3b6/aerith.png", scale: "8", micromotion: "angry" } } ); // 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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", input={ "image": "https://replicate.delivery/mgxm/382cb8e8-49c6-45b9-821c-4b1a5b26b3b6/aerith.png", "scale": "8", "micromotion": "angry" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/micromotion-stylegan 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": "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", "input": { "image": "https://replicate.delivery/mgxm/382cb8e8-49c6-45b9-821c-4b1a5b26b3b6/aerith.png", "scale": "8", "micromotion": "angry" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-04T12:53:15.438135Z", "created_at": "2022-08-04T12:51:51.013654Z", "data_removed": false, "error": null, "id": "hytxdky3ergpzlzywbxnpvhlzi", "input": { "image": "https://replicate.delivery/mgxm/382cb8e8-49c6-45b9-821c-4b1a5b26b3b6/aerith.png", "scale": "8", "micromotion": "angry" }, "logs": "<class 'str'>\ncomputing latent ...\nAligned image has shape: (256, 256)\ngenerating frames ...", "metrics": { "predict_time": 18.510854, "total_time": 84.424481 }, "output": "https://replicate.delivery/mgxm/f8fb28d0-7b5a-41ab-902f-9dc5a319c5bb/output.mp4", "started_at": "2022-08-04T12:52:56.927281Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/hytxdky3ergpzlzywbxnpvhlzi", "cancel": "https://api.replicate.com/v1/predictions/hytxdky3ergpzlzywbxnpvhlzi/cancel" }, "version": "e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f" }
Generated in<class 'str'> computing latent ... Aligned image has shape: (256, 256) generating frames ...
Prediction
cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27fInput
{ "image": "https://replicate.delivery/mgxm/3c133927-783b-40f3-830f-478d4e6e7a44/aerith.png", "scale": "8", "micromotion": "aging" }
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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", { input: { image: "https://replicate.delivery/mgxm/3c133927-783b-40f3-830f-478d4e6e7a44/aerith.png", scale: "8", micromotion: "aging" } } ); // 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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", input={ "image": "https://replicate.delivery/mgxm/3c133927-783b-40f3-830f-478d4e6e7a44/aerith.png", "scale": "8", "micromotion": "aging" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/micromotion-stylegan 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": "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", "input": { "image": "https://replicate.delivery/mgxm/3c133927-783b-40f3-830f-478d4e6e7a44/aerith.png", "scale": "8", "micromotion": "aging" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-04T12:53:46.097349Z", "created_at": "2022-08-04T12:53:27.826284Z", "data_removed": false, "error": null, "id": "phgpnle4inh3vp4tyfbkbs27i4", "input": { "image": "https://replicate.delivery/mgxm/3c133927-783b-40f3-830f-478d4e6e7a44/aerith.png", "scale": "8", "micromotion": "aging" }, "logs": "<class 'str'>\ncomputing latent ...\nAligned image has shape: (256, 256)\ngenerating frames ...", "metrics": { "predict_time": 18.056747, "total_time": 18.271065 }, "output": "https://replicate.delivery/mgxm/cdf20cdd-9413-475f-801a-d3be5cc5f1ea/output.mp4", "started_at": "2022-08-04T12:53:28.040602Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/phgpnle4inh3vp4tyfbkbs27i4", "cancel": "https://api.replicate.com/v1/predictions/phgpnle4inh3vp4tyfbkbs27i4/cancel" }, "version": "e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f" }
Generated in<class 'str'> computing latent ... Aligned image has shape: (256, 256) generating frames ...
Prediction
cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27fInput
{ "image": "https://replicate.delivery/mgxm/a98e62ef-51d4-49a0-ade5-dd575f16037e/01.jpeg", "scale": "5", "micromotion": "headsTurn" }
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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", { input: { image: "https://replicate.delivery/mgxm/a98e62ef-51d4-49a0-ade5-dd575f16037e/01.jpeg", scale: "5", micromotion: "headsTurn" } } ); // 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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", input={ "image": "https://replicate.delivery/mgxm/a98e62ef-51d4-49a0-ade5-dd575f16037e/01.jpeg", "scale": "5", "micromotion": "headsTurn" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/micromotion-stylegan 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": "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", "input": { "image": "https://replicate.delivery/mgxm/a98e62ef-51d4-49a0-ade5-dd575f16037e/01.jpeg", "scale": "5", "micromotion": "headsTurn" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-04T12:56:10.860722Z", "created_at": "2022-08-04T12:55:49.299684Z", "data_removed": false, "error": null, "id": "lnli5gi6ljdwvkpeyihxom7hpy", "input": { "image": "https://replicate.delivery/mgxm/a98e62ef-51d4-49a0-ade5-dd575f16037e/01.jpeg", "scale": "5", "micromotion": "headsTurn" }, "logs": "<class 'str'>\ncomputing latent ...\nAligned image has shape: (256, 256)\ngenerating frames ...", "metrics": { "predict_time": 21.377186, "total_time": 21.561038 }, "output": "https://replicate.delivery/mgxm/ff33df8d-3a13-443b-a70f-f632c629f78b/output.mp4", "started_at": "2022-08-04T12:55:49.483536Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/lnli5gi6ljdwvkpeyihxom7hpy", "cancel": "https://api.replicate.com/v1/predictions/lnli5gi6ljdwvkpeyihxom7hpy/cancel" }, "version": "e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f" }
Generated in<class 'str'> computing latent ... Aligned image has shape: (256, 256) generating frames ...
Prediction
cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27fIDwq37sxfm3jhy7l77b2v2dn64xuStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/mgxm/6fcbad0d-27b3-4adc-be99-b7e72b18c20c/david.jpeg", "scale": "5", "micromotion": "eyesClose" }
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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", { input: { image: "https://replicate.delivery/mgxm/6fcbad0d-27b3-4adc-be99-b7e72b18c20c/david.jpeg", scale: "5", micromotion: "eyesClose" } } ); // 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 cjwbw/micromotion-stylegan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", input={ "image": "https://replicate.delivery/mgxm/6fcbad0d-27b3-4adc-be99-b7e72b18c20c/david.jpeg", "scale": "5", "micromotion": "eyesClose" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/micromotion-stylegan 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": "cjwbw/micromotion-stylegan:e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f", "input": { "image": "https://replicate.delivery/mgxm/6fcbad0d-27b3-4adc-be99-b7e72b18c20c/david.jpeg", "scale": "5", "micromotion": "eyesClose" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-04T12:57:54.610942Z", "created_at": "2022-08-04T12:57:34.867921Z", "data_removed": false, "error": null, "id": "wq37sxfm3jhy7l77b2v2dn64xu", "input": { "image": "https://replicate.delivery/mgxm/6fcbad0d-27b3-4adc-be99-b7e72b18c20c/david.jpeg", "scale": "5", "micromotion": "eyesClose" }, "logs": "<class 'str'>\ncomputing latent ...\nAligned image has shape: (256, 256)\ngenerating frames ...", "metrics": { "predict_time": 19.562474, "total_time": 19.743021 }, "output": "https://replicate.delivery/mgxm/6f78c5b3-1c58-4130-b850-cc54c70eb796/output.mp4", "started_at": "2022-08-04T12:57:35.048468Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/wq37sxfm3jhy7l77b2v2dn64xu", "cancel": "https://api.replicate.com/v1/predictions/wq37sxfm3jhy7l77b2v2dn64xu/cancel" }, "version": "e662d9732001aa4f30c86927ac39c0da6b8a371fc5391931171a6428bd34c27f" }
Generated in<class 'str'> computing latent ... Aligned image has shape: (256, 256) generating frames ...
Want to make some of these yourself?
Run this model