camenduru / lgm
LGM: Large Multi-View Gaussian Model for High-Resolution 3D Content Creation
Prediction
camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2IDjcmtajlb7eqex4as4ic3dpo4xiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 42
- prompt
- a songbird
- negative_prompt
- ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate
{ "seed": 42, "prompt": "a songbird", "input_image": "https://replicate.delivery/pbxt/KN0hQI9pYB3NOpHLqktkkQIblwpXt0IG7qI90n5hEnmV9kvo/bird_rgba.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" }
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 camenduru/lgm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", { input: { seed: 42, prompt: "a songbird", input_image: "https://replicate.delivery/pbxt/KN0hQI9pYB3NOpHLqktkkQIblwpXt0IG7qI90n5hEnmV9kvo/bird_rgba.png", negative_prompt: "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } } ); // 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 camenduru/lgm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", input={ "seed": 42, "prompt": "a songbird", "input_image": "https://replicate.delivery/pbxt/KN0hQI9pYB3NOpHLqktkkQIblwpXt0IG7qI90n5hEnmV9kvo/bird_rgba.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run camenduru/lgm 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": "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", "input": { "seed": 42, "prompt": "a songbird", "input_image": "https://replicate.delivery/pbxt/KN0hQI9pYB3NOpHLqktkkQIblwpXt0IG7qI90n5hEnmV9kvo/bird_rgba.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-08T22:14:43.356946Z", "created_at": "2024-02-08T22:10:43.378888Z", "data_removed": false, "error": null, "id": "jcmtajlb7eqex4as4ic3dpo4xi", "input": { "seed": 42, "prompt": "a songbird", "input_image": "https://replicate.delivery/pbxt/KN0hQI9pYB3NOpHLqktkkQIblwpXt0IG7qI90n5hEnmV9kvo/bird_rgba.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" }, "logs": "0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:03, 8.91it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 17.00it/s]\n 23%|██▎ | 7/30 [00:00<00:01, 18.69it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 19.76it/s]\n 43%|████▎ | 13/30 [00:00<00:00, 20.31it/s]\n 53%|█████▎ | 16/30 [00:00<00:00, 20.64it/s]\n 63%|██████▎ | 19/30 [00:00<00:00, 20.87it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 21.00it/s]\n 83%|████████▎ | 25/30 [00:01<00:00, 21.11it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 21.13it/s]\n100%|██████████| 30/30 [00:01<00:00, 20.29it/s]\n 0%| | 0/180 [00:00<?, ?it/s]\n 1%| | 1/180 [00:00<00:31, 5.70it/s]\n 22%|██▏ | 40/180 [00:00<00:00, 176.49it/s]\n 43%|████▎ | 77/180 [00:00<00:00, 250.29it/s]\n 63%|██████▎ | 114/180 [00:00<00:00, 292.23it/s]\n 82%|████████▏ | 147/180 [00:00<00:00, 298.27it/s]\n100%|██████████| 180/180 [00:00<00:00, 265.13it/s]", "metrics": { "predict_time": 19.012171, "total_time": 239.978058 }, "output": [ "https://replicate.delivery/pbxt/UYQDuTakJJYBPtVUbLA8l7ddav3eozIf8xRle0zlefUQJCmSC/gradio_output.mp4", "https://replicate.delivery/pbxt/UvKKgNj9mT7pIVHzwerhcjkp5cMH4FS5emPVghk2qyzMRwUSA/gradio_output.ply" ], "started_at": "2024-02-08T22:14:24.344775Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/jcmtajlb7eqex4as4ic3dpo4xi", "cancel": "https://api.replicate.com/v1/predictions/jcmtajlb7eqex4as4ic3dpo4xi/cancel" }, "version": "d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2" }
Generated in0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:03, 8.91it/s] 13%|█▎ | 4/30 [00:00<00:01, 17.00it/s] 23%|██▎ | 7/30 [00:00<00:01, 18.69it/s] 33%|███▎ | 10/30 [00:00<00:01, 19.76it/s] 43%|████▎ | 13/30 [00:00<00:00, 20.31it/s] 53%|█████▎ | 16/30 [00:00<00:00, 20.64it/s] 63%|██████▎ | 19/30 [00:00<00:00, 20.87it/s] 73%|███████▎ | 22/30 [00:01<00:00, 21.00it/s] 83%|████████▎ | 25/30 [00:01<00:00, 21.11it/s] 93%|█████████▎| 28/30 [00:01<00:00, 21.13it/s] 100%|██████████| 30/30 [00:01<00:00, 20.29it/s] 0%| | 0/180 [00:00<?, ?it/s] 1%| | 1/180 [00:00<00:31, 5.70it/s] 22%|██▏ | 40/180 [00:00<00:00, 176.49it/s] 43%|████▎ | 77/180 [00:00<00:00, 250.29it/s] 63%|██████▎ | 114/180 [00:00<00:00, 292.23it/s] 82%|████████▏ | 147/180 [00:00<00:00, 298.27it/s] 100%|██████████| 180/180 [00:00<00:00, 265.13it/s]
Prediction
camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2IDimzx74lbaz7mv2idavhjb2uyzqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 42
- negative_prompt
- ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate
{ "seed": 42, "input_image": "https://replicate.delivery/pbxt/KN0ue4iuBYfgpyLEkR6NUxGD0YZBd2HIFQ6vpXiRetLdpczc/anya_rgba.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" }
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 camenduru/lgm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", { input: { seed: 42, input_image: "https://replicate.delivery/pbxt/KN0ue4iuBYfgpyLEkR6NUxGD0YZBd2HIFQ6vpXiRetLdpczc/anya_rgba.png", negative_prompt: "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } } ); // 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 camenduru/lgm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", input={ "seed": 42, "input_image": "https://replicate.delivery/pbxt/KN0ue4iuBYfgpyLEkR6NUxGD0YZBd2HIFQ6vpXiRetLdpczc/anya_rgba.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run camenduru/lgm 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": "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", "input": { "seed": 42, "input_image": "https://replicate.delivery/pbxt/KN0ue4iuBYfgpyLEkR6NUxGD0YZBd2HIFQ6vpXiRetLdpczc/anya_rgba.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-08T22:23:50.737673Z", "created_at": "2024-02-08T22:18:27.922028Z", "data_removed": false, "error": null, "id": "imzx74lbaz7mv2idavhjb2uyzq", "input": { "seed": 42, "input_image": "https://replicate.delivery/pbxt/KN0ue4iuBYfgpyLEkR6NUxGD0YZBd2HIFQ6vpXiRetLdpczc/anya_rgba.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" }, "logs": "0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:03, 8.53it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 16.76it/s]\n 23%|██▎ | 7/30 [00:00<00:01, 19.00it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 19.99it/s]\n 43%|████▎ | 13/30 [00:00<00:00, 20.54it/s]\n 53%|█████▎ | 16/30 [00:00<00:00, 20.84it/s]\n 63%|██████▎ | 19/30 [00:00<00:00, 21.03it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 21.16it/s]\n 83%|████████▎ | 25/30 [00:01<00:00, 21.23it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 21.27it/s]\n100%|██████████| 30/30 [00:01<00:00, 20.42it/s]\n 0%| | 0/180 [00:00<?, ?it/s]\n 1%| | 1/180 [00:00<00:35, 5.11it/s]\n 22%|██▏ | 40/180 [00:00<00:00, 166.94it/s]\n 44%|████▍ | 79/180 [00:00<00:00, 250.23it/s]\n 63%|██████▎ | 113/180 [00:00<00:00, 280.28it/s]\n 83%|████████▎ | 149/180 [00:00<00:00, 305.61it/s]\n100%|██████████| 180/180 [00:00<00:00, 266.25it/s]", "metrics": { "predict_time": 20.789729, "total_time": 322.815645 }, "output": [ "https://replicate.delivery/pbxt/ESDni7SAzJ4xFp5Ka30Igi2MCcExQ1GJAQ6PNGCykImdGMlE/gradio_output.mp4", "https://replicate.delivery/pbxt/wZZnL6EX2RpvDZzKdtehwD0ErXxBhC5jAw9hDGpBpep2ZwUSA/gradio_output.ply" ], "started_at": "2024-02-08T22:23:29.947944Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/imzx74lbaz7mv2idavhjb2uyzq", "cancel": "https://api.replicate.com/v1/predictions/imzx74lbaz7mv2idavhjb2uyzq/cancel" }, "version": "d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2" }
Generated in0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:03, 8.53it/s] 13%|█▎ | 4/30 [00:00<00:01, 16.76it/s] 23%|██▎ | 7/30 [00:00<00:01, 19.00it/s] 33%|███▎ | 10/30 [00:00<00:01, 19.99it/s] 43%|████▎ | 13/30 [00:00<00:00, 20.54it/s] 53%|█████▎ | 16/30 [00:00<00:00, 20.84it/s] 63%|██████▎ | 19/30 [00:00<00:00, 21.03it/s] 73%|███████▎ | 22/30 [00:01<00:00, 21.16it/s] 83%|████████▎ | 25/30 [00:01<00:00, 21.23it/s] 93%|█████████▎| 28/30 [00:01<00:00, 21.27it/s] 100%|██████████| 30/30 [00:01<00:00, 20.42it/s] 0%| | 0/180 [00:00<?, ?it/s] 1%| | 1/180 [00:00<00:35, 5.11it/s] 22%|██▏ | 40/180 [00:00<00:00, 166.94it/s] 44%|████▍ | 79/180 [00:00<00:00, 250.23it/s] 63%|██████▎ | 113/180 [00:00<00:00, 280.28it/s] 83%|████████▎ | 149/180 [00:00<00:00, 305.61it/s] 100%|██████████| 180/180 [00:00<00:00, 266.25it/s]
Prediction
camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2IDzg7n2pdbzu3zo4yct7xr7g7qeiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 42
- prompt
- a pink car
- negative_prompt
- ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate
{ "seed": 42, "prompt": "a pink car", "input_image": "https://replicate.delivery/pbxt/KN14YLOaJiksLEjNiUuw4IIIEO6GyzG0uBRq1rsnBCHWFa99/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" }
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 camenduru/lgm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", { input: { seed: 42, prompt: "a pink car", input_image: "https://replicate.delivery/pbxt/KN14YLOaJiksLEjNiUuw4IIIEO6GyzG0uBRq1rsnBCHWFa99/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", negative_prompt: "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } } ); // 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 camenduru/lgm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", input={ "seed": 42, "prompt": "a pink car", "input_image": "https://replicate.delivery/pbxt/KN14YLOaJiksLEjNiUuw4IIIEO6GyzG0uBRq1rsnBCHWFa99/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run camenduru/lgm 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": "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", "input": { "seed": 42, "prompt": "a pink car", "input_image": "https://replicate.delivery/pbxt/KN14YLOaJiksLEjNiUuw4IIIEO6GyzG0uBRq1rsnBCHWFa99/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-08T22:30:53.585576Z", "created_at": "2024-02-08T22:28:55.938400Z", "data_removed": false, "error": null, "id": "zg7n2pdbzu3zo4yct7xr7g7qei", "input": { "seed": 42, "prompt": "a pink car", "input_image": "https://replicate.delivery/pbxt/KN14YLOaJiksLEjNiUuw4IIIEO6GyzG0uBRq1rsnBCHWFa99/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" }, "logs": "0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:03, 8.77it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 16.87it/s]\n 23%|██▎ | 7/30 [00:00<00:01, 19.07it/s]\n 33%|███▎ | 10/30 [00:00<00:00, 20.06it/s]\n 43%|████▎ | 13/30 [00:00<00:00, 20.57it/s]\n 53%|█████▎ | 16/30 [00:00<00:00, 20.83it/s]\n 63%|██████▎ | 19/30 [00:00<00:00, 21.01it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 21.13it/s]\n 83%|████████▎ | 25/30 [00:01<00:00, 21.20it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 21.22it/s]\n100%|██████████| 30/30 [00:01<00:00, 20.42it/s]\n 0%| | 0/180 [00:00<?, ?it/s]\n 1%| | 1/180 [00:00<00:29, 6.12it/s]\n 19%|█▉ | 34/180 [00:00<00:00, 155.39it/s]\n 37%|███▋ | 67/180 [00:00<00:00, 223.51it/s]\n 56%|█████▌ | 100/180 [00:00<00:00, 260.45it/s]\n 74%|███████▍ | 134/180 [00:00<00:00, 286.54it/s]\n 93%|█████████▎| 168/180 [00:00<00:00, 302.15it/s]\n100%|██████████| 180/180 [00:00<00:00, 253.49it/s]", "metrics": { "predict_time": 11.661531, "total_time": 117.647176 }, "output": [ "https://replicate.delivery/pbxt/aWv659ehhSUnTqEEePCts4mW522VVzffRuRnydWKZ29xBCTJB/gradio_output.mp4", "https://replicate.delivery/pbxt/hfjpJJ3fFDktFUoejVtMS7FGxz1nEnMPTQeqBNXoBpOxBCTJB/gradio_output.ply" ], "started_at": "2024-02-08T22:30:41.924045Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/zg7n2pdbzu3zo4yct7xr7g7qei", "cancel": "https://api.replicate.com/v1/predictions/zg7n2pdbzu3zo4yct7xr7g7qei/cancel" }, "version": "d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2" }
Generated in0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:03, 8.77it/s] 13%|█▎ | 4/30 [00:00<00:01, 16.87it/s] 23%|██▎ | 7/30 [00:00<00:01, 19.07it/s] 33%|███▎ | 10/30 [00:00<00:00, 20.06it/s] 43%|████▎ | 13/30 [00:00<00:00, 20.57it/s] 53%|█████▎ | 16/30 [00:00<00:00, 20.83it/s] 63%|██████▎ | 19/30 [00:00<00:00, 21.01it/s] 73%|███████▎ | 22/30 [00:01<00:00, 21.13it/s] 83%|████████▎ | 25/30 [00:01<00:00, 21.20it/s] 93%|█████████▎| 28/30 [00:01<00:00, 21.22it/s] 100%|██████████| 30/30 [00:01<00:00, 20.42it/s] 0%| | 0/180 [00:00<?, ?it/s] 1%| | 1/180 [00:00<00:29, 6.12it/s] 19%|█▉ | 34/180 [00:00<00:00, 155.39it/s] 37%|███▋ | 67/180 [00:00<00:00, 223.51it/s] 56%|█████▌ | 100/180 [00:00<00:00, 260.45it/s] 74%|███████▍ | 134/180 [00:00<00:00, 286.54it/s] 93%|█████████▎| 168/180 [00:00<00:00, 302.15it/s] 100%|██████████| 180/180 [00:00<00:00, 253.49it/s]
Prediction
camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2IDv2vy4gtbjx3g45mtxm2phi64wiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 534534
- prompt
- a car
- negative_prompt
- ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate
{ "seed": 534534, "prompt": "a car", "input_image": "https://replicate.delivery/pbxt/KN18GSEFdMtBvdsAM3UmQ0ILPwsaWSDrpKirK3bwreiR3nWh/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" }
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 camenduru/lgm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", { input: { seed: 534534, prompt: "a car", input_image: "https://replicate.delivery/pbxt/KN18GSEFdMtBvdsAM3UmQ0ILPwsaWSDrpKirK3bwreiR3nWh/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", negative_prompt: "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } } ); // 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 camenduru/lgm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", input={ "seed": 534534, "prompt": "a car", "input_image": "https://replicate.delivery/pbxt/KN18GSEFdMtBvdsAM3UmQ0ILPwsaWSDrpKirK3bwreiR3nWh/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run camenduru/lgm 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": "camenduru/lgm:d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2", "input": { "seed": 534534, "prompt": "a car", "input_image": "https://replicate.delivery/pbxt/KN18GSEFdMtBvdsAM3UmQ0ILPwsaWSDrpKirK3bwreiR3nWh/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-08T22:33:00.558620Z", "created_at": "2024-02-08T22:32:50.338507Z", "data_removed": false, "error": null, "id": "v2vy4gtbjx3g45mtxm2phi64wi", "input": { "seed": 534534, "prompt": "a car", "input_image": "https://replicate.delivery/pbxt/KN18GSEFdMtBvdsAM3UmQ0ILPwsaWSDrpKirK3bwreiR3nWh/replicate-prediction-c63rmnjbucdvy5vpmjhtndgdhm.png", "negative_prompt": "ugly, blurry, pixelated obscure, unnatural colors, poor lighting, dull, unclear, cropped, lowres, low quality, artifacts, duplicate" }, "logs": "0%| | 0/30 [00:00<?, ?it/s]\n 10%|█ | 3/30 [00:00<00:01, 21.39it/s]\n 20%|██ | 6/30 [00:00<00:01, 21.16it/s]\n 30%|███ | 9/30 [00:00<00:00, 21.16it/s]\n 40%|████ | 12/30 [00:00<00:00, 21.22it/s]\n 50%|█████ | 15/30 [00:00<00:00, 21.25it/s]\n 60%|██████ | 18/30 [00:00<00:00, 21.30it/s]\n 70%|███████ | 21/30 [00:00<00:00, 21.35it/s]\n 80%|████████ | 24/30 [00:01<00:00, 21.36it/s]\n 90%|█████████ | 27/30 [00:01<00:00, 21.39it/s]\n100%|██████████| 30/30 [00:01<00:00, 21.39it/s]\n100%|██████████| 30/30 [00:01<00:00, 21.32it/s]\n 0%| | 0/180 [00:00<?, ?it/s]\n 19%|█▉ | 35/180 [00:00<00:00, 345.99it/s]\n 39%|███▉ | 70/180 [00:00<00:00, 342.25it/s]\n 58%|█████▊ | 105/180 [00:00<00:00, 342.68it/s]\n 78%|███████▊ | 141/180 [00:00<00:00, 345.23it/s]\n 98%|█████████▊| 176/180 [00:00<00:00, 344.76it/s]\n100%|██████████| 180/180 [00:00<00:00, 344.28it/s]", "metrics": { "predict_time": 10.052584, "total_time": 10.220113 }, "output": [ "https://replicate.delivery/pbxt/3Yy1u7OChRIvLNlCocdlO4JAxleMBVtORklmhm9fqXwaiwUSA/gradio_output.mp4", "https://replicate.delivery/pbxt/0Upek5SgOdSDda31IV6lqFmY2wosLc9tvJHBxoZq942NRYKJA/gradio_output.ply" ], "started_at": "2024-02-08T22:32:50.506036Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/v2vy4gtbjx3g45mtxm2phi64wi", "cancel": "https://api.replicate.com/v1/predictions/v2vy4gtbjx3g45mtxm2phi64wi/cancel" }, "version": "d2870893aa115773465a823fe70fd446673604189843f39a99642dd9171e05e2" }
Generated in0%| | 0/30 [00:00<?, ?it/s] 10%|█ | 3/30 [00:00<00:01, 21.39it/s] 20%|██ | 6/30 [00:00<00:01, 21.16it/s] 30%|███ | 9/30 [00:00<00:00, 21.16it/s] 40%|████ | 12/30 [00:00<00:00, 21.22it/s] 50%|█████ | 15/30 [00:00<00:00, 21.25it/s] 60%|██████ | 18/30 [00:00<00:00, 21.30it/s] 70%|███████ | 21/30 [00:00<00:00, 21.35it/s] 80%|████████ | 24/30 [00:01<00:00, 21.36it/s] 90%|█████████ | 27/30 [00:01<00:00, 21.39it/s] 100%|██████████| 30/30 [00:01<00:00, 21.39it/s] 100%|██████████| 30/30 [00:01<00:00, 21.32it/s] 0%| | 0/180 [00:00<?, ?it/s] 19%|█▉ | 35/180 [00:00<00:00, 345.99it/s] 39%|███▉ | 70/180 [00:00<00:00, 342.25it/s] 58%|█████▊ | 105/180 [00:00<00:00, 342.68it/s] 78%|███████▊ | 141/180 [00:00<00:00, 345.23it/s] 98%|█████████▊| 176/180 [00:00<00:00, 344.76it/s] 100%|██████████| 180/180 [00:00<00:00, 344.28it/s]
Want to make some of these yourself?
Run this model