gwang-kim / diffusionclip
DiffusionCLIP: Text-Guided Diffusion Models for Robust Image Manipulation
Prediction
gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1Input
- edit_type
- ImageNet style transfer - Watercolor art
- n_test_step
- 12
- manipulation
- ImageNet style transfer
- degree_of_change
- 1
{ "image": "https://replicate.delivery/mgxm/ccd230af-3441-4ace-9c4b-68f8d708183e/imagenet1.png", "edit_type": "ImageNet style transfer - Watercolor art", "n_test_step": 12, "manipulation": "ImageNet style transfer", "degree_of_change": 1 }
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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", { input: { image: "https://replicate.delivery/mgxm/ccd230af-3441-4ace-9c4b-68f8d708183e/imagenet1.png", edit_type: "ImageNet style transfer - Watercolor art", n_test_step: 12, manipulation: "ImageNet style transfer", degree_of_change: 1 } } ); // 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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", input={ "image": "https://replicate.delivery/mgxm/ccd230af-3441-4ace-9c4b-68f8d708183e/imagenet1.png", "edit_type": "ImageNet style transfer - Watercolor art", "n_test_step": 12, "manipulation": "ImageNet style transfer", "degree_of_change": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run gwang-kim/diffusionclip 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": "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", "input": { "image": "https://replicate.delivery/mgxm/ccd230af-3441-4ace-9c4b-68f8d708183e/imagenet1.png", "edit_type": "ImageNet style transfer - Watercolor art", "n_test_step": 12, "manipulation": "ImageNet style transfer", "degree_of_change": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T14:44:23.794700Z", "created_at": "2022-08-09T14:43:09.416854Z", "data_removed": false, "error": null, "id": "yrqhsvj6fnhsdhokuutdcc7opu", "input": { "image": "https://replicate.delivery/mgxm/ccd230af-3441-4ace-9c4b-68f8d708183e/imagenet1.png", "edit_type": "ImageNet style transfer - Watercolor art", "n_test_step": 12, "manipulation": "ImageNet style transfer", "degree_of_change": 1 }, "logs": "None is loaded.\ncheckpoint/imagenet_watercolor_t601.pth is loaded.\n\nInversion process : 0%| | 0/40 [00:00<?, ?it/s]\nInversion process : 2%|▎ | 1/40 [00:00<00:34, 1.14it/s]\nInversion process : 5%|▌ | 2/40 [00:01<00:34, 1.12it/s]\nInversion process : 8%|▊ | 3/40 [00:02<00:33, 1.12it/s]\nInversion process : 10%|█ | 4/40 [00:03<00:32, 1.11it/s]\nInversion process : 12%|█▎ | 5/40 [00:04<00:31, 1.10it/s]\nInversion process : 15%|█▌ | 6/40 [00:05<00:30, 1.10it/s]\nInversion process : 18%|█▊ | 7/40 [00:06<00:29, 1.10it/s]\nInversion process : 20%|██ | 8/40 [00:07<00:29, 1.10it/s]\nInversion process : 22%|██▎ | 9/40 [00:08<00:28, 1.10it/s]\nInversion process : 25%|██▌ | 10/40 [00:09<00:27, 1.10it/s]\nInversion process : 28%|██▊ | 11/40 [00:09<00:26, 1.10it/s]\nInversion process : 30%|███ | 12/40 [00:10<00:25, 1.10it/s]\nInversion process : 32%|███▎ | 13/40 [00:11<00:24, 1.10it/s]\nInversion process : 35%|███▌ | 14/40 [00:12<00:23, 1.10it/s]\nInversion process : 38%|███▊ | 15/40 [00:13<00:22, 1.09it/s]\nInversion process : 40%|████ | 16/40 [00:14<00:21, 1.09it/s]\nInversion process : 42%|████▎ | 17/40 [00:15<00:21, 1.09it/s]\nInversion process : 45%|████▌ | 18/40 [00:16<00:20, 1.09it/s]\nInversion process : 48%|████▊ | 19/40 [00:17<00:19, 1.08it/s]\nInversion process : 50%|█████ | 20/40 [00:18<00:18, 1.08it/s]\nInversion process : 52%|█████▎ | 21/40 [00:19<00:17, 1.08it/s]\nInversion process : 55%|█████▌ | 22/40 [00:20<00:16, 1.08it/s]\nInversion process : 57%|█████▊ | 23/40 [00:21<00:15, 1.07it/s]\nInversion process : 60%|██████ | 24/40 [00:21<00:14, 1.07it/s]\nInversion process : 62%|██████▎ | 25/40 [00:22<00:14, 1.06it/s]\nInversion process : 65%|██████▌ | 26/40 [00:23<00:13, 1.06it/s]\nInversion process : 68%|██████▊ | 27/40 [00:24<00:12, 1.06it/s]\nInversion process : 70%|███████ | 28/40 [00:25<00:11, 1.05it/s]\nInversion process : 72%|███████▎ | 29/40 [00:26<00:10, 1.05it/s]\nInversion process : 75%|███████▌ | 30/40 [00:27<00:09, 1.05it/s]\nInversion process : 78%|███████▊ | 31/40 [00:28<00:08, 1.05it/s]\nInversion process : 80%|████████ | 32/40 [00:29<00:07, 1.04it/s]\nInversion process : 82%|████████▎ | 33/40 [00:30<00:06, 1.04it/s]\nInversion process : 85%|████████▌ | 34/40 [00:31<00:05, 1.03it/s]\nInversion process : 88%|████████▊ | 35/40 [00:32<00:04, 1.03it/s]\nInversion process : 90%|█████████ | 36/40 [00:33<00:03, 1.02it/s]\nInversion process : 92%|█████████▎| 37/40 [00:34<00:02, 1.02it/s]\nInversion process : 95%|█████████▌| 38/40 [00:35<00:01, 1.01it/s]\nInversion process : 98%|█████████▊| 39/40 [00:36<00:00, 1.01it/s]\nInversion process : 98%|█████████▊| 39/40 [00:36<00:00, 1.07it/s]\nSampling type: DDIM with eta 0.0, Steps: 12/601\nUniform skip type\n\nGenerative process 0: 0%| | 0/12 [00:00<?, ?it/s]\nGenerative process 0: 8%|▊ | 1/12 [00:00<00:10, 1.01it/s]\nGenerative process 0: 17%|█▋ | 2/12 [00:01<00:09, 1.01it/s]\nGenerative process 0: 25%|██▌ | 3/12 [00:02<00:08, 1.01it/s]\nGenerative process 0: 33%|███▎ | 4/12 [00:03<00:07, 1.00it/s]\nGenerative process 0: 42%|████▏ | 5/12 [00:04<00:06, 1.00it/s]\nGenerative process 0: 50%|█████ | 6/12 [00:06<00:06, 1.01s/it]\nGenerative process 0: 58%|█████▊ | 7/12 [00:07<00:05, 1.01s/it]\nGenerative process 0: 67%|██████▋ | 8/12 [00:08<00:04, 1.01s/it]\nGenerative process 0: 75%|███████▌ | 9/12 [00:09<00:03, 1.01s/it]\nGenerative process 0: 83%|████████▎ | 10/12 [00:10<00:02, 1.01s/it]\nGenerative process 0: 92%|█████████▏| 11/12 [00:11<00:01, 1.02s/it]\nGenerative process 0: 100%|██████████| 12/12 [00:12<00:00, 1.03s/it]\nGenerative process 0: 100%|██████████| 12/12 [00:12<00:00, 1.01s/it]", "metrics": { "predict_time": 74.219144, "total_time": 74.377846 }, "output": "https://replicate.delivery/mgxm/76f197d2-1594-4a64-89fe-788d3d441cea/output.png", "started_at": "2022-08-09T14:43:09.575556Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/yrqhsvj6fnhsdhokuutdcc7opu", "cancel": "https://api.replicate.com/v1/predictions/yrqhsvj6fnhsdhokuutdcc7opu/cancel" }, "version": "58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1" }
Generated inNone is loaded. checkpoint/imagenet_watercolor_t601.pth is loaded. Inversion process : 0%| | 0/40 [00:00<?, ?it/s] Inversion process : 2%|▎ | 1/40 [00:00<00:34, 1.14it/s] Inversion process : 5%|▌ | 2/40 [00:01<00:34, 1.12it/s] Inversion process : 8%|▊ | 3/40 [00:02<00:33, 1.12it/s] Inversion process : 10%|█ | 4/40 [00:03<00:32, 1.11it/s] Inversion process : 12%|█▎ | 5/40 [00:04<00:31, 1.10it/s] Inversion process : 15%|█▌ | 6/40 [00:05<00:30, 1.10it/s] Inversion process : 18%|█▊ | 7/40 [00:06<00:29, 1.10it/s] Inversion process : 20%|██ | 8/40 [00:07<00:29, 1.10it/s] Inversion process : 22%|██▎ | 9/40 [00:08<00:28, 1.10it/s] Inversion process : 25%|██▌ | 10/40 [00:09<00:27, 1.10it/s] Inversion process : 28%|██▊ | 11/40 [00:09<00:26, 1.10it/s] Inversion process : 30%|███ | 12/40 [00:10<00:25, 1.10it/s] Inversion process : 32%|███▎ | 13/40 [00:11<00:24, 1.10it/s] Inversion process : 35%|███▌ | 14/40 [00:12<00:23, 1.10it/s] Inversion process : 38%|███▊ | 15/40 [00:13<00:22, 1.09it/s] Inversion process : 40%|████ | 16/40 [00:14<00:21, 1.09it/s] Inversion process : 42%|████▎ | 17/40 [00:15<00:21, 1.09it/s] Inversion process : 45%|████▌ | 18/40 [00:16<00:20, 1.09it/s] Inversion process : 48%|████▊ | 19/40 [00:17<00:19, 1.08it/s] Inversion process : 50%|█████ | 20/40 [00:18<00:18, 1.08it/s] Inversion process : 52%|█████▎ | 21/40 [00:19<00:17, 1.08it/s] Inversion process : 55%|█████▌ | 22/40 [00:20<00:16, 1.08it/s] Inversion process : 57%|█████▊ | 23/40 [00:21<00:15, 1.07it/s] Inversion process : 60%|██████ | 24/40 [00:21<00:14, 1.07it/s] Inversion process : 62%|██████▎ | 25/40 [00:22<00:14, 1.06it/s] Inversion process : 65%|██████▌ | 26/40 [00:23<00:13, 1.06it/s] Inversion process : 68%|██████▊ | 27/40 [00:24<00:12, 1.06it/s] Inversion process : 70%|███████ | 28/40 [00:25<00:11, 1.05it/s] Inversion process : 72%|███████▎ | 29/40 [00:26<00:10, 1.05it/s] Inversion process : 75%|███████▌ | 30/40 [00:27<00:09, 1.05it/s] Inversion process : 78%|███████▊ | 31/40 [00:28<00:08, 1.05it/s] Inversion process : 80%|████████ | 32/40 [00:29<00:07, 1.04it/s] Inversion process : 82%|████████▎ | 33/40 [00:30<00:06, 1.04it/s] Inversion process : 85%|████████▌ | 34/40 [00:31<00:05, 1.03it/s] Inversion process : 88%|████████▊ | 35/40 [00:32<00:04, 1.03it/s] Inversion process : 90%|█████████ | 36/40 [00:33<00:03, 1.02it/s] Inversion process : 92%|█████████▎| 37/40 [00:34<00:02, 1.02it/s] Inversion process : 95%|█████████▌| 38/40 [00:35<00:01, 1.01it/s] Inversion process : 98%|█████████▊| 39/40 [00:36<00:00, 1.01it/s] Inversion process : 98%|█████████▊| 39/40 [00:36<00:00, 1.07it/s] Sampling type: DDIM with eta 0.0, Steps: 12/601 Uniform skip type Generative process 0: 0%| | 0/12 [00:00<?, ?it/s] Generative process 0: 8%|▊ | 1/12 [00:00<00:10, 1.01it/s] Generative process 0: 17%|█▋ | 2/12 [00:01<00:09, 1.01it/s] Generative process 0: 25%|██▌ | 3/12 [00:02<00:08, 1.01it/s] Generative process 0: 33%|███▎ | 4/12 [00:03<00:07, 1.00it/s] Generative process 0: 42%|████▏ | 5/12 [00:04<00:06, 1.00it/s] Generative process 0: 50%|█████ | 6/12 [00:06<00:06, 1.01s/it] Generative process 0: 58%|█████▊ | 7/12 [00:07<00:05, 1.01s/it] Generative process 0: 67%|██████▋ | 8/12 [00:08<00:04, 1.01s/it] Generative process 0: 75%|███████▌ | 9/12 [00:09<00:03, 1.01s/it] Generative process 0: 83%|████████▎ | 10/12 [00:10<00:02, 1.01s/it] Generative process 0: 92%|█████████▏| 11/12 [00:11<00:01, 1.02s/it] Generative process 0: 100%|██████████| 12/12 [00:12<00:00, 1.03s/it] Generative process 0: 100%|██████████| 12/12 [00:12<00:00, 1.01s/it]
Prediction
gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1IDgudt5etdnzbblcivxqhc6mppjmStatusSucceededSourceWebHardware–Total durationCreatedInput
- edit_type
- Dog face manipulation - Bear
- n_test_step
- "40"
- manipulation
- Dog face manipulation
- degree_of_change
- 1
{ "image": "https://replicate.delivery/mgxm/24ca9517-9d26-4fd6-a09a-6b01ceda8104/dog1.png", "edit_type": "Dog face manipulation - Bear", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 }
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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", { input: { image: "https://replicate.delivery/mgxm/24ca9517-9d26-4fd6-a09a-6b01ceda8104/dog1.png", edit_type: "Dog face manipulation - Bear", n_test_step: "40", manipulation: "Dog face manipulation", degree_of_change: 1 } } ); // 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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", input={ "image": "https://replicate.delivery/mgxm/24ca9517-9d26-4fd6-a09a-6b01ceda8104/dog1.png", "edit_type": "Dog face manipulation - Bear", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run gwang-kim/diffusionclip 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": "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", "input": { "image": "https://replicate.delivery/mgxm/24ca9517-9d26-4fd6-a09a-6b01ceda8104/dog1.png", "edit_type": "Dog face manipulation - Bear", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T14:47:41.080364Z", "created_at": "2022-08-09T14:47:27.109060Z", "data_removed": false, "error": null, "id": "gudt5etdnzbblcivxqhc6mppjm", "input": { "image": "https://replicate.delivery/mgxm/24ca9517-9d26-4fd6-a09a-6b01ceda8104/dog1.png", "edit_type": "Dog face manipulation - Bear", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 }, "logs": "None is loaded.\ncheckpoint/dog_bear_t500.pth is loaded.\n\nInversion process : 0%| | 0/40 [00:00<?, ?it/s]\nInversion process : 2%|▎ | 1/40 [00:00<00:05, 6.68it/s]\nInversion process : 5%|▌ | 2/40 [00:00<00:04, 8.18it/s]\nInversion process : 8%|▊ | 3/40 [00:00<00:04, 8.80it/s]\nInversion process : 10%|█ | 4/40 [00:00<00:03, 9.13it/s]\nInversion process : 12%|█▎ | 5/40 [00:00<00:03, 9.38it/s]\nInversion process : 15%|█▌ | 6/40 [00:00<00:03, 9.54it/s]\nInversion process : 18%|█▊ | 7/40 [00:00<00:03, 9.64it/s]\nInversion process : 20%|██ | 8/40 [00:00<00:03, 9.70it/s]\nInversion process : 22%|██▎ | 9/40 [00:00<00:03, 9.74it/s]\nInversion process : 25%|██▌ | 10/40 [00:01<00:03, 9.78it/s]\nInversion process : 28%|██▊ | 11/40 [00:01<00:02, 9.77it/s]\nInversion process : 30%|███ | 12/40 [00:01<00:02, 9.78it/s]\nInversion process : 32%|███▎ | 13/40 [00:01<00:02, 9.80it/s]\nInversion process : 35%|███▌ | 14/40 [00:01<00:02, 9.79it/s]\nInversion process : 38%|███▊ | 15/40 [00:01<00:02, 9.79it/s]\nInversion process : 40%|████ | 16/40 [00:01<00:02, 9.80it/s]\nInversion process : 42%|████▎ | 17/40 [00:01<00:02, 9.81it/s]\nInversion process : 45%|████▌ | 18/40 [00:01<00:02, 9.84it/s]\nInversion process : 48%|████▊ | 19/40 [00:01<00:02, 9.84it/s]\nInversion process : 50%|█████ | 20/40 [00:02<00:02, 9.85it/s]\nInversion process : 52%|█████▎ | 21/40 [00:02<00:01, 9.85it/s]\nInversion process : 55%|█████▌ | 22/40 [00:02<00:01, 9.84it/s]\nInversion process : 57%|█████▊ | 23/40 [00:02<00:01, 9.84it/s]\nInversion process : 60%|██████ | 24/40 [00:02<00:01, 9.84it/s]\nInversion process : 62%|██████▎ | 25/40 [00:02<00:01, 9.84it/s]\nInversion process : 65%|██████▌ | 26/40 [00:02<00:01, 9.85it/s]\nInversion process : 68%|██████▊ | 27/40 [00:02<00:01, 9.85it/s]\nInversion process : 70%|███████ | 28/40 [00:02<00:01, 9.84it/s]\nInversion process : 72%|███████▎ | 29/40 [00:03<00:01, 9.87it/s]\nInversion process : 75%|███████▌ | 30/40 [00:03<00:01, 9.86it/s]\nInversion process : 78%|███████▊ | 31/40 [00:03<00:00, 9.84it/s]\nInversion process : 80%|████████ | 32/40 [00:03<00:00, 9.85it/s]\nInversion process : 82%|████████▎ | 33/40 [00:03<00:00, 9.85it/s]\nInversion process : 85%|████████▌ | 34/40 [00:03<00:00, 9.83it/s]\nInversion process : 88%|████████▊ | 35/40 [00:03<00:00, 9.86it/s]\nInversion process : 90%|█████████ | 36/40 [00:03<00:00, 9.85it/s]\nInversion process : 92%|█████████▎| 37/40 [00:03<00:00, 9.85it/s]\nInversion process : 95%|█████████▌| 38/40 [00:03<00:00, 9.84it/s]\nInversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.86it/s]\nInversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.71it/s]\nSampling type: DDIM with eta 0.0, Steps: 40/500\nUniform skip type\n\nGenerative process 0: 0%| | 0/40 [00:00<?, ?it/s]\nGenerative process 0: 5%|▌ | 2/40 [00:00<00:03, 10.21it/s]\nGenerative process 0: 10%|█ | 4/40 [00:00<00:03, 9.98it/s]\nGenerative process 0: 12%|█▎ | 5/40 [00:00<00:03, 9.95it/s]\nGenerative process 0: 15%|█▌ | 6/40 [00:00<00:03, 9.92it/s]\nGenerative process 0: 18%|█▊ | 7/40 [00:00<00:03, 9.86it/s]\nGenerative process 0: 20%|██ | 8/40 [00:00<00:03, 9.82it/s]\nGenerative process 0: 22%|██▎ | 9/40 [00:00<00:03, 9.78it/s]\nGenerative process 0: 25%|██▌ | 10/40 [00:01<00:03, 9.73it/s]\nGenerative process 0: 28%|██▊ | 11/40 [00:01<00:02, 9.69it/s]\nGenerative process 0: 30%|███ | 12/40 [00:01<00:02, 9.69it/s]\nGenerative process 0: 32%|███▎ | 13/40 [00:01<00:02, 9.71it/s]\nGenerative process 0: 35%|███▌ | 14/40 [00:01<00:02, 9.70it/s]\nGenerative process 0: 38%|███▊ | 15/40 [00:01<00:02, 9.71it/s]\nGenerative process 0: 40%|████ | 16/40 [00:01<00:02, 9.72it/s]\nGenerative process 0: 42%|████▎ | 17/40 [00:01<00:02, 9.77it/s]\nGenerative process 0: 45%|████▌ | 18/40 [00:01<00:02, 9.77it/s]\nGenerative process 0: 48%|████▊ | 19/40 [00:01<00:02, 9.79it/s]\nGenerative process 0: 50%|█████ | 20/40 [00:02<00:02, 9.81it/s]\nGenerative process 0: 52%|█████▎ | 21/40 [00:02<00:01, 9.80it/s]\nGenerative process 0: 55%|█████▌ | 22/40 [00:02<00:01, 9.77it/s]\nGenerative process 0: 57%|█████▊ | 23/40 [00:02<00:01, 9.75it/s]\nGenerative process 0: 60%|██████ | 24/40 [00:02<00:01, 9.74it/s]\nGenerative process 0: 62%|██████▎ | 25/40 [00:02<00:01, 9.67it/s]\nGenerative process 0: 65%|██████▌ | 26/40 [00:02<00:01, 9.67it/s]\nGenerative process 0: 68%|██████▊ | 27/40 [00:02<00:01, 9.67it/s]\nGenerative process 0: 70%|███████ | 28/40 [00:02<00:01, 9.69it/s]\nGenerative process 0: 72%|███████▎ | 29/40 [00:02<00:01, 9.64it/s]\nGenerative process 0: 75%|███████▌ | 30/40 [00:03<00:01, 9.67it/s]\nGenerative process 0: 78%|███████▊ | 31/40 [00:03<00:00, 9.70it/s]\nGenerative process 0: 80%|████████ | 32/40 [00:03<00:00, 9.73it/s]\nGenerative process 0: 82%|████████▎ | 33/40 [00:03<00:00, 9.78it/s]\nGenerative process 0: 85%|████████▌ | 34/40 [00:03<00:00, 9.75it/s]\nGenerative process 0: 88%|████████▊ | 35/40 [00:03<00:00, 9.73it/s]\nGenerative process 0: 90%|█████████ | 36/40 [00:03<00:00, 9.72it/s]\nGenerative process 0: 92%|█████████▎| 37/40 [00:03<00:00, 9.66it/s]\nGenerative process 0: 95%|█████████▌| 38/40 [00:03<00:00, 9.63it/s]\nGenerative process 0: 98%|█████████▊| 39/40 [00:04<00:00, 9.64it/s]\nGenerative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.64it/s]\nGenerative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.74it/s]", "metrics": { "predict_time": 13.762829, "total_time": 13.971304 }, "output": "https://replicate.delivery/mgxm/7c7607cf-d745-4362-b1cb-91f6f1c9125b/output.png", "started_at": "2022-08-09T14:47:27.317535Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gudt5etdnzbblcivxqhc6mppjm", "cancel": "https://api.replicate.com/v1/predictions/gudt5etdnzbblcivxqhc6mppjm/cancel" }, "version": "58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1" }
Generated inNone is loaded. checkpoint/dog_bear_t500.pth is loaded. Inversion process : 0%| | 0/40 [00:00<?, ?it/s] Inversion process : 2%|▎ | 1/40 [00:00<00:05, 6.68it/s] Inversion process : 5%|▌ | 2/40 [00:00<00:04, 8.18it/s] Inversion process : 8%|▊ | 3/40 [00:00<00:04, 8.80it/s] Inversion process : 10%|█ | 4/40 [00:00<00:03, 9.13it/s] Inversion process : 12%|█▎ | 5/40 [00:00<00:03, 9.38it/s] Inversion process : 15%|█▌ | 6/40 [00:00<00:03, 9.54it/s] Inversion process : 18%|█▊ | 7/40 [00:00<00:03, 9.64it/s] Inversion process : 20%|██ | 8/40 [00:00<00:03, 9.70it/s] Inversion process : 22%|██▎ | 9/40 [00:00<00:03, 9.74it/s] Inversion process : 25%|██▌ | 10/40 [00:01<00:03, 9.78it/s] Inversion process : 28%|██▊ | 11/40 [00:01<00:02, 9.77it/s] Inversion process : 30%|███ | 12/40 [00:01<00:02, 9.78it/s] Inversion process : 32%|███▎ | 13/40 [00:01<00:02, 9.80it/s] Inversion process : 35%|███▌ | 14/40 [00:01<00:02, 9.79it/s] Inversion process : 38%|███▊ | 15/40 [00:01<00:02, 9.79it/s] Inversion process : 40%|████ | 16/40 [00:01<00:02, 9.80it/s] Inversion process : 42%|████▎ | 17/40 [00:01<00:02, 9.81it/s] Inversion process : 45%|████▌ | 18/40 [00:01<00:02, 9.84it/s] Inversion process : 48%|████▊ | 19/40 [00:01<00:02, 9.84it/s] Inversion process : 50%|█████ | 20/40 [00:02<00:02, 9.85it/s] Inversion process : 52%|█████▎ | 21/40 [00:02<00:01, 9.85it/s] Inversion process : 55%|█████▌ | 22/40 [00:02<00:01, 9.84it/s] Inversion process : 57%|█████▊ | 23/40 [00:02<00:01, 9.84it/s] Inversion process : 60%|██████ | 24/40 [00:02<00:01, 9.84it/s] Inversion process : 62%|██████▎ | 25/40 [00:02<00:01, 9.84it/s] Inversion process : 65%|██████▌ | 26/40 [00:02<00:01, 9.85it/s] Inversion process : 68%|██████▊ | 27/40 [00:02<00:01, 9.85it/s] Inversion process : 70%|███████ | 28/40 [00:02<00:01, 9.84it/s] Inversion process : 72%|███████▎ | 29/40 [00:03<00:01, 9.87it/s] Inversion process : 75%|███████▌ | 30/40 [00:03<00:01, 9.86it/s] Inversion process : 78%|███████▊ | 31/40 [00:03<00:00, 9.84it/s] Inversion process : 80%|████████ | 32/40 [00:03<00:00, 9.85it/s] Inversion process : 82%|████████▎ | 33/40 [00:03<00:00, 9.85it/s] Inversion process : 85%|████████▌ | 34/40 [00:03<00:00, 9.83it/s] Inversion process : 88%|████████▊ | 35/40 [00:03<00:00, 9.86it/s] Inversion process : 90%|█████████ | 36/40 [00:03<00:00, 9.85it/s] Inversion process : 92%|█████████▎| 37/40 [00:03<00:00, 9.85it/s] Inversion process : 95%|█████████▌| 38/40 [00:03<00:00, 9.84it/s] Inversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.86it/s] Inversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.71it/s] Sampling type: DDIM with eta 0.0, Steps: 40/500 Uniform skip type Generative process 0: 0%| | 0/40 [00:00<?, ?it/s] Generative process 0: 5%|▌ | 2/40 [00:00<00:03, 10.21it/s] Generative process 0: 10%|█ | 4/40 [00:00<00:03, 9.98it/s] Generative process 0: 12%|█▎ | 5/40 [00:00<00:03, 9.95it/s] Generative process 0: 15%|█▌ | 6/40 [00:00<00:03, 9.92it/s] Generative process 0: 18%|█▊ | 7/40 [00:00<00:03, 9.86it/s] Generative process 0: 20%|██ | 8/40 [00:00<00:03, 9.82it/s] Generative process 0: 22%|██▎ | 9/40 [00:00<00:03, 9.78it/s] Generative process 0: 25%|██▌ | 10/40 [00:01<00:03, 9.73it/s] Generative process 0: 28%|██▊ | 11/40 [00:01<00:02, 9.69it/s] Generative process 0: 30%|███ | 12/40 [00:01<00:02, 9.69it/s] Generative process 0: 32%|███▎ | 13/40 [00:01<00:02, 9.71it/s] Generative process 0: 35%|███▌ | 14/40 [00:01<00:02, 9.70it/s] Generative process 0: 38%|███▊ | 15/40 [00:01<00:02, 9.71it/s] Generative process 0: 40%|████ | 16/40 [00:01<00:02, 9.72it/s] Generative process 0: 42%|████▎ | 17/40 [00:01<00:02, 9.77it/s] Generative process 0: 45%|████▌ | 18/40 [00:01<00:02, 9.77it/s] Generative process 0: 48%|████▊ | 19/40 [00:01<00:02, 9.79it/s] Generative process 0: 50%|█████ | 20/40 [00:02<00:02, 9.81it/s] Generative process 0: 52%|█████▎ | 21/40 [00:02<00:01, 9.80it/s] Generative process 0: 55%|█████▌ | 22/40 [00:02<00:01, 9.77it/s] Generative process 0: 57%|█████▊ | 23/40 [00:02<00:01, 9.75it/s] Generative process 0: 60%|██████ | 24/40 [00:02<00:01, 9.74it/s] Generative process 0: 62%|██████▎ | 25/40 [00:02<00:01, 9.67it/s] Generative process 0: 65%|██████▌ | 26/40 [00:02<00:01, 9.67it/s] Generative process 0: 68%|██████▊ | 27/40 [00:02<00:01, 9.67it/s] Generative process 0: 70%|███████ | 28/40 [00:02<00:01, 9.69it/s] Generative process 0: 72%|███████▎ | 29/40 [00:02<00:01, 9.64it/s] Generative process 0: 75%|███████▌ | 30/40 [00:03<00:01, 9.67it/s] Generative process 0: 78%|███████▊ | 31/40 [00:03<00:00, 9.70it/s] Generative process 0: 80%|████████ | 32/40 [00:03<00:00, 9.73it/s] Generative process 0: 82%|████████▎ | 33/40 [00:03<00:00, 9.78it/s] Generative process 0: 85%|████████▌ | 34/40 [00:03<00:00, 9.75it/s] Generative process 0: 88%|████████▊ | 35/40 [00:03<00:00, 9.73it/s] Generative process 0: 90%|█████████ | 36/40 [00:03<00:00, 9.72it/s] Generative process 0: 92%|█████████▎| 37/40 [00:03<00:00, 9.66it/s] Generative process 0: 95%|█████████▌| 38/40 [00:03<00:00, 9.63it/s] Generative process 0: 98%|█████████▊| 39/40 [00:04<00:00, 9.64it/s] Generative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.64it/s] Generative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.74it/s]
Prediction
gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1IDykrkmeomkze3bnrspmun5y2hxiStatusSucceededSourceWebHardware–Total durationCreatedInput
- edit_type
- ImageNet style transfer - Painting by Gogh
- n_test_step
- 12
- manipulation
- ImageNet style transfer
- degree_of_change
- 1
{ "image": "https://replicate.delivery/mgxm/092823f1-bde6-47c8-aa5a-2850beccc0b6/imagenet1.png", "edit_type": "ImageNet style transfer - Painting by Gogh", "n_test_step": 12, "manipulation": "ImageNet style transfer", "degree_of_change": 1 }
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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", { input: { image: "https://replicate.delivery/mgxm/092823f1-bde6-47c8-aa5a-2850beccc0b6/imagenet1.png", edit_type: "ImageNet style transfer - Painting by Gogh", n_test_step: 12, manipulation: "ImageNet style transfer", degree_of_change: 1 } } ); // 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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", input={ "image": "https://replicate.delivery/mgxm/092823f1-bde6-47c8-aa5a-2850beccc0b6/imagenet1.png", "edit_type": "ImageNet style transfer - Painting by Gogh", "n_test_step": 12, "manipulation": "ImageNet style transfer", "degree_of_change": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run gwang-kim/diffusionclip 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": "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", "input": { "image": "https://replicate.delivery/mgxm/092823f1-bde6-47c8-aa5a-2850beccc0b6/imagenet1.png", "edit_type": "ImageNet style transfer - Painting by Gogh", "n_test_step": 12, "manipulation": "ImageNet style transfer", "degree_of_change": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T14:46:48.739682Z", "created_at": "2022-08-09T14:44:45.913524Z", "data_removed": false, "error": null, "id": "ykrkmeomkze3bnrspmun5y2hxi", "input": { "image": "https://replicate.delivery/mgxm/092823f1-bde6-47c8-aa5a-2850beccc0b6/imagenet1.png", "edit_type": "ImageNet style transfer - Painting by Gogh", "n_test_step": 12, "manipulation": "ImageNet style transfer", "degree_of_change": 1 }, "logs": "None is loaded.\ncheckpoint/imagenet_gogh_t601.pth is loaded.\n\nInversion process : 0%| | 0/40 [00:00<?, ?it/s]\nInversion process : 2%|▎ | 1/40 [00:00<00:35, 1.10it/s]\nInversion process : 5%|▌ | 2/40 [00:01<00:34, 1.11it/s]\nInversion process : 8%|▊ | 3/40 [00:02<00:33, 1.10it/s]\nInversion process : 10%|█ | 4/40 [00:03<00:32, 1.09it/s]\nInversion process : 12%|█▎ | 5/40 [00:04<00:31, 1.09it/s]\nInversion process : 15%|█▌ | 6/40 [00:05<00:31, 1.09it/s]\nInversion process : 18%|█▊ | 7/40 [00:06<00:30, 1.09it/s]\nInversion process : 20%|██ | 8/40 [00:07<00:29, 1.09it/s]\nInversion process : 22%|██▎ | 9/40 [00:08<00:28, 1.08it/s]\nInversion process : 25%|██▌ | 10/40 [00:09<00:27, 1.07it/s]\nInversion process : 28%|██▊ | 11/40 [00:10<00:27, 1.07it/s]\nInversion process : 30%|███ | 12/40 [00:11<00:26, 1.07it/s]\nInversion process : 32%|███▎ | 13/40 [00:12<00:25, 1.06it/s]\nInversion process : 35%|███▌ | 14/40 [00:13<00:24, 1.05it/s]\nInversion process : 38%|███▊ | 15/40 [00:13<00:23, 1.05it/s]\nInversion process : 40%|████ | 16/40 [00:14<00:22, 1.05it/s]\nInversion process : 42%|████▎ | 17/40 [00:15<00:22, 1.04it/s]\nInversion process : 45%|████▌ | 18/40 [00:16<00:21, 1.04it/s]\nInversion process : 48%|████▊ | 19/40 [00:17<00:20, 1.03it/s]\nInversion process : 50%|█████ | 20/40 [00:18<00:19, 1.02it/s]\nInversion process : 52%|█████▎ | 21/40 [00:19<00:18, 1.02it/s]\nInversion process : 55%|█████▌ | 22/40 [00:20<00:17, 1.02it/s]\nInversion process : 57%|█████▊ | 23/40 [00:21<00:16, 1.01it/s]\nInversion process : 60%|██████ | 24/40 [00:22<00:15, 1.01it/s]\nInversion process : 62%|██████▎ | 25/40 [00:23<00:14, 1.00it/s]\nInversion process : 65%|██████▌ | 26/40 [00:24<00:13, 1.00it/s]\nInversion process : 68%|██████▊ | 27/40 [00:25<00:13, 1.01s/it]\nInversion process : 70%|███████ | 28/40 [00:26<00:12, 1.01s/it]\nInversion process : 72%|███████▎ | 29/40 [00:27<00:11, 1.01s/it]\nInversion process : 75%|███████▌ | 30/40 [00:28<00:10, 1.02s/it]\nInversion process : 78%|███████▊ | 31/40 [00:29<00:09, 1.02s/it]\nInversion process : 80%|████████ | 32/40 [00:30<00:08, 1.02s/it]\nInversion process : 82%|████████▎ | 33/40 [00:31<00:07, 1.02s/it]\nInversion process : 85%|████████▌ | 34/40 [00:33<00:06, 1.03s/it]\nInversion process : 88%|████████▊ | 35/40 [00:34<00:05, 1.03s/it]\nInversion process : 90%|█████████ | 36/40 [00:35<00:04, 1.04s/it]\nInversion process : 92%|█████████▎| 37/40 [00:36<00:03, 1.04s/it]\nInversion process : 95%|█████████▌| 38/40 [00:37<00:02, 1.04s/it]\nInversion process : 98%|█████████▊| 39/40 [00:38<00:01, 1.05s/it]\nInversion process : 98%|█████████▊| 39/40 [00:38<00:00, 1.02it/s]\nSampling type: DDIM with eta 0.0, Steps: 12/601\nUniform skip type\n\nGenerative process 0: 0%| | 0/12 [00:00<?, ?it/s]\nGenerative process 0: 8%|▊ | 1/12 [00:01<00:11, 1.06s/it]\nGenerative process 0: 17%|█▋ | 2/12 [00:02<00:10, 1.05s/it]\nGenerative process 0: 25%|██▌ | 3/12 [00:03<00:09, 1.05s/it]\nGenerative process 0: 33%|███▎ | 4/12 [00:04<00:08, 1.05s/it]\nGenerative process 0: 42%|████▏ | 5/12 [00:05<00:07, 1.04s/it]\nGenerative process 0: 50%|█████ | 6/12 [00:06<00:06, 1.04s/it]\nGenerative process 0: 58%|█████▊ | 7/12 [00:07<00:05, 1.04s/it]\nGenerative process 0: 67%|██████▋ | 8/12 [00:08<00:04, 1.03s/it]\nGenerative process 0: 75%|███████▌ | 9/12 [00:09<00:03, 1.02s/it]\nGenerative process 0: 83%|████████▎ | 10/12 [00:10<00:02, 1.02s/it]\nGenerative process 0: 92%|█████████▏| 11/12 [00:11<00:01, 1.02s/it]\nGenerative process 0: 100%|██████████| 12/12 [00:12<00:00, 1.01s/it]\nGenerative process 0: 100%|██████████| 12/12 [00:12<00:00, 1.03s/it]", "metrics": { "predict_time": 68.67014, "total_time": 122.826158 }, "output": "https://replicate.delivery/mgxm/ef566553-4d84-4369-8de2-6399a20086f6/output.png", "started_at": "2022-08-09T14:45:40.069542Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ykrkmeomkze3bnrspmun5y2hxi", "cancel": "https://api.replicate.com/v1/predictions/ykrkmeomkze3bnrspmun5y2hxi/cancel" }, "version": "58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1" }
Generated inNone is loaded. checkpoint/imagenet_gogh_t601.pth is loaded. Inversion process : 0%| | 0/40 [00:00<?, ?it/s] Inversion process : 2%|▎ | 1/40 [00:00<00:35, 1.10it/s] Inversion process : 5%|▌ | 2/40 [00:01<00:34, 1.11it/s] Inversion process : 8%|▊ | 3/40 [00:02<00:33, 1.10it/s] Inversion process : 10%|█ | 4/40 [00:03<00:32, 1.09it/s] Inversion process : 12%|█▎ | 5/40 [00:04<00:31, 1.09it/s] Inversion process : 15%|█▌ | 6/40 [00:05<00:31, 1.09it/s] Inversion process : 18%|█▊ | 7/40 [00:06<00:30, 1.09it/s] Inversion process : 20%|██ | 8/40 [00:07<00:29, 1.09it/s] Inversion process : 22%|██▎ | 9/40 [00:08<00:28, 1.08it/s] Inversion process : 25%|██▌ | 10/40 [00:09<00:27, 1.07it/s] Inversion process : 28%|██▊ | 11/40 [00:10<00:27, 1.07it/s] Inversion process : 30%|███ | 12/40 [00:11<00:26, 1.07it/s] Inversion process : 32%|███▎ | 13/40 [00:12<00:25, 1.06it/s] Inversion process : 35%|███▌ | 14/40 [00:13<00:24, 1.05it/s] Inversion process : 38%|███▊ | 15/40 [00:13<00:23, 1.05it/s] Inversion process : 40%|████ | 16/40 [00:14<00:22, 1.05it/s] Inversion process : 42%|████▎ | 17/40 [00:15<00:22, 1.04it/s] Inversion process : 45%|████▌ | 18/40 [00:16<00:21, 1.04it/s] Inversion process : 48%|████▊ | 19/40 [00:17<00:20, 1.03it/s] Inversion process : 50%|█████ | 20/40 [00:18<00:19, 1.02it/s] Inversion process : 52%|█████▎ | 21/40 [00:19<00:18, 1.02it/s] Inversion process : 55%|█████▌ | 22/40 [00:20<00:17, 1.02it/s] Inversion process : 57%|█████▊ | 23/40 [00:21<00:16, 1.01it/s] Inversion process : 60%|██████ | 24/40 [00:22<00:15, 1.01it/s] Inversion process : 62%|██████▎ | 25/40 [00:23<00:14, 1.00it/s] Inversion process : 65%|██████▌ | 26/40 [00:24<00:13, 1.00it/s] Inversion process : 68%|██████▊ | 27/40 [00:25<00:13, 1.01s/it] Inversion process : 70%|███████ | 28/40 [00:26<00:12, 1.01s/it] Inversion process : 72%|███████▎ | 29/40 [00:27<00:11, 1.01s/it] Inversion process : 75%|███████▌ | 30/40 [00:28<00:10, 1.02s/it] Inversion process : 78%|███████▊ | 31/40 [00:29<00:09, 1.02s/it] Inversion process : 80%|████████ | 32/40 [00:30<00:08, 1.02s/it] Inversion process : 82%|████████▎ | 33/40 [00:31<00:07, 1.02s/it] Inversion process : 85%|████████▌ | 34/40 [00:33<00:06, 1.03s/it] Inversion process : 88%|████████▊ | 35/40 [00:34<00:05, 1.03s/it] Inversion process : 90%|█████████ | 36/40 [00:35<00:04, 1.04s/it] Inversion process : 92%|█████████▎| 37/40 [00:36<00:03, 1.04s/it] Inversion process : 95%|█████████▌| 38/40 [00:37<00:02, 1.04s/it] Inversion process : 98%|█████████▊| 39/40 [00:38<00:01, 1.05s/it] Inversion process : 98%|█████████▊| 39/40 [00:38<00:00, 1.02it/s] Sampling type: DDIM with eta 0.0, Steps: 12/601 Uniform skip type Generative process 0: 0%| | 0/12 [00:00<?, ?it/s] Generative process 0: 8%|▊ | 1/12 [00:01<00:11, 1.06s/it] Generative process 0: 17%|█▋ | 2/12 [00:02<00:10, 1.05s/it] Generative process 0: 25%|██▌ | 3/12 [00:03<00:09, 1.05s/it] Generative process 0: 33%|███▎ | 4/12 [00:04<00:08, 1.05s/it] Generative process 0: 42%|████▏ | 5/12 [00:05<00:07, 1.04s/it] Generative process 0: 50%|█████ | 6/12 [00:06<00:06, 1.04s/it] Generative process 0: 58%|█████▊ | 7/12 [00:07<00:05, 1.04s/it] Generative process 0: 67%|██████▋ | 8/12 [00:08<00:04, 1.03s/it] Generative process 0: 75%|███████▌ | 9/12 [00:09<00:03, 1.02s/it] Generative process 0: 83%|████████▎ | 10/12 [00:10<00:02, 1.02s/it] Generative process 0: 92%|█████████▏| 11/12 [00:11<00:01, 1.02s/it] Generative process 0: 100%|██████████| 12/12 [00:12<00:00, 1.01s/it] Generative process 0: 100%|██████████| 12/12 [00:12<00:00, 1.03s/it]
Prediction
gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1IDnj67nan7azacljwsk75zah6xfyStatusSucceededSourceWebHardware–Total durationCreatedInput
- edit_type
- Dog face manipulation - Zombie
- n_test_step
- "40"
- manipulation
- Dog face manipulation
- degree_of_change
- 1
{ "image": "https://replicate.delivery/mgxm/c5a11574-95e4-4deb-b951-280eed2ac5c0/dog1.png", "edit_type": "Dog face manipulation - Zombie", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 }
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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", { input: { image: "https://replicate.delivery/mgxm/c5a11574-95e4-4deb-b951-280eed2ac5c0/dog1.png", edit_type: "Dog face manipulation - Zombie", n_test_step: "40", manipulation: "Dog face manipulation", degree_of_change: 1 } } ); // 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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", input={ "image": "https://replicate.delivery/mgxm/c5a11574-95e4-4deb-b951-280eed2ac5c0/dog1.png", "edit_type": "Dog face manipulation - Zombie", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run gwang-kim/diffusionclip 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": "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", "input": { "image": "https://replicate.delivery/mgxm/c5a11574-95e4-4deb-b951-280eed2ac5c0/dog1.png", "edit_type": "Dog face manipulation - Zombie", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T14:48:30.125421Z", "created_at": "2022-08-09T14:48:16.123611Z", "data_removed": false, "error": null, "id": "nj67nan7azacljwsk75zah6xfy", "input": { "image": "https://replicate.delivery/mgxm/c5a11574-95e4-4deb-b951-280eed2ac5c0/dog1.png", "edit_type": "Dog face manipulation - Zombie", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 }, "logs": "None is loaded.\ncheckpoint/dog_zombie_t601.pth is loaded.\n\nInversion process : 0%| | 0/40 [00:00<?, ?it/s]\nInversion process : 2%|▎ | 1/40 [00:00<00:05, 7.46it/s]\nInversion process : 5%|▌ | 2/40 [00:00<00:04, 8.24it/s]\nInversion process : 8%|▊ | 3/40 [00:00<00:04, 8.71it/s]\nInversion process : 10%|█ | 4/40 [00:00<00:03, 9.05it/s]\nInversion process : 12%|█▎ | 5/40 [00:00<00:03, 9.21it/s]\nInversion process : 15%|█▌ | 6/40 [00:00<00:03, 9.36it/s]\nInversion process : 18%|█▊ | 7/40 [00:00<00:03, 9.47it/s]\nInversion process : 20%|██ | 8/40 [00:00<00:03, 9.54it/s]\nInversion process : 22%|██▎ | 9/40 [00:00<00:03, 9.60it/s]\nInversion process : 25%|██▌ | 10/40 [00:01<00:03, 9.64it/s]\nInversion process : 28%|██▊ | 11/40 [00:01<00:03, 9.66it/s]\nInversion process : 30%|███ | 12/40 [00:01<00:02, 9.66it/s]\nInversion process : 32%|███▎ | 13/40 [00:01<00:02, 9.66it/s]\nInversion process : 35%|███▌ | 14/40 [00:01<00:02, 9.60it/s]\nInversion process : 38%|███▊ | 15/40 [00:01<00:02, 9.45it/s]\nInversion process : 40%|████ | 16/40 [00:01<00:02, 9.51it/s]\nInversion process : 42%|████▎ | 17/40 [00:01<00:02, 9.57it/s]\nInversion process : 45%|████▌ | 18/40 [00:01<00:02, 9.61it/s]\nInversion process : 48%|████▊ | 19/40 [00:02<00:02, 9.49it/s]\nInversion process : 50%|█████ | 20/40 [00:02<00:02, 9.55it/s]\nInversion process : 52%|█████▎ | 21/40 [00:02<00:01, 9.50it/s]\nInversion process : 55%|█████▌ | 22/40 [00:02<00:01, 9.51it/s]\nInversion process : 57%|█████▊ | 23/40 [00:02<00:01, 9.55it/s]\nInversion process : 60%|██████ | 24/40 [00:02<00:01, 9.59it/s]\nInversion process : 62%|██████▎ | 25/40 [00:02<00:01, 9.60it/s]\nInversion process : 65%|██████▌ | 26/40 [00:02<00:01, 9.61it/s]\nInversion process : 68%|██████▊ | 27/40 [00:02<00:01, 9.58it/s]\nInversion process : 70%|███████ | 28/40 [00:02<00:01, 9.55it/s]\nInversion process : 72%|███████▎ | 29/40 [00:03<00:01, 9.57it/s]\nInversion process : 75%|███████▌ | 30/40 [00:03<00:01, 9.56it/s]\nInversion process : 78%|███████▊ | 31/40 [00:03<00:00, 9.60it/s]\nInversion process : 80%|████████ | 32/40 [00:03<00:00, 9.63it/s]\nInversion process : 82%|████████▎ | 33/40 [00:03<00:00, 9.60it/s]\nInversion process : 85%|████████▌ | 34/40 [00:03<00:00, 9.56it/s]\nInversion process : 88%|████████▊ | 35/40 [00:03<00:00, 9.53it/s]\nInversion process : 90%|█████████ | 36/40 [00:03<00:00, 9.52it/s]\nInversion process : 92%|█████████▎| 37/40 [00:03<00:00, 9.58it/s]\nInversion process : 95%|█████████▌| 38/40 [00:04<00:00, 9.59it/s]\nInversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.57it/s]\nInversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.48it/s]\nSampling type: DDIM with eta 0.0, Steps: 40/601\nUniform skip type\n\nGenerative process 0: 0%| | 0/40 [00:00<?, ?it/s]\nGenerative process 0: 5%|▌ | 2/40 [00:00<00:03, 9.97it/s]\nGenerative process 0: 8%|▊ | 3/40 [00:00<00:03, 9.78it/s]\nGenerative process 0: 10%|█ | 4/40 [00:00<00:03, 9.72it/s]\nGenerative process 0: 12%|█▎ | 5/40 [00:00<00:03, 9.69it/s]\nGenerative process 0: 15%|█▌ | 6/40 [00:00<00:03, 9.66it/s]\nGenerative process 0: 18%|█▊ | 7/40 [00:00<00:03, 9.59it/s]\nGenerative process 0: 20%|██ | 8/40 [00:00<00:03, 9.57it/s]\nGenerative process 0: 22%|██▎ | 9/40 [00:00<00:03, 9.48it/s]\nGenerative process 0: 25%|██▌ | 10/40 [00:01<00:03, 9.49it/s]\nGenerative process 0: 28%|██▊ | 11/40 [00:01<00:03, 9.51it/s]\nGenerative process 0: 30%|███ | 12/40 [00:01<00:02, 9.47it/s]\nGenerative process 0: 32%|███▎ | 13/40 [00:01<00:02, 9.42it/s]\nGenerative process 0: 35%|███▌ | 14/40 [00:01<00:02, 9.48it/s]\nGenerative process 0: 38%|███▊ | 15/40 [00:01<00:02, 9.51it/s]\nGenerative process 0: 40%|████ | 16/40 [00:01<00:02, 9.50it/s]\nGenerative process 0: 42%|████▎ | 17/40 [00:01<00:02, 9.47it/s]\nGenerative process 0: 45%|████▌ | 18/40 [00:01<00:02, 9.45it/s]\nGenerative process 0: 48%|████▊ | 19/40 [00:01<00:02, 9.47it/s]\nGenerative process 0: 50%|█████ | 20/40 [00:02<00:02, 9.49it/s]\nGenerative process 0: 52%|█████▎ | 21/40 [00:02<00:02, 9.47it/s]\nGenerative process 0: 55%|█████▌ | 22/40 [00:02<00:01, 9.45it/s]\nGenerative process 0: 57%|█████▊ | 23/40 [00:02<00:01, 9.44it/s]\nGenerative process 0: 60%|██████ | 24/40 [00:02<00:01, 9.47it/s]\nGenerative process 0: 62%|██████▎ | 25/40 [00:02<00:01, 9.49it/s]\nGenerative process 0: 65%|██████▌ | 26/40 [00:02<00:01, 9.45it/s]\nGenerative process 0: 68%|██████▊ | 27/40 [00:02<00:01, 9.43it/s]\nGenerative process 0: 70%|███████ | 28/40 [00:02<00:01, 9.43it/s]\nGenerative process 0: 72%|███████▎ | 29/40 [00:03<00:01, 9.46it/s]\nGenerative process 0: 75%|███████▌ | 30/40 [00:03<00:01, 9.42it/s]\nGenerative process 0: 78%|███████▊ | 31/40 [00:03<00:00, 9.40it/s]\nGenerative process 0: 80%|████████ | 32/40 [00:03<00:00, 9.41it/s]\nGenerative process 0: 82%|████████▎ | 33/40 [00:03<00:00, 9.43it/s]\nGenerative process 0: 85%|████████▌ | 34/40 [00:03<00:00, 9.42it/s]\nGenerative process 0: 88%|████████▊ | 35/40 [00:03<00:00, 9.42it/s]\nGenerative process 0: 90%|█████████ | 36/40 [00:03<00:00, 9.42it/s]\nGenerative process 0: 92%|█████████▎| 37/40 [00:03<00:00, 9.44it/s]\nGenerative process 0: 95%|█████████▌| 38/40 [00:04<00:00, 9.43it/s]\nGenerative process 0: 98%|█████████▊| 39/40 [00:04<00:00, 9.42it/s]\nGenerative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.41it/s]\nGenerative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.48it/s]", "metrics": { "predict_time": 13.857165, "total_time": 14.00181 }, "output": "https://replicate.delivery/mgxm/958bcafb-e83c-48ab-becf-91b13f7768fc/output.png", "started_at": "2022-08-09T14:48:16.268256Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nj67nan7azacljwsk75zah6xfy", "cancel": "https://api.replicate.com/v1/predictions/nj67nan7azacljwsk75zah6xfy/cancel" }, "version": "58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1" }
Generated inNone is loaded. checkpoint/dog_zombie_t601.pth is loaded. Inversion process : 0%| | 0/40 [00:00<?, ?it/s] Inversion process : 2%|▎ | 1/40 [00:00<00:05, 7.46it/s] Inversion process : 5%|▌ | 2/40 [00:00<00:04, 8.24it/s] Inversion process : 8%|▊ | 3/40 [00:00<00:04, 8.71it/s] Inversion process : 10%|█ | 4/40 [00:00<00:03, 9.05it/s] Inversion process : 12%|█▎ | 5/40 [00:00<00:03, 9.21it/s] Inversion process : 15%|█▌ | 6/40 [00:00<00:03, 9.36it/s] Inversion process : 18%|█▊ | 7/40 [00:00<00:03, 9.47it/s] Inversion process : 20%|██ | 8/40 [00:00<00:03, 9.54it/s] Inversion process : 22%|██▎ | 9/40 [00:00<00:03, 9.60it/s] Inversion process : 25%|██▌ | 10/40 [00:01<00:03, 9.64it/s] Inversion process : 28%|██▊ | 11/40 [00:01<00:03, 9.66it/s] Inversion process : 30%|███ | 12/40 [00:01<00:02, 9.66it/s] Inversion process : 32%|███▎ | 13/40 [00:01<00:02, 9.66it/s] Inversion process : 35%|███▌ | 14/40 [00:01<00:02, 9.60it/s] Inversion process : 38%|███▊ | 15/40 [00:01<00:02, 9.45it/s] Inversion process : 40%|████ | 16/40 [00:01<00:02, 9.51it/s] Inversion process : 42%|████▎ | 17/40 [00:01<00:02, 9.57it/s] Inversion process : 45%|████▌ | 18/40 [00:01<00:02, 9.61it/s] Inversion process : 48%|████▊ | 19/40 [00:02<00:02, 9.49it/s] Inversion process : 50%|█████ | 20/40 [00:02<00:02, 9.55it/s] Inversion process : 52%|█████▎ | 21/40 [00:02<00:01, 9.50it/s] Inversion process : 55%|█████▌ | 22/40 [00:02<00:01, 9.51it/s] Inversion process : 57%|█████▊ | 23/40 [00:02<00:01, 9.55it/s] Inversion process : 60%|██████ | 24/40 [00:02<00:01, 9.59it/s] Inversion process : 62%|██████▎ | 25/40 [00:02<00:01, 9.60it/s] Inversion process : 65%|██████▌ | 26/40 [00:02<00:01, 9.61it/s] Inversion process : 68%|██████▊ | 27/40 [00:02<00:01, 9.58it/s] Inversion process : 70%|███████ | 28/40 [00:02<00:01, 9.55it/s] Inversion process : 72%|███████▎ | 29/40 [00:03<00:01, 9.57it/s] Inversion process : 75%|███████▌ | 30/40 [00:03<00:01, 9.56it/s] Inversion process : 78%|███████▊ | 31/40 [00:03<00:00, 9.60it/s] Inversion process : 80%|████████ | 32/40 [00:03<00:00, 9.63it/s] Inversion process : 82%|████████▎ | 33/40 [00:03<00:00, 9.60it/s] Inversion process : 85%|████████▌ | 34/40 [00:03<00:00, 9.56it/s] Inversion process : 88%|████████▊ | 35/40 [00:03<00:00, 9.53it/s] Inversion process : 90%|█████████ | 36/40 [00:03<00:00, 9.52it/s] Inversion process : 92%|█████████▎| 37/40 [00:03<00:00, 9.58it/s] Inversion process : 95%|█████████▌| 38/40 [00:04<00:00, 9.59it/s] Inversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.57it/s] Inversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.48it/s] Sampling type: DDIM with eta 0.0, Steps: 40/601 Uniform skip type Generative process 0: 0%| | 0/40 [00:00<?, ?it/s] Generative process 0: 5%|▌ | 2/40 [00:00<00:03, 9.97it/s] Generative process 0: 8%|▊ | 3/40 [00:00<00:03, 9.78it/s] Generative process 0: 10%|█ | 4/40 [00:00<00:03, 9.72it/s] Generative process 0: 12%|█▎ | 5/40 [00:00<00:03, 9.69it/s] Generative process 0: 15%|█▌ | 6/40 [00:00<00:03, 9.66it/s] Generative process 0: 18%|█▊ | 7/40 [00:00<00:03, 9.59it/s] Generative process 0: 20%|██ | 8/40 [00:00<00:03, 9.57it/s] Generative process 0: 22%|██▎ | 9/40 [00:00<00:03, 9.48it/s] Generative process 0: 25%|██▌ | 10/40 [00:01<00:03, 9.49it/s] Generative process 0: 28%|██▊ | 11/40 [00:01<00:03, 9.51it/s] Generative process 0: 30%|███ | 12/40 [00:01<00:02, 9.47it/s] Generative process 0: 32%|███▎ | 13/40 [00:01<00:02, 9.42it/s] Generative process 0: 35%|███▌ | 14/40 [00:01<00:02, 9.48it/s] Generative process 0: 38%|███▊ | 15/40 [00:01<00:02, 9.51it/s] Generative process 0: 40%|████ | 16/40 [00:01<00:02, 9.50it/s] Generative process 0: 42%|████▎ | 17/40 [00:01<00:02, 9.47it/s] Generative process 0: 45%|████▌ | 18/40 [00:01<00:02, 9.45it/s] Generative process 0: 48%|████▊ | 19/40 [00:01<00:02, 9.47it/s] Generative process 0: 50%|█████ | 20/40 [00:02<00:02, 9.49it/s] Generative process 0: 52%|█████▎ | 21/40 [00:02<00:02, 9.47it/s] Generative process 0: 55%|█████▌ | 22/40 [00:02<00:01, 9.45it/s] Generative process 0: 57%|█████▊ | 23/40 [00:02<00:01, 9.44it/s] Generative process 0: 60%|██████ | 24/40 [00:02<00:01, 9.47it/s] Generative process 0: 62%|██████▎ | 25/40 [00:02<00:01, 9.49it/s] Generative process 0: 65%|██████▌ | 26/40 [00:02<00:01, 9.45it/s] Generative process 0: 68%|██████▊ | 27/40 [00:02<00:01, 9.43it/s] Generative process 0: 70%|███████ | 28/40 [00:02<00:01, 9.43it/s] Generative process 0: 72%|███████▎ | 29/40 [00:03<00:01, 9.46it/s] Generative process 0: 75%|███████▌ | 30/40 [00:03<00:01, 9.42it/s] Generative process 0: 78%|███████▊ | 31/40 [00:03<00:00, 9.40it/s] Generative process 0: 80%|████████ | 32/40 [00:03<00:00, 9.41it/s] Generative process 0: 82%|████████▎ | 33/40 [00:03<00:00, 9.43it/s] Generative process 0: 85%|████████▌ | 34/40 [00:03<00:00, 9.42it/s] Generative process 0: 88%|████████▊ | 35/40 [00:03<00:00, 9.42it/s] Generative process 0: 90%|█████████ | 36/40 [00:03<00:00, 9.42it/s] Generative process 0: 92%|█████████▎| 37/40 [00:03<00:00, 9.44it/s] Generative process 0: 95%|█████████▌| 38/40 [00:04<00:00, 9.43it/s] Generative process 0: 98%|█████████▊| 39/40 [00:04<00:00, 9.42it/s] Generative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.41it/s] Generative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.48it/s]
Prediction
gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1IDtcfu6c6r7fgvjh3lpdflopdqu4StatusSucceededSourceWebHardware–Total durationCreatedInput
- edit_type
- Dog face manipulation - Painting by Gogh
- n_test_step
- "40"
- manipulation
- Dog face manipulation
- degree_of_change
- 1
{ "image": "https://replicate.delivery/mgxm/278ae0be-415c-483f-8e45-5f1c2be3ca18/dog2.png", "edit_type": "Dog face manipulation - Painting by Gogh", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 }
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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", { input: { image: "https://replicate.delivery/mgxm/278ae0be-415c-483f-8e45-5f1c2be3ca18/dog2.png", edit_type: "Dog face manipulation - Painting by Gogh", n_test_step: "40", manipulation: "Dog face manipulation", degree_of_change: 1 } } ); // 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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", input={ "image": "https://replicate.delivery/mgxm/278ae0be-415c-483f-8e45-5f1c2be3ca18/dog2.png", "edit_type": "Dog face manipulation - Painting by Gogh", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run gwang-kim/diffusionclip 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": "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", "input": { "image": "https://replicate.delivery/mgxm/278ae0be-415c-483f-8e45-5f1c2be3ca18/dog2.png", "edit_type": "Dog face manipulation - Painting by Gogh", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T14:50:45.394513Z", "created_at": "2022-08-09T14:50:31.344030Z", "data_removed": false, "error": null, "id": "tcfu6c6r7fgvjh3lpdflopdqu4", "input": { "image": "https://replicate.delivery/mgxm/278ae0be-415c-483f-8e45-5f1c2be3ca18/dog2.png", "edit_type": "Dog face manipulation - Painting by Gogh", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": 1 }, "logs": "None is loaded.\ncheckpoint/dog_gogh_t500.pth is loaded.\n\nInversion process : 0%| | 0/40 [00:00<?, ?it/s]\nInversion process : 2%|▎ | 1/40 [00:00<00:05, 6.84it/s]\nInversion process : 5%|▌ | 2/40 [00:00<00:04, 7.63it/s]\nInversion process : 8%|▊ | 3/40 [00:00<00:04, 8.34it/s]\nInversion process : 10%|█ | 4/40 [00:00<00:04, 8.74it/s]\nInversion process : 12%|█▎ | 5/40 [00:00<00:03, 8.98it/s]\nInversion process : 15%|█▌ | 6/40 [00:00<00:03, 9.15it/s]\nInversion process : 18%|█▊ | 7/40 [00:00<00:03, 9.27it/s]\nInversion process : 20%|██ | 8/40 [00:00<00:03, 9.31it/s]\nInversion process : 22%|██▎ | 9/40 [00:01<00:03, 9.35it/s]\nInversion process : 25%|██▌ | 10/40 [00:01<00:03, 9.33it/s]\nInversion process : 28%|██▊ | 11/40 [00:01<00:03, 9.29it/s]\nInversion process : 30%|███ | 12/40 [00:01<00:03, 9.29it/s]\nInversion process : 32%|███▎ | 13/40 [00:01<00:02, 9.31it/s]\nInversion process : 35%|███▌ | 14/40 [00:01<00:02, 9.32it/s]\nInversion process : 38%|███▊ | 15/40 [00:01<00:02, 9.31it/s]\nInversion process : 40%|████ | 16/40 [00:01<00:02, 9.33it/s]\nInversion process : 42%|████▎ | 17/40 [00:01<00:02, 9.38it/s]\nInversion process : 45%|████▌ | 18/40 [00:01<00:02, 9.36it/s]\nInversion process : 48%|████▊ | 19/40 [00:02<00:02, 9.33it/s]\nInversion process : 50%|█████ | 20/40 [00:02<00:02, 9.32it/s]\nInversion process : 52%|█████▎ | 21/40 [00:02<00:02, 9.32it/s]\nInversion process : 55%|█████▌ | 22/40 [00:02<00:01, 9.28it/s]\nInversion process : 57%|█████▊ | 23/40 [00:02<00:01, 9.30it/s]\nInversion process : 60%|██████ | 24/40 [00:02<00:01, 9.32it/s]\nInversion process : 62%|██████▎ | 25/40 [00:02<00:01, 9.26it/s]\nInversion process : 65%|██████▌ | 26/40 [00:02<00:01, 9.30it/s]\nInversion process : 68%|██████▊ | 27/40 [00:02<00:01, 9.36it/s]\nInversion process : 70%|███████ | 28/40 [00:03<00:01, 9.30it/s]\nInversion process : 72%|███████▎ | 29/40 [00:03<00:01, 9.29it/s]\nInversion process : 75%|███████▌ | 30/40 [00:03<00:01, 9.30it/s]\nInversion process : 78%|███████▊ | 31/40 [00:03<00:00, 9.24it/s]\nInversion process : 80%|████████ | 32/40 [00:03<00:00, 9.23it/s]\nInversion process : 82%|████████▎ | 33/40 [00:03<00:00, 9.27it/s]\nInversion process : 85%|████████▌ | 34/40 [00:03<00:00, 9.24it/s]\nInversion process : 88%|████████▊ | 35/40 [00:03<00:00, 9.24it/s]\nInversion process : 90%|█████████ | 36/40 [00:03<00:00, 9.29it/s]\nInversion process : 92%|█████████▎| 37/40 [00:04<00:00, 9.26it/s]\nInversion process : 95%|█████████▌| 38/40 [00:04<00:00, 9.24it/s]\nInversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.27it/s]\nInversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.20it/s]\nSampling type: DDIM with eta 0.0, Steps: 40/500\nUniform skip type\n\nGenerative process 0: 0%| | 0/40 [00:00<?, ?it/s]\nGenerative process 0: 5%|▌ | 2/40 [00:00<00:03, 9.67it/s]\nGenerative process 0: 8%|▊ | 3/40 [00:00<00:03, 9.56it/s]\nGenerative process 0: 10%|█ | 4/40 [00:00<00:03, 9.44it/s]\nGenerative process 0: 12%|█▎ | 5/40 [00:00<00:03, 9.31it/s]\nGenerative process 0: 15%|█▌ | 6/40 [00:00<00:03, 9.32it/s]\nGenerative process 0: 18%|█▊ | 7/40 [00:00<00:03, 9.27it/s]\nGenerative process 0: 20%|██ | 8/40 [00:00<00:03, 9.21it/s]\nGenerative process 0: 22%|██▎ | 9/40 [00:00<00:03, 9.15it/s]\nGenerative process 0: 25%|██▌ | 10/40 [00:01<00:03, 9.14it/s]\nGenerative process 0: 28%|██▊ | 11/40 [00:01<00:03, 9.17it/s]\nGenerative process 0: 30%|███ | 12/40 [00:01<00:03, 9.14it/s]\nGenerative process 0: 32%|███▎ | 13/40 [00:01<00:02, 9.16it/s]\nGenerative process 0: 35%|███▌ | 14/40 [00:01<00:02, 9.19it/s]\nGenerative process 0: 38%|███▊ | 15/40 [00:01<00:02, 9.15it/s]\nGenerative process 0: 40%|████ | 16/40 [00:01<00:02, 9.18it/s]\nGenerative process 0: 42%|████▎ | 17/40 [00:01<00:02, 9.12it/s]\nGenerative process 0: 45%|████▌ | 18/40 [00:01<00:02, 9.07it/s]\nGenerative process 0: 48%|████▊ | 19/40 [00:02<00:02, 9.11it/s]\nGenerative process 0: 50%|█████ | 20/40 [00:02<00:02, 9.08it/s]\nGenerative process 0: 52%|█████▎ | 21/40 [00:02<00:02, 9.14it/s]\nGenerative process 0: 55%|█████▌ | 22/40 [00:02<00:01, 9.09it/s]\nGenerative process 0: 57%|█████▊ | 23/40 [00:02<00:01, 9.12it/s]\nGenerative process 0: 60%|██████ | 24/40 [00:02<00:01, 9.14it/s]\nGenerative process 0: 62%|██████▎ | 25/40 [00:02<00:01, 9.11it/s]\nGenerative process 0: 65%|██████▌ | 26/40 [00:02<00:01, 9.14it/s]\nGenerative process 0: 68%|██████▊ | 27/40 [00:02<00:01, 8.97it/s]\nGenerative process 0: 70%|███████ | 28/40 [00:03<00:01, 9.03it/s]\nGenerative process 0: 72%|███████▎ | 29/40 [00:03<00:01, 9.00it/s]\nGenerative process 0: 75%|███████▌ | 30/40 [00:03<00:01, 9.04it/s]\nGenerative process 0: 78%|███████▊ | 31/40 [00:03<00:01, 8.99it/s]\nGenerative process 0: 80%|████████ | 32/40 [00:03<00:00, 9.02it/s]\nGenerative process 0: 82%|████████▎ | 33/40 [00:03<00:00, 9.02it/s]\nGenerative process 0: 85%|████████▌ | 34/40 [00:03<00:00, 8.99it/s]\nGenerative process 0: 88%|████████▊ | 35/40 [00:03<00:00, 8.99it/s]\nGenerative process 0: 90%|█████████ | 36/40 [00:03<00:00, 8.92it/s]\nGenerative process 0: 92%|█████████▎| 37/40 [00:04<00:00, 8.90it/s]\nGenerative process 0: 95%|█████████▌| 38/40 [00:04<00:00, 8.95it/s]\nGenerative process 0: 98%|█████████▊| 39/40 [00:04<00:00, 8.96it/s]\nGenerative process 0: 100%|██████████| 40/40 [00:04<00:00, 8.97it/s]\nGenerative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.10it/s]", "metrics": { "predict_time": 13.850981, "total_time": 14.050483 }, "output": "https://replicate.delivery/mgxm/3c425b01-a2cf-45ad-9f7e-da52f5503050/output.png", "started_at": "2022-08-09T14:50:31.543532Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/tcfu6c6r7fgvjh3lpdflopdqu4", "cancel": "https://api.replicate.com/v1/predictions/tcfu6c6r7fgvjh3lpdflopdqu4/cancel" }, "version": "58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1" }
Generated inNone is loaded. checkpoint/dog_gogh_t500.pth is loaded. Inversion process : 0%| | 0/40 [00:00<?, ?it/s] Inversion process : 2%|▎ | 1/40 [00:00<00:05, 6.84it/s] Inversion process : 5%|▌ | 2/40 [00:00<00:04, 7.63it/s] Inversion process : 8%|▊ | 3/40 [00:00<00:04, 8.34it/s] Inversion process : 10%|█ | 4/40 [00:00<00:04, 8.74it/s] Inversion process : 12%|█▎ | 5/40 [00:00<00:03, 8.98it/s] Inversion process : 15%|█▌ | 6/40 [00:00<00:03, 9.15it/s] Inversion process : 18%|█▊ | 7/40 [00:00<00:03, 9.27it/s] Inversion process : 20%|██ | 8/40 [00:00<00:03, 9.31it/s] Inversion process : 22%|██▎ | 9/40 [00:01<00:03, 9.35it/s] Inversion process : 25%|██▌ | 10/40 [00:01<00:03, 9.33it/s] Inversion process : 28%|██▊ | 11/40 [00:01<00:03, 9.29it/s] Inversion process : 30%|███ | 12/40 [00:01<00:03, 9.29it/s] Inversion process : 32%|███▎ | 13/40 [00:01<00:02, 9.31it/s] Inversion process : 35%|███▌ | 14/40 [00:01<00:02, 9.32it/s] Inversion process : 38%|███▊ | 15/40 [00:01<00:02, 9.31it/s] Inversion process : 40%|████ | 16/40 [00:01<00:02, 9.33it/s] Inversion process : 42%|████▎ | 17/40 [00:01<00:02, 9.38it/s] Inversion process : 45%|████▌ | 18/40 [00:01<00:02, 9.36it/s] Inversion process : 48%|████▊ | 19/40 [00:02<00:02, 9.33it/s] Inversion process : 50%|█████ | 20/40 [00:02<00:02, 9.32it/s] Inversion process : 52%|█████▎ | 21/40 [00:02<00:02, 9.32it/s] Inversion process : 55%|█████▌ | 22/40 [00:02<00:01, 9.28it/s] Inversion process : 57%|█████▊ | 23/40 [00:02<00:01, 9.30it/s] Inversion process : 60%|██████ | 24/40 [00:02<00:01, 9.32it/s] Inversion process : 62%|██████▎ | 25/40 [00:02<00:01, 9.26it/s] Inversion process : 65%|██████▌ | 26/40 [00:02<00:01, 9.30it/s] Inversion process : 68%|██████▊ | 27/40 [00:02<00:01, 9.36it/s] Inversion process : 70%|███████ | 28/40 [00:03<00:01, 9.30it/s] Inversion process : 72%|███████▎ | 29/40 [00:03<00:01, 9.29it/s] Inversion process : 75%|███████▌ | 30/40 [00:03<00:01, 9.30it/s] Inversion process : 78%|███████▊ | 31/40 [00:03<00:00, 9.24it/s] Inversion process : 80%|████████ | 32/40 [00:03<00:00, 9.23it/s] Inversion process : 82%|████████▎ | 33/40 [00:03<00:00, 9.27it/s] Inversion process : 85%|████████▌ | 34/40 [00:03<00:00, 9.24it/s] Inversion process : 88%|████████▊ | 35/40 [00:03<00:00, 9.24it/s] Inversion process : 90%|█████████ | 36/40 [00:03<00:00, 9.29it/s] Inversion process : 92%|█████████▎| 37/40 [00:04<00:00, 9.26it/s] Inversion process : 95%|█████████▌| 38/40 [00:04<00:00, 9.24it/s] Inversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.27it/s] Inversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.20it/s] Sampling type: DDIM with eta 0.0, Steps: 40/500 Uniform skip type Generative process 0: 0%| | 0/40 [00:00<?, ?it/s] Generative process 0: 5%|▌ | 2/40 [00:00<00:03, 9.67it/s] Generative process 0: 8%|▊ | 3/40 [00:00<00:03, 9.56it/s] Generative process 0: 10%|█ | 4/40 [00:00<00:03, 9.44it/s] Generative process 0: 12%|█▎ | 5/40 [00:00<00:03, 9.31it/s] Generative process 0: 15%|█▌ | 6/40 [00:00<00:03, 9.32it/s] Generative process 0: 18%|█▊ | 7/40 [00:00<00:03, 9.27it/s] Generative process 0: 20%|██ | 8/40 [00:00<00:03, 9.21it/s] Generative process 0: 22%|██▎ | 9/40 [00:00<00:03, 9.15it/s] Generative process 0: 25%|██▌ | 10/40 [00:01<00:03, 9.14it/s] Generative process 0: 28%|██▊ | 11/40 [00:01<00:03, 9.17it/s] Generative process 0: 30%|███ | 12/40 [00:01<00:03, 9.14it/s] Generative process 0: 32%|███▎ | 13/40 [00:01<00:02, 9.16it/s] Generative process 0: 35%|███▌ | 14/40 [00:01<00:02, 9.19it/s] Generative process 0: 38%|███▊ | 15/40 [00:01<00:02, 9.15it/s] Generative process 0: 40%|████ | 16/40 [00:01<00:02, 9.18it/s] Generative process 0: 42%|████▎ | 17/40 [00:01<00:02, 9.12it/s] Generative process 0: 45%|████▌ | 18/40 [00:01<00:02, 9.07it/s] Generative process 0: 48%|████▊ | 19/40 [00:02<00:02, 9.11it/s] Generative process 0: 50%|█████ | 20/40 [00:02<00:02, 9.08it/s] Generative process 0: 52%|█████▎ | 21/40 [00:02<00:02, 9.14it/s] Generative process 0: 55%|█████▌ | 22/40 [00:02<00:01, 9.09it/s] Generative process 0: 57%|█████▊ | 23/40 [00:02<00:01, 9.12it/s] Generative process 0: 60%|██████ | 24/40 [00:02<00:01, 9.14it/s] Generative process 0: 62%|██████▎ | 25/40 [00:02<00:01, 9.11it/s] Generative process 0: 65%|██████▌ | 26/40 [00:02<00:01, 9.14it/s] Generative process 0: 68%|██████▊ | 27/40 [00:02<00:01, 8.97it/s] Generative process 0: 70%|███████ | 28/40 [00:03<00:01, 9.03it/s] Generative process 0: 72%|███████▎ | 29/40 [00:03<00:01, 9.00it/s] Generative process 0: 75%|███████▌ | 30/40 [00:03<00:01, 9.04it/s] Generative process 0: 78%|███████▊ | 31/40 [00:03<00:01, 8.99it/s] Generative process 0: 80%|████████ | 32/40 [00:03<00:00, 9.02it/s] Generative process 0: 82%|████████▎ | 33/40 [00:03<00:00, 9.02it/s] Generative process 0: 85%|████████▌ | 34/40 [00:03<00:00, 8.99it/s] Generative process 0: 88%|████████▊ | 35/40 [00:03<00:00, 8.99it/s] Generative process 0: 90%|█████████ | 36/40 [00:03<00:00, 8.92it/s] Generative process 0: 92%|█████████▎| 37/40 [00:04<00:00, 8.90it/s] Generative process 0: 95%|█████████▌| 38/40 [00:04<00:00, 8.95it/s] Generative process 0: 98%|█████████▊| 39/40 [00:04<00:00, 8.96it/s] Generative process 0: 100%|██████████| 40/40 [00:04<00:00, 8.97it/s] Generative process 0: 100%|██████████| 40/40 [00:04<00:00, 9.10it/s]
Prediction
gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1IDieiu2wnc4fbotmulepo3jqac6yStatusSucceededSourceWebHardware–Total durationCreatedInput
- edit_type
- Dog face manipulation - Hamster
- n_test_step
- "40"
- manipulation
- Dog face manipulation
- degree_of_change
- "0.5"
{ "image": "https://replicate.delivery/mgxm/bb142829-428c-4008-adb2-182b23586e95/dog2.png", "edit_type": "Dog face manipulation - Hamster", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": "0.5" }
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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", { input: { image: "https://replicate.delivery/mgxm/bb142829-428c-4008-adb2-182b23586e95/dog2.png", edit_type: "Dog face manipulation - Hamster", n_test_step: "40", manipulation: "Dog face manipulation", degree_of_change: "0.5" } } ); // 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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", input={ "image": "https://replicate.delivery/mgxm/bb142829-428c-4008-adb2-182b23586e95/dog2.png", "edit_type": "Dog face manipulation - Hamster", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": "0.5" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run gwang-kim/diffusionclip 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": "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", "input": { "image": "https://replicate.delivery/mgxm/bb142829-428c-4008-adb2-182b23586e95/dog2.png", "edit_type": "Dog face manipulation - Hamster", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": "0.5" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T14:52:56.043223Z", "created_at": "2022-08-09T14:52:39.264070Z", "data_removed": false, "error": null, "id": "ieiu2wnc4fbotmulepo3jqac6y", "input": { "image": "https://replicate.delivery/mgxm/bb142829-428c-4008-adb2-182b23586e95/dog2.png", "edit_type": "Dog face manipulation - Hamster", "n_test_step": "40", "manipulation": "Dog face manipulation", "degree_of_change": "0.5" }, "logs": "None is loaded.\ncheckpoint/dog_hamster_t601.pth is loaded.\n\nInversion process : 0%| | 0/40 [00:00<?, ?it/s]\nInversion process : 2%|▎ | 1/40 [00:00<00:05, 6.86it/s]\nInversion process : 5%|▌ | 2/40 [00:00<00:05, 7.56it/s]\nInversion process : 8%|▊ | 3/40 [00:00<00:04, 8.40it/s]\nInversion process : 10%|█ | 4/40 [00:00<00:04, 8.80it/s]\nInversion process : 12%|█▎ | 5/40 [00:00<00:03, 9.10it/s]\nInversion process : 15%|█▌ | 6/40 [00:00<00:03, 9.29it/s]\nInversion process : 18%|█▊ | 7/40 [00:00<00:03, 9.41it/s]\nInversion process : 20%|██ | 8/40 [00:00<00:03, 9.50it/s]\nInversion process : 22%|██▎ | 9/40 [00:00<00:03, 9.57it/s]\nInversion process : 25%|██▌ | 10/40 [00:01<00:03, 9.63it/s]\nInversion process : 28%|██▊ | 11/40 [00:01<00:03, 9.64it/s]\nInversion process : 30%|███ | 12/40 [00:01<00:02, 9.64it/s]\nInversion process : 32%|███▎ | 13/40 [00:01<00:02, 9.61it/s]\nInversion process : 35%|███▌ | 14/40 [00:01<00:02, 9.59it/s]\nInversion process : 38%|███▊ | 15/40 [00:01<00:02, 9.59it/s]\nInversion process : 40%|████ | 16/40 [00:01<00:02, 9.61it/s]\nInversion process : 42%|████▎ | 17/40 [00:01<00:02, 9.62it/s]\nInversion process : 45%|████▌ | 18/40 [00:01<00:02, 9.65it/s]\nInversion process : 48%|████▊ | 19/40 [00:02<00:02, 9.65it/s]\nInversion process : 50%|█████ | 20/40 [00:02<00:02, 9.64it/s]\nInversion process : 52%|█████▎ | 21/40 [00:02<00:01, 9.59it/s]\nInversion process : 55%|█████▌ | 22/40 [00:02<00:01, 9.59it/s]\nInversion process : 57%|█████▊ | 23/40 [00:02<00:01, 9.60it/s]\nInversion process : 60%|██████ | 24/40 [00:02<00:01, 9.60it/s]\nInversion process : 62%|██████▎ | 25/40 [00:02<00:01, 9.63it/s]\nInversion process : 65%|██████▌ | 26/40 [00:02<00:01, 9.64it/s]\nInversion process : 68%|██████▊ | 27/40 [00:02<00:01, 9.65it/s]\nInversion process : 70%|███████ | 28/40 [00:02<00:01, 9.64it/s]\nInversion process : 72%|███████▎ | 29/40 [00:03<00:01, 9.57it/s]\nInversion process : 75%|███████▌ | 30/40 [00:03<00:01, 9.58it/s]\nInversion process : 78%|███████▊ | 31/40 [00:03<00:00, 9.57it/s]\nInversion process : 80%|████████ | 32/40 [00:03<00:00, 9.60it/s]\nInversion process : 82%|████████▎ | 33/40 [00:03<00:00, 9.62it/s]\nInversion process : 85%|████████▌ | 34/40 [00:03<00:00, 9.61it/s]\nInversion process : 88%|████████▊ | 35/40 [00:03<00:00, 9.56it/s]\nInversion process : 90%|█████████ | 36/40 [00:03<00:00, 9.52it/s]\nInversion process : 92%|█████████▎| 37/40 [00:03<00:00, 9.56it/s]\nInversion process : 95%|█████████▌| 38/40 [00:04<00:00, 9.59it/s]\nInversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.62it/s]\nInversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.47it/s]\nSampling type: DDIM with eta 0.0, Steps: 40/601\nUniform skip type\n\nGenerative process 0: 0%| | 0/40 [00:00<?, ?it/s]\nGenerative process 0: 2%|▎ | 1/40 [00:00<00:07, 5.04it/s]\nGenerative process 0: 5%|▌ | 2/40 [00:00<00:07, 4.91it/s]\nGenerative process 0: 8%|▊ | 3/40 [00:00<00:07, 4.87it/s]\nGenerative process 0: 10%|█ | 4/40 [00:00<00:07, 4.86it/s]\nGenerative process 0: 12%|█▎ | 5/40 [00:01<00:07, 4.81it/s]\nGenerative process 0: 15%|█▌ | 6/40 [00:01<00:07, 4.82it/s]\nGenerative process 0: 18%|█▊ | 7/40 [00:01<00:06, 4.82it/s]\nGenerative process 0: 20%|██ | 8/40 [00:01<00:06, 4.84it/s]\nGenerative process 0: 22%|██▎ | 9/40 [00:01<00:06, 4.83it/s]\nGenerative process 0: 25%|██▌ | 10/40 [00:02<00:06, 4.80it/s]\nGenerative process 0: 28%|██▊ | 11/40 [00:02<00:06, 4.80it/s]\nGenerative process 0: 30%|███ | 12/40 [00:02<00:05, 4.82it/s]\nGenerative process 0: 32%|███▎ | 13/40 [00:02<00:05, 4.80it/s]\nGenerative process 0: 35%|███▌ | 14/40 [00:02<00:05, 4.80it/s]\nGenerative process 0: 38%|███▊ | 15/40 [00:03<00:05, 4.80it/s]\nGenerative process 0: 40%|████ | 16/40 [00:03<00:04, 4.81it/s]\nGenerative process 0: 42%|████▎ | 17/40 [00:03<00:04, 4.79it/s]\nGenerative process 0: 45%|████▌ | 18/40 [00:03<00:04, 4.79it/s]\nGenerative process 0: 48%|████▊ | 19/40 [00:03<00:04, 4.80it/s]\nGenerative process 0: 50%|█████ | 20/40 [00:04<00:04, 4.77it/s]\nGenerative process 0: 52%|█████▎ | 21/40 [00:04<00:03, 4.77it/s]\nGenerative process 0: 55%|█████▌ | 22/40 [00:04<00:03, 4.79it/s]\nGenerative process 0: 57%|█████▊ | 23/40 [00:04<00:03, 4.77it/s]\nGenerative process 0: 60%|██████ | 24/40 [00:04<00:03, 4.77it/s]\nGenerative process 0: 62%|██████▎ | 25/40 [00:05<00:03, 4.78it/s]\nGenerative process 0: 65%|██████▌ | 26/40 [00:05<00:02, 4.76it/s]\nGenerative process 0: 68%|██████▊ | 27/40 [00:05<00:02, 4.76it/s]\nGenerative process 0: 70%|███████ | 28/40 [00:05<00:02, 4.78it/s]\nGenerative process 0: 72%|███████▎ | 29/40 [00:06<00:02, 4.75it/s]\nGenerative process 0: 75%|███████▌ | 30/40 [00:06<00:02, 4.76it/s]\nGenerative process 0: 78%|███████▊ | 31/40 [00:06<00:01, 4.74it/s]\nGenerative process 0: 80%|████████ | 32/40 [00:06<00:01, 4.74it/s]\nGenerative process 0: 82%|████████▎ | 33/40 [00:06<00:01, 4.75it/s]\nGenerative process 0: 85%|████████▌ | 34/40 [00:07<00:01, 4.73it/s]\nGenerative process 0: 88%|████████▊ | 35/40 [00:07<00:01, 4.74it/s]\nGenerative process 0: 90%|█████████ | 36/40 [00:07<00:00, 4.71it/s]\nGenerative process 0: 92%|█████████▎| 37/40 [00:07<00:00, 4.72it/s]\nGenerative process 0: 95%|█████████▌| 38/40 [00:07<00:00, 4.71it/s]\nGenerative process 0: 98%|█████████▊| 39/40 [00:08<00:00, 4.71it/s]\nGenerative process 0: 100%|██████████| 40/40 [00:08<00:00, 4.70it/s]\nGenerative process 0: 100%|██████████| 40/40 [00:08<00:00, 4.77it/s]", "metrics": { "predict_time": 16.588111, "total_time": 16.779153 }, "output": "https://replicate.delivery/mgxm/4a85d47a-4bab-40ab-9085-e2ef0e991667/output.png", "started_at": "2022-08-09T14:52:39.455112Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ieiu2wnc4fbotmulepo3jqac6y", "cancel": "https://api.replicate.com/v1/predictions/ieiu2wnc4fbotmulepo3jqac6y/cancel" }, "version": "58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1" }
Generated inNone is loaded. checkpoint/dog_hamster_t601.pth is loaded. Inversion process : 0%| | 0/40 [00:00<?, ?it/s] Inversion process : 2%|▎ | 1/40 [00:00<00:05, 6.86it/s] Inversion process : 5%|▌ | 2/40 [00:00<00:05, 7.56it/s] Inversion process : 8%|▊ | 3/40 [00:00<00:04, 8.40it/s] Inversion process : 10%|█ | 4/40 [00:00<00:04, 8.80it/s] Inversion process : 12%|█▎ | 5/40 [00:00<00:03, 9.10it/s] Inversion process : 15%|█▌ | 6/40 [00:00<00:03, 9.29it/s] Inversion process : 18%|█▊ | 7/40 [00:00<00:03, 9.41it/s] Inversion process : 20%|██ | 8/40 [00:00<00:03, 9.50it/s] Inversion process : 22%|██▎ | 9/40 [00:00<00:03, 9.57it/s] Inversion process : 25%|██▌ | 10/40 [00:01<00:03, 9.63it/s] Inversion process : 28%|██▊ | 11/40 [00:01<00:03, 9.64it/s] Inversion process : 30%|███ | 12/40 [00:01<00:02, 9.64it/s] Inversion process : 32%|███▎ | 13/40 [00:01<00:02, 9.61it/s] Inversion process : 35%|███▌ | 14/40 [00:01<00:02, 9.59it/s] Inversion process : 38%|███▊ | 15/40 [00:01<00:02, 9.59it/s] Inversion process : 40%|████ | 16/40 [00:01<00:02, 9.61it/s] Inversion process : 42%|████▎ | 17/40 [00:01<00:02, 9.62it/s] Inversion process : 45%|████▌ | 18/40 [00:01<00:02, 9.65it/s] Inversion process : 48%|████▊ | 19/40 [00:02<00:02, 9.65it/s] Inversion process : 50%|█████ | 20/40 [00:02<00:02, 9.64it/s] Inversion process : 52%|█████▎ | 21/40 [00:02<00:01, 9.59it/s] Inversion process : 55%|█████▌ | 22/40 [00:02<00:01, 9.59it/s] Inversion process : 57%|█████▊ | 23/40 [00:02<00:01, 9.60it/s] Inversion process : 60%|██████ | 24/40 [00:02<00:01, 9.60it/s] Inversion process : 62%|██████▎ | 25/40 [00:02<00:01, 9.63it/s] Inversion process : 65%|██████▌ | 26/40 [00:02<00:01, 9.64it/s] Inversion process : 68%|██████▊ | 27/40 [00:02<00:01, 9.65it/s] Inversion process : 70%|███████ | 28/40 [00:02<00:01, 9.64it/s] Inversion process : 72%|███████▎ | 29/40 [00:03<00:01, 9.57it/s] Inversion process : 75%|███████▌ | 30/40 [00:03<00:01, 9.58it/s] Inversion process : 78%|███████▊ | 31/40 [00:03<00:00, 9.57it/s] Inversion process : 80%|████████ | 32/40 [00:03<00:00, 9.60it/s] Inversion process : 82%|████████▎ | 33/40 [00:03<00:00, 9.62it/s] Inversion process : 85%|████████▌ | 34/40 [00:03<00:00, 9.61it/s] Inversion process : 88%|████████▊ | 35/40 [00:03<00:00, 9.56it/s] Inversion process : 90%|█████████ | 36/40 [00:03<00:00, 9.52it/s] Inversion process : 92%|█████████▎| 37/40 [00:03<00:00, 9.56it/s] Inversion process : 95%|█████████▌| 38/40 [00:04<00:00, 9.59it/s] Inversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.62it/s] Inversion process : 98%|█████████▊| 39/40 [00:04<00:00, 9.47it/s] Sampling type: DDIM with eta 0.0, Steps: 40/601 Uniform skip type Generative process 0: 0%| | 0/40 [00:00<?, ?it/s] Generative process 0: 2%|▎ | 1/40 [00:00<00:07, 5.04it/s] Generative process 0: 5%|▌ | 2/40 [00:00<00:07, 4.91it/s] Generative process 0: 8%|▊ | 3/40 [00:00<00:07, 4.87it/s] Generative process 0: 10%|█ | 4/40 [00:00<00:07, 4.86it/s] Generative process 0: 12%|█▎ | 5/40 [00:01<00:07, 4.81it/s] Generative process 0: 15%|█▌ | 6/40 [00:01<00:07, 4.82it/s] Generative process 0: 18%|█▊ | 7/40 [00:01<00:06, 4.82it/s] Generative process 0: 20%|██ | 8/40 [00:01<00:06, 4.84it/s] Generative process 0: 22%|██▎ | 9/40 [00:01<00:06, 4.83it/s] Generative process 0: 25%|██▌ | 10/40 [00:02<00:06, 4.80it/s] Generative process 0: 28%|██▊ | 11/40 [00:02<00:06, 4.80it/s] Generative process 0: 30%|███ | 12/40 [00:02<00:05, 4.82it/s] Generative process 0: 32%|███▎ | 13/40 [00:02<00:05, 4.80it/s] Generative process 0: 35%|███▌ | 14/40 [00:02<00:05, 4.80it/s] Generative process 0: 38%|███▊ | 15/40 [00:03<00:05, 4.80it/s] Generative process 0: 40%|████ | 16/40 [00:03<00:04, 4.81it/s] Generative process 0: 42%|████▎ | 17/40 [00:03<00:04, 4.79it/s] Generative process 0: 45%|████▌ | 18/40 [00:03<00:04, 4.79it/s] Generative process 0: 48%|████▊ | 19/40 [00:03<00:04, 4.80it/s] Generative process 0: 50%|█████ | 20/40 [00:04<00:04, 4.77it/s] Generative process 0: 52%|█████▎ | 21/40 [00:04<00:03, 4.77it/s] Generative process 0: 55%|█████▌ | 22/40 [00:04<00:03, 4.79it/s] Generative process 0: 57%|█████▊ | 23/40 [00:04<00:03, 4.77it/s] Generative process 0: 60%|██████ | 24/40 [00:04<00:03, 4.77it/s] Generative process 0: 62%|██████▎ | 25/40 [00:05<00:03, 4.78it/s] Generative process 0: 65%|██████▌ | 26/40 [00:05<00:02, 4.76it/s] Generative process 0: 68%|██████▊ | 27/40 [00:05<00:02, 4.76it/s] Generative process 0: 70%|███████ | 28/40 [00:05<00:02, 4.78it/s] Generative process 0: 72%|███████▎ | 29/40 [00:06<00:02, 4.75it/s] Generative process 0: 75%|███████▌ | 30/40 [00:06<00:02, 4.76it/s] Generative process 0: 78%|███████▊ | 31/40 [00:06<00:01, 4.74it/s] Generative process 0: 80%|████████ | 32/40 [00:06<00:01, 4.74it/s] Generative process 0: 82%|████████▎ | 33/40 [00:06<00:01, 4.75it/s] Generative process 0: 85%|████████▌ | 34/40 [00:07<00:01, 4.73it/s] Generative process 0: 88%|████████▊ | 35/40 [00:07<00:01, 4.74it/s] Generative process 0: 90%|█████████ | 36/40 [00:07<00:00, 4.71it/s] Generative process 0: 92%|█████████▎| 37/40 [00:07<00:00, 4.72it/s] Generative process 0: 95%|█████████▌| 38/40 [00:07<00:00, 4.71it/s] Generative process 0: 98%|█████████▊| 39/40 [00:08<00:00, 4.71it/s] Generative process 0: 100%|██████████| 40/40 [00:08<00:00, 4.70it/s] Generative process 0: 100%|██████████| 40/40 [00:08<00:00, 4.77it/s]
Prediction
gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1IDwp3yy6lot5ejbbf5pwlemmbwkuStatusSucceededSourceWebHardware–Total durationCreatedInput
- edit_type
- Human face manipulation - Pixar
- n_test_step
- "20"
- manipulation
- Human face manipulation
- degree_of_change
- "1"
{ "image": "https://replicate.delivery/mgxm/95d0718b-0db8-4a57-bd38-e958c6c3749c/celeb2.png", "edit_type": "Human face manipulation - Pixar", "n_test_step": "20", "manipulation": "Human face manipulation", "degree_of_change": "1" }
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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", { input: { image: "https://replicate.delivery/mgxm/95d0718b-0db8-4a57-bd38-e958c6c3749c/celeb2.png", edit_type: "Human face manipulation - Pixar", n_test_step: "20", manipulation: "Human face manipulation", degree_of_change: "1" } } ); // 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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", input={ "image": "https://replicate.delivery/mgxm/95d0718b-0db8-4a57-bd38-e958c6c3749c/celeb2.png", "edit_type": "Human face manipulation - Pixar", "n_test_step": "20", "manipulation": "Human face manipulation", "degree_of_change": "1" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run gwang-kim/diffusionclip 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": "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", "input": { "image": "https://replicate.delivery/mgxm/95d0718b-0db8-4a57-bd38-e958c6c3749c/celeb2.png", "edit_type": "Human face manipulation - Pixar", "n_test_step": "20", "manipulation": "Human face manipulation", "degree_of_change": "1" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T14:54:24.543955Z", "created_at": "2022-08-09T14:54:08.413190Z", "data_removed": false, "error": null, "id": "wp3yy6lot5ejbbf5pwlemmbwku", "input": { "image": "https://replicate.delivery/mgxm/95d0718b-0db8-4a57-bd38-e958c6c3749c/celeb2.png", "edit_type": "Human face manipulation - Pixar", "n_test_step": "20", "manipulation": "Human face manipulation", "degree_of_change": "1" }, "logs": "None is loaded.\ncheckpoint/human_pixar_t601.pth is loaded.\n\nInversion process : 0%| | 0/40 [00:00<?, ?it/s]\nInversion process : 2%|▎ | 1/40 [00:00<00:06, 5.64it/s]\nInversion process : 5%|▌ | 2/40 [00:00<00:05, 6.50it/s]\nInversion process : 8%|▊ | 3/40 [00:00<00:05, 6.81it/s]\nInversion process : 10%|█ | 4/40 [00:00<00:05, 6.94it/s]\nInversion process : 12%|█▎ | 5/40 [00:00<00:04, 7.01it/s]\nInversion process : 15%|█▌ | 6/40 [00:00<00:04, 7.07it/s]\nInversion process : 18%|█▊ | 7/40 [00:01<00:04, 7.09it/s]\nInversion process : 20%|██ | 8/40 [00:01<00:04, 7.01it/s]\nInversion process : 22%|██▎ | 9/40 [00:01<00:04, 7.00it/s]\nInversion process : 25%|██▌ | 10/40 [00:01<00:04, 7.02it/s]\nInversion process : 28%|██▊ | 11/40 [00:01<00:04, 7.06it/s]\nInversion process : 30%|███ | 12/40 [00:01<00:03, 7.11it/s]\nInversion process : 32%|███▎ | 13/40 [00:01<00:03, 7.15it/s]\nInversion process : 35%|███▌ | 14/40 [00:02<00:03, 7.13it/s]\nInversion process : 38%|███▊ | 15/40 [00:02<00:03, 7.09it/s]\nInversion process : 40%|████ | 16/40 [00:02<00:03, 7.09it/s]\nInversion process : 42%|████▎ | 17/40 [00:02<00:03, 7.10it/s]\nInversion process : 45%|████▌ | 18/40 [00:02<00:03, 7.10it/s]\nInversion process : 48%|████▊ | 19/40 [00:02<00:02, 7.12it/s]\nInversion process : 50%|█████ | 20/40 [00:02<00:02, 7.11it/s]\nInversion process : 52%|█████▎ | 21/40 [00:02<00:02, 7.07it/s]\nInversion process : 55%|█████▌ | 22/40 [00:03<00:02, 7.02it/s]\nInversion process : 57%|█████▊ | 23/40 [00:03<00:02, 7.02it/s]\nInversion process : 60%|██████ | 24/40 [00:03<00:02, 7.04it/s]\nInversion process : 62%|██████▎ | 25/40 [00:03<00:02, 7.05it/s]\nInversion process : 65%|██████▌ | 26/40 [00:03<00:01, 7.08it/s]\nInversion process : 68%|██████▊ | 27/40 [00:03<00:01, 7.09it/s]\nInversion process : 70%|███████ | 28/40 [00:03<00:01, 7.08it/s]\nInversion process : 72%|███████▎ | 29/40 [00:04<00:01, 7.03it/s]\nInversion process : 75%|███████▌ | 30/40 [00:04<00:01, 7.00it/s]\nInversion process : 78%|███████▊ | 31/40 [00:04<00:01, 7.01it/s]\nInversion process : 80%|████████ | 32/40 [00:04<00:01, 7.05it/s]\nInversion process : 82%|████████▎ | 33/40 [00:04<00:00, 7.05it/s]\nInversion process : 85%|████████▌ | 34/40 [00:04<00:00, 7.07it/s]\nInversion process : 88%|████████▊ | 35/40 [00:04<00:00, 7.06it/s]\nInversion process : 90%|█████████ | 36/40 [00:05<00:00, 7.05it/s]\nInversion process : 92%|█████████▎| 37/40 [00:05<00:00, 7.01it/s]\nInversion process : 95%|█████████▌| 38/40 [00:05<00:00, 7.02it/s]\nInversion process : 98%|█████████▊| 39/40 [00:05<00:00, 7.04it/s]\nInversion process : 98%|█████████▊| 39/40 [00:05<00:00, 7.03it/s]\nSampling type: DDIM with eta 0.0, Steps: 20/601\nUniform skip type\n\nGenerative process 0: 0%| | 0/20 [00:00<?, ?it/s]\nGenerative process 0: 5%|▌ | 1/20 [00:00<00:02, 7.64it/s]\nGenerative process 0: 10%|█ | 2/20 [00:00<00:02, 7.32it/s]\nGenerative process 0: 15%|█▌ | 3/20 [00:00<00:02, 7.19it/s]\nGenerative process 0: 20%|██ | 4/20 [00:00<00:02, 7.14it/s]\nGenerative process 0: 25%|██▌ | 5/20 [00:00<00:02, 7.08it/s]\nGenerative process 0: 30%|███ | 6/20 [00:00<00:01, 7.04it/s]\nGenerative process 0: 35%|███▌ | 7/20 [00:00<00:01, 6.93it/s]\nGenerative process 0: 40%|████ | 8/20 [00:01<00:01, 6.89it/s]\nGenerative process 0: 45%|████▌ | 9/20 [00:01<00:01, 6.92it/s]\nGenerative process 0: 50%|█████ | 10/20 [00:01<00:01, 6.94it/s]\nGenerative process 0: 55%|█████▌ | 11/20 [00:01<00:01, 6.96it/s]\nGenerative process 0: 60%|██████ | 12/20 [00:01<00:01, 6.94it/s]\nGenerative process 0: 65%|██████▌ | 13/20 [00:01<00:01, 6.92it/s]\nGenerative process 0: 70%|███████ | 14/20 [00:02<00:00, 6.92it/s]\nGenerative process 0: 75%|███████▌ | 15/20 [00:02<00:00, 6.87it/s]\nGenerative process 0: 80%|████████ | 16/20 [00:02<00:00, 6.88it/s]\nGenerative process 0: 85%|████████▌ | 17/20 [00:02<00:00, 6.89it/s]\nGenerative process 0: 90%|█████████ | 18/20 [00:02<00:00, 6.94it/s]\nGenerative process 0: 95%|█████████▌| 19/20 [00:02<00:00, 6.93it/s]\nGenerative process 0: 100%|██████████| 20/20 [00:02<00:00, 6.94it/s]\nGenerative process 0: 100%|██████████| 20/20 [00:02<00:00, 6.97it/s]", "metrics": { "predict_time": 15.961855, "total_time": 16.130765 }, "output": "https://replicate.delivery/mgxm/3acabb93-33b1-4d7b-9b86-6bd3d4f96fa4/output.png", "started_at": "2022-08-09T14:54:08.582100Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/wp3yy6lot5ejbbf5pwlemmbwku", "cancel": "https://api.replicate.com/v1/predictions/wp3yy6lot5ejbbf5pwlemmbwku/cancel" }, "version": "58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1" }
Generated inNone is loaded. checkpoint/human_pixar_t601.pth is loaded. Inversion process : 0%| | 0/40 [00:00<?, ?it/s] Inversion process : 2%|▎ | 1/40 [00:00<00:06, 5.64it/s] Inversion process : 5%|▌ | 2/40 [00:00<00:05, 6.50it/s] Inversion process : 8%|▊ | 3/40 [00:00<00:05, 6.81it/s] Inversion process : 10%|█ | 4/40 [00:00<00:05, 6.94it/s] Inversion process : 12%|█▎ | 5/40 [00:00<00:04, 7.01it/s] Inversion process : 15%|█▌ | 6/40 [00:00<00:04, 7.07it/s] Inversion process : 18%|█▊ | 7/40 [00:01<00:04, 7.09it/s] Inversion process : 20%|██ | 8/40 [00:01<00:04, 7.01it/s] Inversion process : 22%|██▎ | 9/40 [00:01<00:04, 7.00it/s] Inversion process : 25%|██▌ | 10/40 [00:01<00:04, 7.02it/s] Inversion process : 28%|██▊ | 11/40 [00:01<00:04, 7.06it/s] Inversion process : 30%|███ | 12/40 [00:01<00:03, 7.11it/s] Inversion process : 32%|███▎ | 13/40 [00:01<00:03, 7.15it/s] Inversion process : 35%|███▌ | 14/40 [00:02<00:03, 7.13it/s] Inversion process : 38%|███▊ | 15/40 [00:02<00:03, 7.09it/s] Inversion process : 40%|████ | 16/40 [00:02<00:03, 7.09it/s] Inversion process : 42%|████▎ | 17/40 [00:02<00:03, 7.10it/s] Inversion process : 45%|████▌ | 18/40 [00:02<00:03, 7.10it/s] Inversion process : 48%|████▊ | 19/40 [00:02<00:02, 7.12it/s] Inversion process : 50%|█████ | 20/40 [00:02<00:02, 7.11it/s] Inversion process : 52%|█████▎ | 21/40 [00:02<00:02, 7.07it/s] Inversion process : 55%|█████▌ | 22/40 [00:03<00:02, 7.02it/s] Inversion process : 57%|█████▊ | 23/40 [00:03<00:02, 7.02it/s] Inversion process : 60%|██████ | 24/40 [00:03<00:02, 7.04it/s] Inversion process : 62%|██████▎ | 25/40 [00:03<00:02, 7.05it/s] Inversion process : 65%|██████▌ | 26/40 [00:03<00:01, 7.08it/s] Inversion process : 68%|██████▊ | 27/40 [00:03<00:01, 7.09it/s] Inversion process : 70%|███████ | 28/40 [00:03<00:01, 7.08it/s] Inversion process : 72%|███████▎ | 29/40 [00:04<00:01, 7.03it/s] Inversion process : 75%|███████▌ | 30/40 [00:04<00:01, 7.00it/s] Inversion process : 78%|███████▊ | 31/40 [00:04<00:01, 7.01it/s] Inversion process : 80%|████████ | 32/40 [00:04<00:01, 7.05it/s] Inversion process : 82%|████████▎ | 33/40 [00:04<00:00, 7.05it/s] Inversion process : 85%|████████▌ | 34/40 [00:04<00:00, 7.07it/s] Inversion process : 88%|████████▊ | 35/40 [00:04<00:00, 7.06it/s] Inversion process : 90%|█████████ | 36/40 [00:05<00:00, 7.05it/s] Inversion process : 92%|█████████▎| 37/40 [00:05<00:00, 7.01it/s] Inversion process : 95%|█████████▌| 38/40 [00:05<00:00, 7.02it/s] Inversion process : 98%|█████████▊| 39/40 [00:05<00:00, 7.04it/s] Inversion process : 98%|█████████▊| 39/40 [00:05<00:00, 7.03it/s] Sampling type: DDIM with eta 0.0, Steps: 20/601 Uniform skip type Generative process 0: 0%| | 0/20 [00:00<?, ?it/s] Generative process 0: 5%|▌ | 1/20 [00:00<00:02, 7.64it/s] Generative process 0: 10%|█ | 2/20 [00:00<00:02, 7.32it/s] Generative process 0: 15%|█▌ | 3/20 [00:00<00:02, 7.19it/s] Generative process 0: 20%|██ | 4/20 [00:00<00:02, 7.14it/s] Generative process 0: 25%|██▌ | 5/20 [00:00<00:02, 7.08it/s] Generative process 0: 30%|███ | 6/20 [00:00<00:01, 7.04it/s] Generative process 0: 35%|███▌ | 7/20 [00:00<00:01, 6.93it/s] Generative process 0: 40%|████ | 8/20 [00:01<00:01, 6.89it/s] Generative process 0: 45%|████▌ | 9/20 [00:01<00:01, 6.92it/s] Generative process 0: 50%|█████ | 10/20 [00:01<00:01, 6.94it/s] Generative process 0: 55%|█████▌ | 11/20 [00:01<00:01, 6.96it/s] Generative process 0: 60%|██████ | 12/20 [00:01<00:01, 6.94it/s] Generative process 0: 65%|██████▌ | 13/20 [00:01<00:01, 6.92it/s] Generative process 0: 70%|███████ | 14/20 [00:02<00:00, 6.92it/s] Generative process 0: 75%|███████▌ | 15/20 [00:02<00:00, 6.87it/s] Generative process 0: 80%|████████ | 16/20 [00:02<00:00, 6.88it/s] Generative process 0: 85%|████████▌ | 17/20 [00:02<00:00, 6.89it/s] Generative process 0: 90%|█████████ | 18/20 [00:02<00:00, 6.94it/s] Generative process 0: 95%|█████████▌| 19/20 [00:02<00:00, 6.93it/s] Generative process 0: 100%|██████████| 20/20 [00:02<00:00, 6.94it/s] Generative process 0: 100%|██████████| 20/20 [00:02<00:00, 6.97it/s]
Prediction
gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1IDteu6ub4xtnettpdf5lpkfi6pxqStatusSucceededSourceWebHardware–Total durationCreatedInput
- edit_type
- Human face manipulation - Sketch
- n_test_step
- "20"
- manipulation
- Human face manipulation
- degree_of_change
- "1"
{ "image": "https://replicate.delivery/mgxm/cbfb339e-ce2d-4645-b9ef-c399262bca8a/celeb3.png", "edit_type": "Human face manipulation - Sketch", "n_test_step": "20", "manipulation": "Human face manipulation", "degree_of_change": "1" }
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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", { input: { image: "https://replicate.delivery/mgxm/cbfb339e-ce2d-4645-b9ef-c399262bca8a/celeb3.png", edit_type: "Human face manipulation - Sketch", n_test_step: "20", manipulation: "Human face manipulation", degree_of_change: "1" } } ); // 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 gwang-kim/diffusionclip using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", input={ "image": "https://replicate.delivery/mgxm/cbfb339e-ce2d-4645-b9ef-c399262bca8a/celeb3.png", "edit_type": "Human face manipulation - Sketch", "n_test_step": "20", "manipulation": "Human face manipulation", "degree_of_change": "1" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run gwang-kim/diffusionclip 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": "gwang-kim/diffusionclip:58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1", "input": { "image": "https://replicate.delivery/mgxm/cbfb339e-ce2d-4645-b9ef-c399262bca8a/celeb3.png", "edit_type": "Human face manipulation - Sketch", "n_test_step": "20", "manipulation": "Human face manipulation", "degree_of_change": "1" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-08-09T14:57:21.807168Z", "created_at": "2022-08-09T14:57:09.036581Z", "data_removed": false, "error": null, "id": "teu6ub4xtnettpdf5lpkfi6pxq", "input": { "image": "https://replicate.delivery/mgxm/cbfb339e-ce2d-4645-b9ef-c399262bca8a/celeb3.png", "edit_type": "Human face manipulation - Sketch", "n_test_step": "20", "manipulation": "Human face manipulation", "degree_of_change": "1" }, "logs": "None is loaded.\ncheckpoint/human_sketch_t601.pth is loaded.\n\nInversion process : 0%| | 0/40 [00:00<?, ?it/s]\nInversion process : 2%|▎ | 1/40 [00:00<00:07, 5.44it/s]\nInversion process : 5%|▌ | 2/40 [00:00<00:05, 6.46it/s]\nInversion process : 8%|▊ | 3/40 [00:00<00:05, 6.82it/s]\nInversion process : 10%|█ | 4/40 [00:00<00:05, 7.03it/s]\nInversion process : 12%|█▎ | 5/40 [00:00<00:04, 7.16it/s]\nInversion process : 15%|█▌ | 6/40 [00:00<00:04, 7.20it/s]\nInversion process : 18%|█▊ | 7/40 [00:01<00:04, 7.23it/s]\nInversion process : 20%|██ | 8/40 [00:01<00:04, 7.25it/s]\nInversion process : 22%|██▎ | 9/40 [00:01<00:04, 7.26it/s]\nInversion process : 25%|██▌ | 10/40 [00:01<00:04, 7.26it/s]\nInversion process : 28%|██▊ | 11/40 [00:01<00:04, 7.22it/s]\nInversion process : 30%|███ | 12/40 [00:01<00:03, 7.22it/s]\nInversion process : 32%|███▎ | 13/40 [00:01<00:03, 7.26it/s]\nInversion process : 35%|███▌ | 14/40 [00:01<00:03, 7.30it/s]\nInversion process : 38%|███▊ | 15/40 [00:02<00:03, 7.29it/s]\nInversion process : 40%|████ | 16/40 [00:02<00:03, 7.24it/s]\nInversion process : 42%|████▎ | 17/40 [00:02<00:03, 7.20it/s]\nInversion process : 45%|████▌ | 18/40 [00:02<00:03, 7.21it/s]\nInversion process : 48%|████▊ | 19/40 [00:02<00:02, 7.24it/s]\nInversion process : 50%|█████ | 20/40 [00:02<00:02, 7.25it/s]\nInversion process : 52%|█████▎ | 21/40 [00:02<00:02, 7.25it/s]\nInversion process : 55%|█████▌ | 22/40 [00:03<00:02, 7.23it/s]\nInversion process : 57%|█████▊ | 23/40 [00:03<00:02, 7.21it/s]\nInversion process : 60%|██████ | 24/40 [00:03<00:02, 7.22it/s]\nInversion process : 62%|██████▎ | 25/40 [00:03<00:02, 7.24it/s]\nInversion process : 65%|██████▌ | 26/40 [00:03<00:01, 7.23it/s]\nInversion process : 68%|██████▊ | 27/40 [00:03<00:01, 7.21it/s]\nInversion process : 70%|███████ | 28/40 [00:03<00:01, 7.20it/s]\nInversion process : 72%|███████▎ | 29/40 [00:04<00:01, 7.17it/s]\nInversion process : 75%|███████▌ | 30/40 [00:04<00:01, 7.14it/s]\nInversion process : 78%|███████▊ | 31/40 [00:04<00:01, 7.14it/s]\nInversion process : 80%|████████ | 32/40 [00:04<00:01, 7.14it/s]\nInversion process : 82%|████████▎ | 33/40 [00:04<00:00, 7.17it/s]\nInversion process : 85%|████████▌ | 34/40 [00:04<00:00, 7.20it/s]\nInversion process : 88%|████████▊ | 35/40 [00:04<00:00, 7.22it/s]\nInversion process : 90%|█████████ | 36/40 [00:05<00:00, 7.20it/s]\nInversion process : 92%|█████████▎| 37/40 [00:05<00:00, 7.18it/s]\nInversion process : 95%|█████████▌| 38/40 [00:05<00:00, 7.13it/s]\nInversion process : 98%|█████████▊| 39/40 [00:05<00:00, 7.10it/s]\nInversion process : 98%|█████████▊| 39/40 [00:05<00:00, 7.16it/s]\nSampling type: DDIM with eta 0.0, Steps: 20/601\nUniform skip type\n\nGenerative process 0: 0%| | 0/20 [00:00<?, ?it/s]\nGenerative process 0: 5%|▌ | 1/20 [00:00<00:02, 7.55it/s]\nGenerative process 0: 10%|█ | 2/20 [00:00<00:02, 7.40it/s]\nGenerative process 0: 15%|█▌ | 3/20 [00:00<00:02, 7.36it/s]\nGenerative process 0: 20%|██ | 4/20 [00:00<00:02, 7.32it/s]\nGenerative process 0: 25%|██▌ | 5/20 [00:00<00:02, 7.26it/s]\nGenerative process 0: 30%|███ | 6/20 [00:00<00:01, 7.18it/s]\nGenerative process 0: 35%|███▌ | 7/20 [00:00<00:01, 7.10it/s]\nGenerative process 0: 40%|████ | 8/20 [00:01<00:01, 7.08it/s]\nGenerative process 0: 45%|████▌ | 9/20 [00:01<00:01, 7.08it/s]\nGenerative process 0: 50%|█████ | 10/20 [00:01<00:01, 7.08it/s]\nGenerative process 0: 55%|█████▌ | 11/20 [00:01<00:01, 7.09it/s]\nGenerative process 0: 60%|██████ | 12/20 [00:01<00:01, 7.09it/s]\nGenerative process 0: 65%|██████▌ | 13/20 [00:01<00:00, 7.07it/s]\nGenerative process 0: 70%|███████ | 14/20 [00:01<00:00, 7.04it/s]\nGenerative process 0: 75%|███████▌ | 15/20 [00:02<00:00, 7.01it/s]\nGenerative process 0: 80%|████████ | 16/20 [00:02<00:00, 7.01it/s]\nGenerative process 0: 85%|████████▌ | 17/20 [00:02<00:00, 7.04it/s]\nGenerative process 0: 90%|█████████ | 18/20 [00:02<00:00, 7.06it/s]\nGenerative process 0: 95%|█████████▌| 19/20 [00:02<00:00, 7.06it/s]\nGenerative process 0: 100%|██████████| 20/20 [00:02<00:00, 7.04it/s]\nGenerative process 0: 100%|██████████| 20/20 [00:02<00:00, 7.10it/s]", "metrics": { "predict_time": 12.552633, "total_time": 12.770587 }, "output": "https://replicate.delivery/mgxm/aca26207-3e6c-4fa8-b38e-207b4d56886a/output.png", "started_at": "2022-08-09T14:57:09.254535Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/teu6ub4xtnettpdf5lpkfi6pxq", "cancel": "https://api.replicate.com/v1/predictions/teu6ub4xtnettpdf5lpkfi6pxq/cancel" }, "version": "58e52a5bcc00fdd84a71592542a62320c30d1b6930342a81d5d9a961569351f1" }
Generated inNone is loaded. checkpoint/human_sketch_t601.pth is loaded. Inversion process : 0%| | 0/40 [00:00<?, ?it/s] Inversion process : 2%|▎ | 1/40 [00:00<00:07, 5.44it/s] Inversion process : 5%|▌ | 2/40 [00:00<00:05, 6.46it/s] Inversion process : 8%|▊ | 3/40 [00:00<00:05, 6.82it/s] Inversion process : 10%|█ | 4/40 [00:00<00:05, 7.03it/s] Inversion process : 12%|█▎ | 5/40 [00:00<00:04, 7.16it/s] Inversion process : 15%|█▌ | 6/40 [00:00<00:04, 7.20it/s] Inversion process : 18%|█▊ | 7/40 [00:01<00:04, 7.23it/s] Inversion process : 20%|██ | 8/40 [00:01<00:04, 7.25it/s] Inversion process : 22%|██▎ | 9/40 [00:01<00:04, 7.26it/s] Inversion process : 25%|██▌ | 10/40 [00:01<00:04, 7.26it/s] Inversion process : 28%|██▊ | 11/40 [00:01<00:04, 7.22it/s] Inversion process : 30%|███ | 12/40 [00:01<00:03, 7.22it/s] Inversion process : 32%|███▎ | 13/40 [00:01<00:03, 7.26it/s] Inversion process : 35%|███▌ | 14/40 [00:01<00:03, 7.30it/s] Inversion process : 38%|███▊ | 15/40 [00:02<00:03, 7.29it/s] Inversion process : 40%|████ | 16/40 [00:02<00:03, 7.24it/s] Inversion process : 42%|████▎ | 17/40 [00:02<00:03, 7.20it/s] Inversion process : 45%|████▌ | 18/40 [00:02<00:03, 7.21it/s] Inversion process : 48%|████▊ | 19/40 [00:02<00:02, 7.24it/s] Inversion process : 50%|█████ | 20/40 [00:02<00:02, 7.25it/s] Inversion process : 52%|█████▎ | 21/40 [00:02<00:02, 7.25it/s] Inversion process : 55%|█████▌ | 22/40 [00:03<00:02, 7.23it/s] Inversion process : 57%|█████▊ | 23/40 [00:03<00:02, 7.21it/s] Inversion process : 60%|██████ | 24/40 [00:03<00:02, 7.22it/s] Inversion process : 62%|██████▎ | 25/40 [00:03<00:02, 7.24it/s] Inversion process : 65%|██████▌ | 26/40 [00:03<00:01, 7.23it/s] Inversion process : 68%|██████▊ | 27/40 [00:03<00:01, 7.21it/s] Inversion process : 70%|███████ | 28/40 [00:03<00:01, 7.20it/s] Inversion process : 72%|███████▎ | 29/40 [00:04<00:01, 7.17it/s] Inversion process : 75%|███████▌ | 30/40 [00:04<00:01, 7.14it/s] Inversion process : 78%|███████▊ | 31/40 [00:04<00:01, 7.14it/s] Inversion process : 80%|████████ | 32/40 [00:04<00:01, 7.14it/s] Inversion process : 82%|████████▎ | 33/40 [00:04<00:00, 7.17it/s] Inversion process : 85%|████████▌ | 34/40 [00:04<00:00, 7.20it/s] Inversion process : 88%|████████▊ | 35/40 [00:04<00:00, 7.22it/s] Inversion process : 90%|█████████ | 36/40 [00:05<00:00, 7.20it/s] Inversion process : 92%|█████████▎| 37/40 [00:05<00:00, 7.18it/s] Inversion process : 95%|█████████▌| 38/40 [00:05<00:00, 7.13it/s] Inversion process : 98%|█████████▊| 39/40 [00:05<00:00, 7.10it/s] Inversion process : 98%|█████████▊| 39/40 [00:05<00:00, 7.16it/s] Sampling type: DDIM with eta 0.0, Steps: 20/601 Uniform skip type Generative process 0: 0%| | 0/20 [00:00<?, ?it/s] Generative process 0: 5%|▌ | 1/20 [00:00<00:02, 7.55it/s] Generative process 0: 10%|█ | 2/20 [00:00<00:02, 7.40it/s] Generative process 0: 15%|█▌ | 3/20 [00:00<00:02, 7.36it/s] Generative process 0: 20%|██ | 4/20 [00:00<00:02, 7.32it/s] Generative process 0: 25%|██▌ | 5/20 [00:00<00:02, 7.26it/s] Generative process 0: 30%|███ | 6/20 [00:00<00:01, 7.18it/s] Generative process 0: 35%|███▌ | 7/20 [00:00<00:01, 7.10it/s] Generative process 0: 40%|████ | 8/20 [00:01<00:01, 7.08it/s] Generative process 0: 45%|████▌ | 9/20 [00:01<00:01, 7.08it/s] Generative process 0: 50%|█████ | 10/20 [00:01<00:01, 7.08it/s] Generative process 0: 55%|█████▌ | 11/20 [00:01<00:01, 7.09it/s] Generative process 0: 60%|██████ | 12/20 [00:01<00:01, 7.09it/s] Generative process 0: 65%|██████▌ | 13/20 [00:01<00:00, 7.07it/s] Generative process 0: 70%|███████ | 14/20 [00:01<00:00, 7.04it/s] Generative process 0: 75%|███████▌ | 15/20 [00:02<00:00, 7.01it/s] Generative process 0: 80%|████████ | 16/20 [00:02<00:00, 7.01it/s] Generative process 0: 85%|████████▌ | 17/20 [00:02<00:00, 7.04it/s] Generative process 0: 90%|█████████ | 18/20 [00:02<00:00, 7.06it/s] Generative process 0: 95%|█████████▌| 19/20 [00:02<00:00, 7.06it/s] Generative process 0: 100%|██████████| 20/20 [00:02<00:00, 7.04it/s] Generative process 0: 100%|██████████| 20/20 [00:02<00:00, 7.10it/s]
Want to make some of these yourself?
Run this model