jd7h / zero123plusplus
Turn an image into a set of images from different 3D angles
Prediction
jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474dID42rmtj3bjjrgpns4ofqclq2mxeStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/JpXr7xhOXzpadwXUGcGDgERJ8EJESWv78vewAdeDy4Ba4VrQ/mushroom.png", "remove_background": false, "return_intermediate_images": false }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run jd7h/zero123plusplus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", { input: { image: "https://replicate.delivery/pbxt/JpXr7xhOXzpadwXUGcGDgERJ8EJESWv78vewAdeDy4Ba4VrQ/mushroom.png", remove_background: false, return_intermediate_images: false } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 jd7h/zero123plusplus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", input={ "image": "https://replicate.delivery/pbxt/JpXr7xhOXzpadwXUGcGDgERJ8EJESWv78vewAdeDy4Ba4VrQ/mushroom.png", "remove_background": False, "return_intermediate_images": False } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run jd7h/zero123plusplus 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": "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", "input": { "image": "https://replicate.delivery/pbxt/JpXr7xhOXzpadwXUGcGDgERJ8EJESWv78vewAdeDy4Ba4VrQ/mushroom.png", "remove_background": false, "return_intermediate_images": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-06T15:22:37.592896Z", "created_at": "2023-11-06T15:21:35.982226Z", "data_removed": false, "error": null, "id": "42rmtj3bjjrgpns4ofqclq2mxe", "input": { "image": "https://replicate.delivery/pbxt/JpXr7xhOXzpadwXUGcGDgERJ8EJESWv78vewAdeDy4Ba4VrQ/mushroom.png", "remove_background": false, "return_intermediate_images": false }, "logs": "0%| | 0/75 [00:00<?, ?it/s]\n 1%|▏ | 1/75 [00:00<00:15, 4.69it/s]\n 3%|▎ | 2/75 [00:00<00:12, 5.93it/s]\n 4%|▍ | 3/75 [00:00<00:11, 6.48it/s]\n 5%|▌ | 4/75 [00:00<00:10, 6.75it/s]\n 7%|▋ | 5/75 [00:00<00:10, 6.91it/s]\n 8%|▊ | 6/75 [00:00<00:09, 7.01it/s]\n 9%|▉ | 7/75 [00:01<00:09, 7.08it/s]\n 11%|█ | 8/75 [00:01<00:09, 7.11it/s]\n 12%|█▏ | 9/75 [00:01<00:09, 7.14it/s]\n 13%|█▎ | 10/75 [00:01<00:09, 7.17it/s]\n 15%|█▍ | 11/75 [00:01<00:08, 7.19it/s]\n 16%|█▌ | 12/75 [00:01<00:08, 7.20it/s]\n 17%|█▋ | 13/75 [00:01<00:08, 7.21it/s]\n 19%|█▊ | 14/75 [00:02<00:08, 7.21it/s]\n 20%|██ | 15/75 [00:02<00:08, 7.21it/s]\n 21%|██▏ | 16/75 [00:02<00:08, 7.20it/s]\n 23%|██▎ | 17/75 [00:02<00:08, 7.20it/s]\n 24%|██▍ | 18/75 [00:02<00:07, 7.20it/s]\n 25%|██▌ | 19/75 [00:02<00:07, 7.20it/s]\n 27%|██▋ | 20/75 [00:02<00:07, 7.20it/s]\n 28%|██▊ | 21/75 [00:02<00:07, 7.21it/s]\n 29%|██▉ | 22/75 [00:03<00:07, 7.20it/s]\n 31%|███ | 23/75 [00:03<00:07, 7.19it/s]\n 32%|███▏ | 24/75 [00:03<00:07, 7.18it/s]\n 33%|███▎ | 25/75 [00:03<00:06, 7.18it/s]\n 35%|███▍ | 26/75 [00:03<00:06, 7.17it/s]\n 36%|███▌ | 27/75 [00:03<00:06, 7.17it/s]\n 37%|███▋ | 28/75 [00:03<00:06, 7.16it/s]\n 39%|███▊ | 29/75 [00:04<00:06, 7.16it/s]\n 40%|████ | 30/75 [00:04<00:06, 7.17it/s]\n 41%|████▏ | 31/75 [00:04<00:06, 7.17it/s]\n 43%|████▎ | 32/75 [00:04<00:05, 7.18it/s]\n 44%|████▍ | 33/75 [00:04<00:05, 7.18it/s]\n 45%|████▌ | 34/75 [00:04<00:05, 7.19it/s]\n 47%|████▋ | 35/75 [00:04<00:05, 7.19it/s]\n 48%|████▊ | 36/75 [00:05<00:05, 7.20it/s]\n 49%|████▉ | 37/75 [00:05<00:05, 7.20it/s]\n 51%|█████ | 38/75 [00:05<00:05, 7.19it/s]\n 52%|█████▏ | 39/75 [00:05<00:05, 7.20it/s]\n 53%|█████▎ | 40/75 [00:05<00:04, 7.20it/s]\n 55%|█████▍ | 41/75 [00:05<00:04, 7.20it/s]\n 56%|█████▌ | 42/75 [00:05<00:04, 7.19it/s]\n 57%|█████▋ | 43/75 [00:06<00:04, 7.19it/s]\n 59%|█████▊ | 44/75 [00:06<00:04, 7.18it/s]\n 60%|██████ | 45/75 [00:06<00:04, 7.17it/s]\n 61%|██████▏ | 46/75 [00:06<00:04, 7.18it/s]\n 63%|██████▎ | 47/75 [00:06<00:03, 7.18it/s]\n 64%|██████▍ | 48/75 [00:06<00:03, 7.19it/s]\n 65%|██████▌ | 49/75 [00:06<00:03, 7.18it/s]\n 67%|██████▋ | 50/75 [00:07<00:03, 7.17it/s]\n 68%|██████▊ | 51/75 [00:07<00:03, 7.17it/s]\n 69%|██████▉ | 52/75 [00:07<00:03, 7.16it/s]\n 71%|███████ | 53/75 [00:07<00:03, 7.16it/s]\n 72%|███████▏ | 54/75 [00:07<00:02, 7.17it/s]\n 73%|███████▎ | 55/75 [00:07<00:02, 7.17it/s]\n 75%|███████▍ | 56/75 [00:07<00:02, 7.17it/s]\n 76%|███████▌ | 57/75 [00:07<00:02, 7.18it/s]\n 77%|███████▋ | 58/75 [00:08<00:02, 7.17it/s]\n 79%|███████▊ | 59/75 [00:08<00:02, 7.16it/s]\n 80%|████████ | 60/75 [00:08<00:02, 7.15it/s]\n 81%|████████▏ | 61/75 [00:08<00:01, 7.15it/s]\n 83%|████████▎ | 62/75 [00:08<00:01, 7.15it/s]\n 84%|████████▍ | 63/75 [00:08<00:01, 7.15it/s]\n 85%|████████▌ | 64/75 [00:08<00:01, 7.15it/s]\n 87%|████████▋ | 65/75 [00:09<00:01, 7.14it/s]\n 88%|████████▊ | 66/75 [00:09<00:01, 7.14it/s]\n 89%|████████▉ | 67/75 [00:09<00:01, 7.14it/s]\n 91%|█████████ | 68/75 [00:09<00:00, 7.15it/s]\n 92%|█████████▏| 69/75 [00:09<00:00, 7.17it/s]\n 93%|█████████▎| 70/75 [00:09<00:00, 7.19it/s]\n 95%|█████████▍| 71/75 [00:09<00:00, 7.20it/s]\n 96%|█████████▌| 72/75 [00:10<00:00, 7.22it/s]\n 97%|█████████▋| 73/75 [00:10<00:00, 7.22it/s]\n 99%|█████████▊| 74/75 [00:10<00:00, 7.22it/s]\n100%|██████████| 75/75 [00:10<00:00, 7.23it/s]\n100%|██████████| 75/75 [00:10<00:00, 7.14it/s]", "metrics": { "predict_time": 13.378118, "total_time": 61.61067 }, "output": [ "https://replicate.delivery/pbxt/JiMcP9IVVtoeDSZstTmn4lxmgBSxCGciS09WKKseq2o8ar1RA/output0.jpg" ], "started_at": "2023-11-06T15:22:24.214778Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/42rmtj3bjjrgpns4ofqclq2mxe", "cancel": "https://api.replicate.com/v1/predictions/42rmtj3bjjrgpns4ofqclq2mxe/cancel" }, "version": "d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d" }
Generated in0%| | 0/75 [00:00<?, ?it/s] 1%|▏ | 1/75 [00:00<00:15, 4.69it/s] 3%|▎ | 2/75 [00:00<00:12, 5.93it/s] 4%|▍ | 3/75 [00:00<00:11, 6.48it/s] 5%|▌ | 4/75 [00:00<00:10, 6.75it/s] 7%|▋ | 5/75 [00:00<00:10, 6.91it/s] 8%|▊ | 6/75 [00:00<00:09, 7.01it/s] 9%|▉ | 7/75 [00:01<00:09, 7.08it/s] 11%|█ | 8/75 [00:01<00:09, 7.11it/s] 12%|█▏ | 9/75 [00:01<00:09, 7.14it/s] 13%|█▎ | 10/75 [00:01<00:09, 7.17it/s] 15%|█▍ | 11/75 [00:01<00:08, 7.19it/s] 16%|█▌ | 12/75 [00:01<00:08, 7.20it/s] 17%|█▋ | 13/75 [00:01<00:08, 7.21it/s] 19%|█▊ | 14/75 [00:02<00:08, 7.21it/s] 20%|██ | 15/75 [00:02<00:08, 7.21it/s] 21%|██▏ | 16/75 [00:02<00:08, 7.20it/s] 23%|██▎ | 17/75 [00:02<00:08, 7.20it/s] 24%|██▍ | 18/75 [00:02<00:07, 7.20it/s] 25%|██▌ | 19/75 [00:02<00:07, 7.20it/s] 27%|██▋ | 20/75 [00:02<00:07, 7.20it/s] 28%|██▊ | 21/75 [00:02<00:07, 7.21it/s] 29%|██▉ | 22/75 [00:03<00:07, 7.20it/s] 31%|███ | 23/75 [00:03<00:07, 7.19it/s] 32%|███▏ | 24/75 [00:03<00:07, 7.18it/s] 33%|███▎ | 25/75 [00:03<00:06, 7.18it/s] 35%|███▍ | 26/75 [00:03<00:06, 7.17it/s] 36%|███▌ | 27/75 [00:03<00:06, 7.17it/s] 37%|███▋ | 28/75 [00:03<00:06, 7.16it/s] 39%|███▊ | 29/75 [00:04<00:06, 7.16it/s] 40%|████ | 30/75 [00:04<00:06, 7.17it/s] 41%|████▏ | 31/75 [00:04<00:06, 7.17it/s] 43%|████▎ | 32/75 [00:04<00:05, 7.18it/s] 44%|████▍ | 33/75 [00:04<00:05, 7.18it/s] 45%|████▌ | 34/75 [00:04<00:05, 7.19it/s] 47%|████▋ | 35/75 [00:04<00:05, 7.19it/s] 48%|████▊ | 36/75 [00:05<00:05, 7.20it/s] 49%|████▉ | 37/75 [00:05<00:05, 7.20it/s] 51%|█████ | 38/75 [00:05<00:05, 7.19it/s] 52%|█████▏ | 39/75 [00:05<00:05, 7.20it/s] 53%|█████▎ | 40/75 [00:05<00:04, 7.20it/s] 55%|█████▍ | 41/75 [00:05<00:04, 7.20it/s] 56%|█████▌ | 42/75 [00:05<00:04, 7.19it/s] 57%|█████▋ | 43/75 [00:06<00:04, 7.19it/s] 59%|█████▊ | 44/75 [00:06<00:04, 7.18it/s] 60%|██████ | 45/75 [00:06<00:04, 7.17it/s] 61%|██████▏ | 46/75 [00:06<00:04, 7.18it/s] 63%|██████▎ | 47/75 [00:06<00:03, 7.18it/s] 64%|██████▍ | 48/75 [00:06<00:03, 7.19it/s] 65%|██████▌ | 49/75 [00:06<00:03, 7.18it/s] 67%|██████▋ | 50/75 [00:07<00:03, 7.17it/s] 68%|██████▊ | 51/75 [00:07<00:03, 7.17it/s] 69%|██████▉ | 52/75 [00:07<00:03, 7.16it/s] 71%|███████ | 53/75 [00:07<00:03, 7.16it/s] 72%|███████▏ | 54/75 [00:07<00:02, 7.17it/s] 73%|███████▎ | 55/75 [00:07<00:02, 7.17it/s] 75%|███████▍ | 56/75 [00:07<00:02, 7.17it/s] 76%|███████▌ | 57/75 [00:07<00:02, 7.18it/s] 77%|███████▋ | 58/75 [00:08<00:02, 7.17it/s] 79%|███████▊ | 59/75 [00:08<00:02, 7.16it/s] 80%|████████ | 60/75 [00:08<00:02, 7.15it/s] 81%|████████▏ | 61/75 [00:08<00:01, 7.15it/s] 83%|████████▎ | 62/75 [00:08<00:01, 7.15it/s] 84%|████████▍ | 63/75 [00:08<00:01, 7.15it/s] 85%|████████▌ | 64/75 [00:08<00:01, 7.15it/s] 87%|████████▋ | 65/75 [00:09<00:01, 7.14it/s] 88%|████████▊ | 66/75 [00:09<00:01, 7.14it/s] 89%|████████▉ | 67/75 [00:09<00:01, 7.14it/s] 91%|█████████ | 68/75 [00:09<00:00, 7.15it/s] 92%|█████████▏| 69/75 [00:09<00:00, 7.17it/s] 93%|█████████▎| 70/75 [00:09<00:00, 7.19it/s] 95%|█████████▍| 71/75 [00:09<00:00, 7.20it/s] 96%|█████████▌| 72/75 [00:10<00:00, 7.22it/s] 97%|█████████▋| 73/75 [00:10<00:00, 7.22it/s] 99%|█████████▊| 74/75 [00:10<00:00, 7.22it/s] 100%|██████████| 75/75 [00:10<00:00, 7.23it/s] 100%|██████████| 75/75 [00:10<00:00, 7.14it/s]
Prediction
jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474dIDgvxerktbgvzxrotazhcy4b5inuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/JpXyXEqA1ixjPYD6jJ3uUfKT7Rx4kBKxmsB9gIfrzpdwl6RC/extinguisher.png", "remove_background": false, "return_intermediate_images": false }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run jd7h/zero123plusplus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", { input: { image: "https://replicate.delivery/pbxt/JpXyXEqA1ixjPYD6jJ3uUfKT7Rx4kBKxmsB9gIfrzpdwl6RC/extinguisher.png", remove_background: false, return_intermediate_images: false } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 jd7h/zero123plusplus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", input={ "image": "https://replicate.delivery/pbxt/JpXyXEqA1ixjPYD6jJ3uUfKT7Rx4kBKxmsB9gIfrzpdwl6RC/extinguisher.png", "remove_background": False, "return_intermediate_images": False } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run jd7h/zero123plusplus 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": "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", "input": { "image": "https://replicate.delivery/pbxt/JpXyXEqA1ixjPYD6jJ3uUfKT7Rx4kBKxmsB9gIfrzpdwl6RC/extinguisher.png", "remove_background": false, "return_intermediate_images": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-06T15:29:36.434269Z", "created_at": "2023-11-06T15:29:24.423848Z", "data_removed": false, "error": null, "id": "gvxerktbgvzxrotazhcy4b5inu", "input": { "image": "https://replicate.delivery/pbxt/JpXyXEqA1ixjPYD6jJ3uUfKT7Rx4kBKxmsB9gIfrzpdwl6RC/extinguisher.png", "remove_background": false, "return_intermediate_images": false }, "logs": "0%| | 0/75 [00:00<?, ?it/s]\n 1%|▏ | 1/75 [00:00<00:10, 7.30it/s]\n 3%|▎ | 2/75 [00:00<00:10, 7.26it/s]\n 4%|▍ | 3/75 [00:00<00:09, 7.23it/s]\n 5%|▌ | 4/75 [00:00<00:09, 7.21it/s]\n 7%|▋ | 5/75 [00:00<00:09, 7.20it/s]\n 8%|▊ | 6/75 [00:00<00:09, 7.19it/s]\n 9%|▉ | 7/75 [00:00<00:09, 7.17it/s]\n 11%|█ | 8/75 [00:01<00:09, 7.17it/s]\n 12%|█▏ | 9/75 [00:01<00:09, 7.15it/s]\n 13%|█▎ | 10/75 [00:01<00:09, 7.15it/s]\n 15%|█▍ | 11/75 [00:01<00:08, 7.15it/s]\n 16%|█▌ | 12/75 [00:01<00:08, 7.14it/s]\n 17%|█▋ | 13/75 [00:01<00:08, 7.14it/s]\n 19%|█▊ | 14/75 [00:01<00:08, 7.10it/s]\n 20%|██ | 15/75 [00:02<00:08, 7.08it/s]\n 21%|██▏ | 16/75 [00:02<00:08, 7.09it/s]\n 23%|██▎ | 17/75 [00:02<00:08, 7.06it/s]\n 24%|██▍ | 18/75 [00:02<00:08, 7.10it/s]\n 25%|██▌ | 19/75 [00:02<00:07, 7.12it/s]\n 27%|██▋ | 20/75 [00:02<00:07, 7.14it/s]\n 28%|██▊ | 21/75 [00:02<00:07, 7.14it/s]\n 29%|██▉ | 22/75 [00:03<00:07, 7.15it/s]\n 31%|███ | 23/75 [00:03<00:07, 7.16it/s]\n 32%|███▏ | 24/75 [00:03<00:07, 7.16it/s]\n 33%|███▎ | 25/75 [00:03<00:06, 7.19it/s]\n 35%|███▍ | 26/75 [00:03<00:06, 7.19it/s]\n 36%|███▌ | 27/75 [00:03<00:06, 7.20it/s]\n 37%|███▋ | 28/75 [00:03<00:06, 7.19it/s]\n 39%|███▊ | 29/75 [00:04<00:06, 7.20it/s]\n 40%|████ | 30/75 [00:04<00:06, 7.19it/s]\n 41%|████▏ | 31/75 [00:04<00:06, 7.19it/s]\n 43%|████▎ | 32/75 [00:04<00:05, 7.19it/s]\n 44%|████▍ | 33/75 [00:04<00:05, 7.18it/s]\n 45%|████▌ | 34/75 [00:04<00:05, 7.18it/s]\n 47%|████▋ | 35/75 [00:04<00:05, 7.19it/s]\n 48%|████▊ | 36/75 [00:05<00:05, 7.19it/s]\n 49%|████▉ | 37/75 [00:05<00:05, 7.18it/s]\n 51%|█████ | 38/75 [00:05<00:05, 7.18it/s]\n 52%|█████▏ | 39/75 [00:05<00:05, 7.18it/s]\n 53%|█████▎ | 40/75 [00:05<00:04, 7.18it/s]\n 55%|█████▍ | 41/75 [00:05<00:04, 7.18it/s]\n 56%|█████▌ | 42/75 [00:05<00:04, 7.17it/s]\n 57%|█████▋ | 43/75 [00:06<00:04, 7.17it/s]\n 59%|█████▊ | 44/75 [00:06<00:04, 7.17it/s]\n 60%|██████ | 45/75 [00:06<00:04, 7.16it/s]\n 61%|██████▏ | 46/75 [00:06<00:04, 7.16it/s]\n 63%|██████▎ | 47/75 [00:06<00:03, 7.17it/s]\n 64%|██████▍ | 48/75 [00:06<00:03, 7.17it/s]\n 65%|██████▌ | 49/75 [00:06<00:03, 7.18it/s]\n 67%|██████▋ | 50/75 [00:06<00:03, 7.19it/s]\n 68%|██████▊ | 51/75 [00:07<00:03, 7.19it/s]\n 69%|██████▉ | 52/75 [00:07<00:03, 7.19it/s]\n 71%|███████ | 53/75 [00:07<00:03, 7.18it/s]\n 72%|███████▏ | 54/75 [00:07<00:02, 7.18it/s]\n 73%|███████▎ | 55/75 [00:07<00:02, 7.18it/s]\n 75%|███████▍ | 56/75 [00:07<00:02, 7.19it/s]\n 76%|███████▌ | 57/75 [00:07<00:02, 7.19it/s]\n 77%|███████▋ | 58/75 [00:08<00:02, 7.19it/s]\n 79%|███████▊ | 59/75 [00:08<00:02, 7.19it/s]\n 80%|████████ | 60/75 [00:08<00:02, 7.20it/s]\n 81%|████████▏ | 61/75 [00:08<00:01, 7.19it/s]\n 83%|████████▎ | 62/75 [00:08<00:01, 7.19it/s]\n 84%|████████▍ | 63/75 [00:08<00:01, 7.18it/s]\n 85%|████████▌ | 64/75 [00:08<00:01, 7.17it/s]\n 87%|████████▋ | 65/75 [00:09<00:01, 7.18it/s]\n 88%|████████▊ | 66/75 [00:09<00:01, 7.18it/s]\n 89%|████████▉ | 67/75 [00:09<00:01, 7.18it/s]\n 91%|█████████ | 68/75 [00:09<00:00, 7.18it/s]\n 92%|█████████▏| 69/75 [00:09<00:00, 7.18it/s]\n 93%|█████████▎| 70/75 [00:09<00:00, 7.18it/s]\n 95%|█████████▍| 71/75 [00:09<00:00, 7.17it/s]\n 96%|█████████▌| 72/75 [00:10<00:00, 7.17it/s]\n 97%|█████████▋| 73/75 [00:10<00:00, 7.16it/s]\n 99%|█████████▊| 74/75 [00:10<00:00, 7.17it/s]\n100%|██████████| 75/75 [00:10<00:00, 7.17it/s]\n100%|██████████| 75/75 [00:10<00:00, 7.17it/s]", "metrics": { "predict_time": 12.012135, "total_time": 12.010421 }, "output": [ "https://replicate.delivery/pbxt/OGVibFXZcMrOGRJxggklTE0GbwSUOiy0ew9TjZ9eHSRfCXrjA/output0.jpg" ], "started_at": "2023-11-06T15:29:24.422134Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gvxerktbgvzxrotazhcy4b5inu", "cancel": "https://api.replicate.com/v1/predictions/gvxerktbgvzxrotazhcy4b5inu/cancel" }, "version": "d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d" }
Generated in0%| | 0/75 [00:00<?, ?it/s] 1%|▏ | 1/75 [00:00<00:10, 7.30it/s] 3%|▎ | 2/75 [00:00<00:10, 7.26it/s] 4%|▍ | 3/75 [00:00<00:09, 7.23it/s] 5%|▌ | 4/75 [00:00<00:09, 7.21it/s] 7%|▋ | 5/75 [00:00<00:09, 7.20it/s] 8%|▊ | 6/75 [00:00<00:09, 7.19it/s] 9%|▉ | 7/75 [00:00<00:09, 7.17it/s] 11%|█ | 8/75 [00:01<00:09, 7.17it/s] 12%|█▏ | 9/75 [00:01<00:09, 7.15it/s] 13%|█▎ | 10/75 [00:01<00:09, 7.15it/s] 15%|█▍ | 11/75 [00:01<00:08, 7.15it/s] 16%|█▌ | 12/75 [00:01<00:08, 7.14it/s] 17%|█▋ | 13/75 [00:01<00:08, 7.14it/s] 19%|█▊ | 14/75 [00:01<00:08, 7.10it/s] 20%|██ | 15/75 [00:02<00:08, 7.08it/s] 21%|██▏ | 16/75 [00:02<00:08, 7.09it/s] 23%|██▎ | 17/75 [00:02<00:08, 7.06it/s] 24%|██▍ | 18/75 [00:02<00:08, 7.10it/s] 25%|██▌ | 19/75 [00:02<00:07, 7.12it/s] 27%|██▋ | 20/75 [00:02<00:07, 7.14it/s] 28%|██▊ | 21/75 [00:02<00:07, 7.14it/s] 29%|██▉ | 22/75 [00:03<00:07, 7.15it/s] 31%|███ | 23/75 [00:03<00:07, 7.16it/s] 32%|███▏ | 24/75 [00:03<00:07, 7.16it/s] 33%|███▎ | 25/75 [00:03<00:06, 7.19it/s] 35%|███▍ | 26/75 [00:03<00:06, 7.19it/s] 36%|███▌ | 27/75 [00:03<00:06, 7.20it/s] 37%|███▋ | 28/75 [00:03<00:06, 7.19it/s] 39%|███▊ | 29/75 [00:04<00:06, 7.20it/s] 40%|████ | 30/75 [00:04<00:06, 7.19it/s] 41%|████▏ | 31/75 [00:04<00:06, 7.19it/s] 43%|████▎ | 32/75 [00:04<00:05, 7.19it/s] 44%|████▍ | 33/75 [00:04<00:05, 7.18it/s] 45%|████▌ | 34/75 [00:04<00:05, 7.18it/s] 47%|████▋ | 35/75 [00:04<00:05, 7.19it/s] 48%|████▊ | 36/75 [00:05<00:05, 7.19it/s] 49%|████▉ | 37/75 [00:05<00:05, 7.18it/s] 51%|█████ | 38/75 [00:05<00:05, 7.18it/s] 52%|█████▏ | 39/75 [00:05<00:05, 7.18it/s] 53%|█████▎ | 40/75 [00:05<00:04, 7.18it/s] 55%|█████▍ | 41/75 [00:05<00:04, 7.18it/s] 56%|█████▌ | 42/75 [00:05<00:04, 7.17it/s] 57%|█████▋ | 43/75 [00:06<00:04, 7.17it/s] 59%|█████▊ | 44/75 [00:06<00:04, 7.17it/s] 60%|██████ | 45/75 [00:06<00:04, 7.16it/s] 61%|██████▏ | 46/75 [00:06<00:04, 7.16it/s] 63%|██████▎ | 47/75 [00:06<00:03, 7.17it/s] 64%|██████▍ | 48/75 [00:06<00:03, 7.17it/s] 65%|██████▌ | 49/75 [00:06<00:03, 7.18it/s] 67%|██████▋ | 50/75 [00:06<00:03, 7.19it/s] 68%|██████▊ | 51/75 [00:07<00:03, 7.19it/s] 69%|██████▉ | 52/75 [00:07<00:03, 7.19it/s] 71%|███████ | 53/75 [00:07<00:03, 7.18it/s] 72%|███████▏ | 54/75 [00:07<00:02, 7.18it/s] 73%|███████▎ | 55/75 [00:07<00:02, 7.18it/s] 75%|███████▍ | 56/75 [00:07<00:02, 7.19it/s] 76%|███████▌ | 57/75 [00:07<00:02, 7.19it/s] 77%|███████▋ | 58/75 [00:08<00:02, 7.19it/s] 79%|███████▊ | 59/75 [00:08<00:02, 7.19it/s] 80%|████████ | 60/75 [00:08<00:02, 7.20it/s] 81%|████████▏ | 61/75 [00:08<00:01, 7.19it/s] 83%|████████▎ | 62/75 [00:08<00:01, 7.19it/s] 84%|████████▍ | 63/75 [00:08<00:01, 7.18it/s] 85%|████████▌ | 64/75 [00:08<00:01, 7.17it/s] 87%|████████▋ | 65/75 [00:09<00:01, 7.18it/s] 88%|████████▊ | 66/75 [00:09<00:01, 7.18it/s] 89%|████████▉ | 67/75 [00:09<00:01, 7.18it/s] 91%|█████████ | 68/75 [00:09<00:00, 7.18it/s] 92%|█████████▏| 69/75 [00:09<00:00, 7.18it/s] 93%|█████████▎| 70/75 [00:09<00:00, 7.18it/s] 95%|█████████▍| 71/75 [00:09<00:00, 7.17it/s] 96%|█████████▌| 72/75 [00:10<00:00, 7.17it/s] 97%|█████████▋| 73/75 [00:10<00:00, 7.16it/s] 99%|█████████▊| 74/75 [00:10<00:00, 7.17it/s] 100%|██████████| 75/75 [00:10<00:00, 7.17it/s] 100%|██████████| 75/75 [00:10<00:00, 7.17it/s]
Prediction
jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474dIDbiysuldbd6fvbrjy6oljuot2vuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/JpXxpyXmCvwym2J1IAfhTFhO4FMJSzjA27YsGbGsxI0cCpNd/model-train-side.jpg", "remove_background": false, "return_intermediate_images": false }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run jd7h/zero123plusplus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", { input: { image: "https://replicate.delivery/pbxt/JpXxpyXmCvwym2J1IAfhTFhO4FMJSzjA27YsGbGsxI0cCpNd/model-train-side.jpg", remove_background: false, return_intermediate_images: false } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 jd7h/zero123plusplus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", input={ "image": "https://replicate.delivery/pbxt/JpXxpyXmCvwym2J1IAfhTFhO4FMJSzjA27YsGbGsxI0cCpNd/model-train-side.jpg", "remove_background": False, "return_intermediate_images": False } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run jd7h/zero123plusplus 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": "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", "input": { "image": "https://replicate.delivery/pbxt/JpXxpyXmCvwym2J1IAfhTFhO4FMJSzjA27YsGbGsxI0cCpNd/model-train-side.jpg", "remove_background": false, "return_intermediate_images": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-06T15:28:52.399915Z", "created_at": "2023-11-06T15:28:40.268678Z", "data_removed": false, "error": null, "id": "biysuldbd6fvbrjy6oljuot2vu", "input": { "image": "https://replicate.delivery/pbxt/JpXxpyXmCvwym2J1IAfhTFhO4FMJSzjA27YsGbGsxI0cCpNd/model-train-side.jpg", "remove_background": false, "return_intermediate_images": false }, "logs": "0%| | 0/75 [00:00<?, ?it/s]\n 1%|▏ | 1/75 [00:00<00:10, 7.33it/s]\n 3%|▎ | 2/75 [00:00<00:10, 7.28it/s]\n 4%|▍ | 3/75 [00:00<00:09, 7.26it/s]\n 5%|▌ | 4/75 [00:00<00:09, 7.23it/s]\n 7%|▋ | 5/75 [00:00<00:09, 7.21it/s]\n 8%|▊ | 6/75 [00:00<00:09, 7.20it/s]\n 9%|▉ | 7/75 [00:00<00:09, 7.18it/s]\n 11%|█ | 8/75 [00:01<00:09, 7.17it/s]\n 12%|█▏ | 9/75 [00:01<00:09, 7.16it/s]\n 13%|█▎ | 10/75 [00:01<00:09, 7.16it/s]\n 15%|█▍ | 11/75 [00:01<00:08, 7.16it/s]\n 16%|█▌ | 12/75 [00:01<00:08, 7.16it/s]\n 17%|█▋ | 13/75 [00:01<00:08, 7.15it/s]\n 19%|█▊ | 14/75 [00:01<00:08, 7.15it/s]\n 20%|██ | 15/75 [00:02<00:08, 7.15it/s]\n 21%|██▏ | 16/75 [00:02<00:08, 7.15it/s]\n 23%|██▎ | 17/75 [00:02<00:08, 7.15it/s]\n 24%|██▍ | 18/75 [00:02<00:07, 7.15it/s]\n 25%|██▌ | 19/75 [00:02<00:07, 7.13it/s]\n 27%|██▋ | 20/75 [00:02<00:07, 7.15it/s]\n 28%|██▊ | 21/75 [00:02<00:07, 7.17it/s]\n 29%|██▉ | 22/75 [00:03<00:07, 7.18it/s]\n 31%|███ | 23/75 [00:03<00:07, 7.19it/s]\n 32%|███▏ | 24/75 [00:03<00:07, 7.19it/s]\n 33%|███▎ | 25/75 [00:03<00:06, 7.20it/s]\n 35%|███▍ | 26/75 [00:03<00:06, 7.20it/s]\n 36%|███▌ | 27/75 [00:03<00:06, 7.19it/s]\n 37%|███▋ | 28/75 [00:03<00:06, 7.20it/s]\n 39%|███▊ | 29/75 [00:04<00:06, 7.20it/s]\n 40%|████ | 30/75 [00:04<00:06, 7.21it/s]\n 41%|████▏ | 31/75 [00:04<00:06, 7.22it/s]\n 43%|████▎ | 32/75 [00:04<00:05, 7.22it/s]\n 44%|████▍ | 33/75 [00:04<00:05, 7.21it/s]\n 45%|████▌ | 34/75 [00:04<00:05, 7.21it/s]\n 47%|████▋ | 35/75 [00:04<00:05, 7.22it/s]\n 48%|████▊ | 36/75 [00:05<00:05, 7.22it/s]\n 49%|████▉ | 37/75 [00:05<00:05, 7.21it/s]\n 51%|█████ | 38/75 [00:05<00:05, 7.21it/s]\n 52%|█████▏ | 39/75 [00:05<00:04, 7.20it/s]\n 53%|█████▎ | 40/75 [00:05<00:04, 7.19it/s]\n 55%|█████▍ | 41/75 [00:05<00:04, 7.19it/s]\n 56%|█████▌ | 42/75 [00:05<00:04, 7.19it/s]\n 57%|█████▋ | 43/75 [00:05<00:04, 7.19it/s]\n 59%|█████▊ | 44/75 [00:06<00:04, 7.19it/s]\n 60%|██████ | 45/75 [00:06<00:04, 7.18it/s]\n 61%|██████▏ | 46/75 [00:06<00:04, 7.18it/s]\n 63%|██████▎ | 47/75 [00:06<00:03, 7.18it/s]\n 64%|██████▍ | 48/75 [00:06<00:03, 7.18it/s]\n 65%|██████▌ | 49/75 [00:06<00:03, 7.18it/s]\n 67%|██████▋ | 50/75 [00:06<00:03, 7.19it/s]\n 68%|██████▊ | 51/75 [00:07<00:03, 7.20it/s]\n 69%|██████▉ | 52/75 [00:07<00:03, 7.20it/s]\n 71%|███████ | 53/75 [00:07<00:03, 7.20it/s]\n 72%|███████▏ | 54/75 [00:07<00:02, 7.20it/s]\n 73%|███████▎ | 55/75 [00:07<00:02, 7.20it/s]\n 75%|███████▍ | 56/75 [00:07<00:02, 7.20it/s]\n 76%|███████▌ | 57/75 [00:07<00:02, 7.20it/s]\n 77%|███████▋ | 58/75 [00:08<00:02, 7.20it/s]\n 79%|███████▊ | 59/75 [00:08<00:02, 7.20it/s]\n 80%|████████ | 60/75 [00:08<00:02, 7.20it/s]\n 81%|████████▏ | 61/75 [00:08<00:01, 7.19it/s]\n 83%|████████▎ | 62/75 [00:08<00:01, 7.19it/s]\n 84%|████████▍ | 63/75 [00:08<00:01, 7.19it/s]\n 85%|████████▌ | 64/75 [00:08<00:01, 7.19it/s]\n 87%|████████▋ | 65/75 [00:09<00:01, 7.19it/s]\n 88%|████████▊ | 66/75 [00:09<00:01, 7.18it/s]\n 89%|████████▉ | 67/75 [00:09<00:01, 7.17it/s]\n 91%|█████████ | 68/75 [00:09<00:00, 7.17it/s]\n 92%|█████████▏| 69/75 [00:09<00:00, 7.17it/s]\n 93%|█████████▎| 70/75 [00:09<00:00, 7.18it/s]\n 95%|█████████▍| 71/75 [00:09<00:00, 7.18it/s]\n 96%|█████████▌| 72/75 [00:10<00:00, 7.18it/s]\n 97%|█████████▋| 73/75 [00:10<00:00, 7.17it/s]\n 99%|█████████▊| 74/75 [00:10<00:00, 7.17it/s]\n100%|██████████| 75/75 [00:10<00:00, 7.18it/s]\n100%|██████████| 75/75 [00:10<00:00, 7.19it/s]", "metrics": { "predict_time": 12.200564, "total_time": 12.131237 }, "output": [ "https://replicate.delivery/pbxt/9AeWEtrIfRrH60eYHb4oB0H7wiBifDprjoqZt4zBtbiNDuWHB/output0.jpg" ], "started_at": "2023-11-06T15:28:40.199351Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/biysuldbd6fvbrjy6oljuot2vu", "cancel": "https://api.replicate.com/v1/predictions/biysuldbd6fvbrjy6oljuot2vu/cancel" }, "version": "d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d" }
Generated in0%| | 0/75 [00:00<?, ?it/s] 1%|▏ | 1/75 [00:00<00:10, 7.33it/s] 3%|▎ | 2/75 [00:00<00:10, 7.28it/s] 4%|▍ | 3/75 [00:00<00:09, 7.26it/s] 5%|▌ | 4/75 [00:00<00:09, 7.23it/s] 7%|▋ | 5/75 [00:00<00:09, 7.21it/s] 8%|▊ | 6/75 [00:00<00:09, 7.20it/s] 9%|▉ | 7/75 [00:00<00:09, 7.18it/s] 11%|█ | 8/75 [00:01<00:09, 7.17it/s] 12%|█▏ | 9/75 [00:01<00:09, 7.16it/s] 13%|█▎ | 10/75 [00:01<00:09, 7.16it/s] 15%|█▍ | 11/75 [00:01<00:08, 7.16it/s] 16%|█▌ | 12/75 [00:01<00:08, 7.16it/s] 17%|█▋ | 13/75 [00:01<00:08, 7.15it/s] 19%|█▊ | 14/75 [00:01<00:08, 7.15it/s] 20%|██ | 15/75 [00:02<00:08, 7.15it/s] 21%|██▏ | 16/75 [00:02<00:08, 7.15it/s] 23%|██▎ | 17/75 [00:02<00:08, 7.15it/s] 24%|██▍ | 18/75 [00:02<00:07, 7.15it/s] 25%|██▌ | 19/75 [00:02<00:07, 7.13it/s] 27%|██▋ | 20/75 [00:02<00:07, 7.15it/s] 28%|██▊ | 21/75 [00:02<00:07, 7.17it/s] 29%|██▉ | 22/75 [00:03<00:07, 7.18it/s] 31%|███ | 23/75 [00:03<00:07, 7.19it/s] 32%|███▏ | 24/75 [00:03<00:07, 7.19it/s] 33%|███▎ | 25/75 [00:03<00:06, 7.20it/s] 35%|███▍ | 26/75 [00:03<00:06, 7.20it/s] 36%|███▌ | 27/75 [00:03<00:06, 7.19it/s] 37%|███▋ | 28/75 [00:03<00:06, 7.20it/s] 39%|███▊ | 29/75 [00:04<00:06, 7.20it/s] 40%|████ | 30/75 [00:04<00:06, 7.21it/s] 41%|████▏ | 31/75 [00:04<00:06, 7.22it/s] 43%|████▎ | 32/75 [00:04<00:05, 7.22it/s] 44%|████▍ | 33/75 [00:04<00:05, 7.21it/s] 45%|████▌ | 34/75 [00:04<00:05, 7.21it/s] 47%|████▋ | 35/75 [00:04<00:05, 7.22it/s] 48%|████▊ | 36/75 [00:05<00:05, 7.22it/s] 49%|████▉ | 37/75 [00:05<00:05, 7.21it/s] 51%|█████ | 38/75 [00:05<00:05, 7.21it/s] 52%|█████▏ | 39/75 [00:05<00:04, 7.20it/s] 53%|█████▎ | 40/75 [00:05<00:04, 7.19it/s] 55%|█████▍ | 41/75 [00:05<00:04, 7.19it/s] 56%|█████▌ | 42/75 [00:05<00:04, 7.19it/s] 57%|█████▋ | 43/75 [00:05<00:04, 7.19it/s] 59%|█████▊ | 44/75 [00:06<00:04, 7.19it/s] 60%|██████ | 45/75 [00:06<00:04, 7.18it/s] 61%|██████▏ | 46/75 [00:06<00:04, 7.18it/s] 63%|██████▎ | 47/75 [00:06<00:03, 7.18it/s] 64%|██████▍ | 48/75 [00:06<00:03, 7.18it/s] 65%|██████▌ | 49/75 [00:06<00:03, 7.18it/s] 67%|██████▋ | 50/75 [00:06<00:03, 7.19it/s] 68%|██████▊ | 51/75 [00:07<00:03, 7.20it/s] 69%|██████▉ | 52/75 [00:07<00:03, 7.20it/s] 71%|███████ | 53/75 [00:07<00:03, 7.20it/s] 72%|███████▏ | 54/75 [00:07<00:02, 7.20it/s] 73%|███████▎ | 55/75 [00:07<00:02, 7.20it/s] 75%|███████▍ | 56/75 [00:07<00:02, 7.20it/s] 76%|███████▌ | 57/75 [00:07<00:02, 7.20it/s] 77%|███████▋ | 58/75 [00:08<00:02, 7.20it/s] 79%|███████▊ | 59/75 [00:08<00:02, 7.20it/s] 80%|████████ | 60/75 [00:08<00:02, 7.20it/s] 81%|████████▏ | 61/75 [00:08<00:01, 7.19it/s] 83%|████████▎ | 62/75 [00:08<00:01, 7.19it/s] 84%|████████▍ | 63/75 [00:08<00:01, 7.19it/s] 85%|████████▌ | 64/75 [00:08<00:01, 7.19it/s] 87%|████████▋ | 65/75 [00:09<00:01, 7.19it/s] 88%|████████▊ | 66/75 [00:09<00:01, 7.18it/s] 89%|████████▉ | 67/75 [00:09<00:01, 7.17it/s] 91%|█████████ | 68/75 [00:09<00:00, 7.17it/s] 92%|█████████▏| 69/75 [00:09<00:00, 7.17it/s] 93%|█████████▎| 70/75 [00:09<00:00, 7.18it/s] 95%|█████████▍| 71/75 [00:09<00:00, 7.18it/s] 96%|█████████▌| 72/75 [00:10<00:00, 7.18it/s] 97%|█████████▋| 73/75 [00:10<00:00, 7.17it/s] 99%|█████████▊| 74/75 [00:10<00:00, 7.17it/s] 100%|██████████| 75/75 [00:10<00:00, 7.18it/s] 100%|██████████| 75/75 [00:10<00:00, 7.19it/s]
Prediction
jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474dIDomyvautbihyxm62wfjhfpawxnyStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedby @fofrInput
{ "image": "https://replicate.delivery/pbxt/JpZ6Dgr6rHvp2DYCY9ATlPrOamIHWrqhl84QsviV8I0yQ17j/out-0-44.png", "remove_background": false, "return_intermediate_images": false }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run jd7h/zero123plusplus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", { input: { image: "https://replicate.delivery/pbxt/JpZ6Dgr6rHvp2DYCY9ATlPrOamIHWrqhl84QsviV8I0yQ17j/out-0-44.png", remove_background: false, return_intermediate_images: false } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 jd7h/zero123plusplus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", input={ "image": "https://replicate.delivery/pbxt/JpZ6Dgr6rHvp2DYCY9ATlPrOamIHWrqhl84QsviV8I0yQ17j/out-0-44.png", "remove_background": False, "return_intermediate_images": False } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run jd7h/zero123plusplus 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": "jd7h/zero123plusplus:d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d", "input": { "image": "https://replicate.delivery/pbxt/JpZ6Dgr6rHvp2DYCY9ATlPrOamIHWrqhl84QsviV8I0yQ17j/out-0-44.png", "remove_background": false, "return_intermediate_images": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-06T16:45:58.125508Z", "created_at": "2023-11-06T16:42:57.222516Z", "data_removed": false, "error": null, "id": "omyvautbihyxm62wfjhfpawxny", "input": { "image": "https://replicate.delivery/pbxt/JpZ6Dgr6rHvp2DYCY9ATlPrOamIHWrqhl84QsviV8I0yQ17j/out-0-44.png", "remove_background": false, "return_intermediate_images": false }, "logs": "0%| | 0/75 [00:00<?, ?it/s]\n 1%|▏ | 1/75 [00:00<00:16, 4.61it/s]\n 3%|▎ | 2/75 [00:00<00:12, 5.87it/s]\n 4%|▍ | 3/75 [00:00<00:11, 6.42it/s]\n 5%|▌ | 4/75 [00:00<00:10, 6.70it/s]\n 7%|▋ | 5/75 [00:00<00:10, 6.86it/s]\n 8%|▊ | 6/75 [00:00<00:09, 6.96it/s]\n 9%|▉ | 7/75 [00:01<00:09, 7.02it/s]\n 11%|█ | 8/75 [00:01<00:09, 7.06it/s]\n 12%|█▏ | 9/75 [00:01<00:09, 7.09it/s]\n 13%|█▎ | 10/75 [00:01<00:09, 7.11it/s]\n 15%|█▍ | 11/75 [00:01<00:08, 7.12it/s]\n 16%|█▌ | 12/75 [00:01<00:08, 7.12it/s]\n 17%|█▋ | 13/75 [00:01<00:08, 7.12it/s]\n 19%|█▊ | 14/75 [00:02<00:08, 7.13it/s]\n 20%|██ | 15/75 [00:02<00:08, 7.14it/s]\n 21%|██▏ | 16/75 [00:02<00:08, 7.13it/s]\n 23%|██▎ | 17/75 [00:02<00:08, 7.13it/s]\n 24%|██▍ | 18/75 [00:02<00:07, 7.14it/s]\n 25%|██▌ | 19/75 [00:02<00:07, 7.13it/s]\n 27%|██▋ | 20/75 [00:02<00:07, 7.13it/s]\n 28%|██▊ | 21/75 [00:03<00:07, 7.13it/s]\n 29%|██▉ | 22/75 [00:03<00:07, 7.13it/s]\n 31%|███ | 23/75 [00:03<00:07, 7.12it/s]\n 32%|███▏ | 24/75 [00:03<00:07, 7.12it/s]\n 33%|███▎ | 25/75 [00:03<00:07, 7.13it/s]\n 35%|███▍ | 26/75 [00:03<00:06, 7.13it/s]\n 36%|███▌ | 27/75 [00:03<00:06, 7.13it/s]\n 37%|███▋ | 28/75 [00:03<00:06, 7.13it/s]\n 39%|███▊ | 29/75 [00:04<00:06, 7.13it/s]\n 40%|████ | 30/75 [00:04<00:06, 7.13it/s]\n 41%|████▏ | 31/75 [00:04<00:06, 7.13it/s]\n 43%|████▎ | 32/75 [00:04<00:06, 7.14it/s]\n 44%|████▍ | 33/75 [00:04<00:05, 7.13it/s]\n 45%|████▌ | 34/75 [00:04<00:05, 7.14it/s]\n 47%|████▋ | 35/75 [00:04<00:05, 7.14it/s]\n 48%|████▊ | 36/75 [00:05<00:05, 7.15it/s]\n 49%|████▉ | 37/75 [00:05<00:05, 7.14it/s]\n 51%|█████ | 38/75 [00:05<00:05, 7.14it/s]\n 52%|█████▏ | 39/75 [00:05<00:05, 7.15it/s]\n 53%|█████▎ | 40/75 [00:05<00:04, 7.14it/s]\n 55%|█████▍ | 41/75 [00:05<00:04, 7.15it/s]\n 56%|█████▌ | 42/75 [00:05<00:04, 7.15it/s]\n 57%|█████▋ | 43/75 [00:06<00:04, 7.16it/s]\n 59%|█████▊ | 44/75 [00:06<00:04, 7.17it/s]\n 60%|██████ | 45/75 [00:06<00:04, 7.18it/s]\n 61%|██████▏ | 46/75 [00:06<00:04, 7.18it/s]\n 63%|██████▎ | 47/75 [00:06<00:03, 7.17it/s]\n 64%|██████▍ | 48/75 [00:06<00:03, 7.17it/s]\n 65%|██████▌ | 49/75 [00:06<00:03, 7.18it/s]\n 67%|██████▋ | 50/75 [00:07<00:03, 7.18it/s]\n 68%|██████▊ | 51/75 [00:07<00:03, 7.18it/s]\n 69%|██████▉ | 52/75 [00:07<00:03, 7.18it/s]\n 71%|███████ | 53/75 [00:07<00:03, 7.17it/s]\n 72%|███████▏ | 54/75 [00:07<00:02, 7.18it/s]\n 73%|███████▎ | 55/75 [00:07<00:02, 7.18it/s]\n 75%|███████▍ | 56/75 [00:07<00:02, 7.19it/s]\n 76%|███████▌ | 57/75 [00:08<00:02, 7.20it/s]\n 77%|███████▋ | 58/75 [00:08<00:02, 7.20it/s]\n 79%|███████▊ | 59/75 [00:08<00:02, 7.20it/s]\n 80%|████████ | 60/75 [00:08<00:02, 7.20it/s]\n 81%|████████▏ | 61/75 [00:08<00:01, 7.20it/s]\n 83%|████████▎ | 62/75 [00:08<00:01, 7.19it/s]\n 84%|████████▍ | 63/75 [00:08<00:01, 7.19it/s]\n 85%|████████▌ | 64/75 [00:09<00:01, 7.19it/s]\n 87%|████████▋ | 65/75 [00:09<00:01, 7.18it/s]\n 88%|████████▊ | 66/75 [00:09<00:01, 7.18it/s]\n 89%|████████▉ | 67/75 [00:09<00:01, 7.18it/s]\n 91%|█████████ | 68/75 [00:09<00:00, 7.18it/s]\n 92%|█████████▏| 69/75 [00:09<00:00, 7.18it/s]\n 93%|█████████▎| 70/75 [00:09<00:00, 7.18it/s]\n 95%|█████████▍| 71/75 [00:09<00:00, 7.18it/s]\n 96%|█████████▌| 72/75 [00:10<00:00, 7.18it/s]\n 97%|█████████▋| 73/75 [00:10<00:00, 7.18it/s]\n 99%|█████████▊| 74/75 [00:10<00:00, 7.18it/s]\n100%|██████████| 75/75 [00:10<00:00, 7.18it/s]\n100%|██████████| 75/75 [00:10<00:00, 7.11it/s]", "metrics": { "predict_time": 13.45687, "total_time": 180.902992 }, "output": [ "https://replicate.delivery/pbxt/veTPz7Vvto0SXqEh0Us0FWLKVP1jNehXrVSxSXVOee6VkyWHB/output0.jpg" ], "started_at": "2023-11-06T16:45:44.668638Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/omyvautbihyxm62wfjhfpawxny", "cancel": "https://api.replicate.com/v1/predictions/omyvautbihyxm62wfjhfpawxny/cancel" }, "version": "d1cf158211d2b1c8a7eb70281865127d17962ebcc5250beff862eb5344db474d" }
Generated in0%| | 0/75 [00:00<?, ?it/s] 1%|▏ | 1/75 [00:00<00:16, 4.61it/s] 3%|▎ | 2/75 [00:00<00:12, 5.87it/s] 4%|▍ | 3/75 [00:00<00:11, 6.42it/s] 5%|▌ | 4/75 [00:00<00:10, 6.70it/s] 7%|▋ | 5/75 [00:00<00:10, 6.86it/s] 8%|▊ | 6/75 [00:00<00:09, 6.96it/s] 9%|▉ | 7/75 [00:01<00:09, 7.02it/s] 11%|█ | 8/75 [00:01<00:09, 7.06it/s] 12%|█▏ | 9/75 [00:01<00:09, 7.09it/s] 13%|█▎ | 10/75 [00:01<00:09, 7.11it/s] 15%|█▍ | 11/75 [00:01<00:08, 7.12it/s] 16%|█▌ | 12/75 [00:01<00:08, 7.12it/s] 17%|█▋ | 13/75 [00:01<00:08, 7.12it/s] 19%|█▊ | 14/75 [00:02<00:08, 7.13it/s] 20%|██ | 15/75 [00:02<00:08, 7.14it/s] 21%|██▏ | 16/75 [00:02<00:08, 7.13it/s] 23%|██▎ | 17/75 [00:02<00:08, 7.13it/s] 24%|██▍ | 18/75 [00:02<00:07, 7.14it/s] 25%|██▌ | 19/75 [00:02<00:07, 7.13it/s] 27%|██▋ | 20/75 [00:02<00:07, 7.13it/s] 28%|██▊ | 21/75 [00:03<00:07, 7.13it/s] 29%|██▉ | 22/75 [00:03<00:07, 7.13it/s] 31%|███ | 23/75 [00:03<00:07, 7.12it/s] 32%|███▏ | 24/75 [00:03<00:07, 7.12it/s] 33%|███▎ | 25/75 [00:03<00:07, 7.13it/s] 35%|███▍ | 26/75 [00:03<00:06, 7.13it/s] 36%|███▌ | 27/75 [00:03<00:06, 7.13it/s] 37%|███▋ | 28/75 [00:03<00:06, 7.13it/s] 39%|███▊ | 29/75 [00:04<00:06, 7.13it/s] 40%|████ | 30/75 [00:04<00:06, 7.13it/s] 41%|████▏ | 31/75 [00:04<00:06, 7.13it/s] 43%|████▎ | 32/75 [00:04<00:06, 7.14it/s] 44%|████▍ | 33/75 [00:04<00:05, 7.13it/s] 45%|████▌ | 34/75 [00:04<00:05, 7.14it/s] 47%|████▋ | 35/75 [00:04<00:05, 7.14it/s] 48%|████▊ | 36/75 [00:05<00:05, 7.15it/s] 49%|████▉ | 37/75 [00:05<00:05, 7.14it/s] 51%|█████ | 38/75 [00:05<00:05, 7.14it/s] 52%|█████▏ | 39/75 [00:05<00:05, 7.15it/s] 53%|█████▎ | 40/75 [00:05<00:04, 7.14it/s] 55%|█████▍ | 41/75 [00:05<00:04, 7.15it/s] 56%|█████▌ | 42/75 [00:05<00:04, 7.15it/s] 57%|█████▋ | 43/75 [00:06<00:04, 7.16it/s] 59%|█████▊ | 44/75 [00:06<00:04, 7.17it/s] 60%|██████ | 45/75 [00:06<00:04, 7.18it/s] 61%|██████▏ | 46/75 [00:06<00:04, 7.18it/s] 63%|██████▎ | 47/75 [00:06<00:03, 7.17it/s] 64%|██████▍ | 48/75 [00:06<00:03, 7.17it/s] 65%|██████▌ | 49/75 [00:06<00:03, 7.18it/s] 67%|██████▋ | 50/75 [00:07<00:03, 7.18it/s] 68%|██████▊ | 51/75 [00:07<00:03, 7.18it/s] 69%|██████▉ | 52/75 [00:07<00:03, 7.18it/s] 71%|███████ | 53/75 [00:07<00:03, 7.17it/s] 72%|███████▏ | 54/75 [00:07<00:02, 7.18it/s] 73%|███████▎ | 55/75 [00:07<00:02, 7.18it/s] 75%|███████▍ | 56/75 [00:07<00:02, 7.19it/s] 76%|███████▌ | 57/75 [00:08<00:02, 7.20it/s] 77%|███████▋ | 58/75 [00:08<00:02, 7.20it/s] 79%|███████▊ | 59/75 [00:08<00:02, 7.20it/s] 80%|████████ | 60/75 [00:08<00:02, 7.20it/s] 81%|████████▏ | 61/75 [00:08<00:01, 7.20it/s] 83%|████████▎ | 62/75 [00:08<00:01, 7.19it/s] 84%|████████▍ | 63/75 [00:08<00:01, 7.19it/s] 85%|████████▌ | 64/75 [00:09<00:01, 7.19it/s] 87%|████████▋ | 65/75 [00:09<00:01, 7.18it/s] 88%|████████▊ | 66/75 [00:09<00:01, 7.18it/s] 89%|████████▉ | 67/75 [00:09<00:01, 7.18it/s] 91%|█████████ | 68/75 [00:09<00:00, 7.18it/s] 92%|█████████▏| 69/75 [00:09<00:00, 7.18it/s] 93%|█████████▎| 70/75 [00:09<00:00, 7.18it/s] 95%|█████████▍| 71/75 [00:09<00:00, 7.18it/s] 96%|█████████▌| 72/75 [00:10<00:00, 7.18it/s] 97%|█████████▋| 73/75 [00:10<00:00, 7.18it/s] 99%|█████████▊| 74/75 [00:10<00:00, 7.18it/s] 100%|██████████| 75/75 [00:10<00:00, 7.18it/s] 100%|██████████| 75/75 [00:10<00:00, 7.11it/s]
Want to make some of these yourself?
Run this model