cjwbw / lambda-eclipse
λ-ECLIPSE: Multi-Concept Personalized Text-to-Image Diffusion Models by Leveraging CLIP Latent Space
Prediction
cjwbw/lambda-eclipse:0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55IDio7rpm3bsnmvixw34b3buj33pqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- a cat wearing glasses at the beach
- guidance_scale
- 4
- negative_prompt
- over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry
- subject_category1
- cat
- subject_category2
- glasses
- num_inference_steps
- 50
{ "image1": "https://replicate.delivery/pbxt/KNhvYb6Ux4ZbIu4C0W9W5Z2DDOkFvhwSl9h3O0zv8sbQuf5N/cat.png", "image2": "https://replicate.delivery/pbxt/KNhvYqUGSU8ZuYWSX0UiJswZ0hLV63GSzeKT4CV0RRU1W4rc/blue_sunglasses.png", "prompt": "a cat wearing glasses at the beach", "guidance_scale": 4, "negative_prompt": "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", "subject_category1": "cat", "subject_category2": "glasses", "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/lambda-eclipse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/lambda-eclipse:0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55", { input: { image1: "https://replicate.delivery/pbxt/KNhvYb6Ux4ZbIu4C0W9W5Z2DDOkFvhwSl9h3O0zv8sbQuf5N/cat.png", image2: "https://replicate.delivery/pbxt/KNhvYqUGSU8ZuYWSX0UiJswZ0hLV63GSzeKT4CV0RRU1W4rc/blue_sunglasses.png", prompt: "a cat wearing glasses at the beach", guidance_scale: 4, negative_prompt: "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", subject_category1: "cat", subject_category2: "glasses", num_inference_steps: 50 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/lambda-eclipse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/lambda-eclipse:0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55", input={ "image1": "https://replicate.delivery/pbxt/KNhvYb6Ux4ZbIu4C0W9W5Z2DDOkFvhwSl9h3O0zv8sbQuf5N/cat.png", "image2": "https://replicate.delivery/pbxt/KNhvYqUGSU8ZuYWSX0UiJswZ0hLV63GSzeKT4CV0RRU1W4rc/blue_sunglasses.png", "prompt": "a cat wearing glasses at the beach", "guidance_scale": 4, "negative_prompt": "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", "subject_category1": "cat", "subject_category2": "glasses", "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/lambda-eclipse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "cjwbw/lambda-eclipse:0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55", "input": { "image1": "https://replicate.delivery/pbxt/KNhvYb6Ux4ZbIu4C0W9W5Z2DDOkFvhwSl9h3O0zv8sbQuf5N/cat.png", "image2": "https://replicate.delivery/pbxt/KNhvYqUGSU8ZuYWSX0UiJswZ0hLV63GSzeKT4CV0RRU1W4rc/blue_sunglasses.png", "prompt": "a cat wearing glasses at the beach", "guidance_scale": 4, "negative_prompt": "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", "subject_category1": "cat", "subject_category2": "glasses", "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-10T23:28:31.887973Z", "created_at": "2024-02-10T23:28:24.848434Z", "data_removed": false, "error": null, "id": "io7rpm3bsnmvixw34b3buj33pq", "input": { "image1": "https://replicate.delivery/pbxt/KNhvYb6Ux4ZbIu4C0W9W5Z2DDOkFvhwSl9h3O0zv8sbQuf5N/cat.png", "image2": "https://replicate.delivery/pbxt/KNhvYqUGSU8ZuYWSX0UiJswZ0hLV63GSzeKT4CV0RRU1W4rc/blue_sunglasses.png", "prompt": "a cat wearing glasses at the beach", "guidance_scale": 4, "negative_prompt": "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", "subject_category1": "cat", "subject_category2": "glasses", "num_inference_steps": 50 }, "logs": "Using seed: 50866\n 0%| | 0/50 [00:00<?, ?it/s]\n 4%|▍ | 2/50 [00:00<00:03, 12.38it/s]\n 8%|▊ | 4/50 [00:00<00:03, 12.44it/s]\n 12%|█▏ | 6/50 [00:00<00:03, 12.47it/s]\n 16%|█▌ | 8/50 [00:00<00:03, 12.49it/s]\n 20%|██ | 10/50 [00:00<00:03, 12.49it/s]\n 24%|██▍ | 12/50 [00:00<00:03, 12.52it/s]\n 28%|██▊ | 14/50 [00:01<00:02, 12.53it/s]\n 32%|███▏ | 16/50 [00:01<00:02, 12.56it/s]\n 36%|███▌ | 18/50 [00:01<00:02, 12.58it/s]\n 40%|████ | 20/50 [00:01<00:02, 12.60it/s]\n 44%|████▍ | 22/50 [00:01<00:02, 12.60it/s]\n 48%|████▊ | 24/50 [00:01<00:02, 12.55it/s]\n 52%|█████▏ | 26/50 [00:02<00:01, 12.56it/s]\n 56%|█████▌ | 28/50 [00:02<00:01, 12.58it/s]\n 60%|██████ | 30/50 [00:02<00:01, 12.59it/s]\n 64%|██████▍ | 32/50 [00:02<00:01, 12.58it/s]\n 68%|██████▊ | 34/50 [00:02<00:01, 12.60it/s]\n 72%|███████▏ | 36/50 [00:02<00:01, 12.61it/s]\n 76%|███████▌ | 38/50 [00:03<00:00, 12.61it/s]\n 80%|████████ | 40/50 [00:03<00:00, 12.61it/s]\n 84%|████████▍ | 42/50 [00:03<00:00, 12.61it/s]\n 88%|████████▊ | 44/50 [00:03<00:00, 12.61it/s]\n 92%|█████████▏| 46/50 [00:03<00:00, 12.60it/s]\n 96%|█████████▌| 48/50 [00:03<00:00, 12.60it/s]\n100%|██████████| 50/50 [00:03<00:00, 12.60it/s]\n100%|██████████| 50/50 [00:03<00:00, 12.57it/s]", "metrics": { "predict_time": 7.003064, "total_time": 7.039539 }, "output": "https://replicate.delivery/pbxt/hrAQiNWHRxZqAhezHKf5rSyN39iXFCgKmS711HqubX4eE3qkA/out.png", "started_at": "2024-02-10T23:28:24.884909Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/io7rpm3bsnmvixw34b3buj33pq", "cancel": "https://api.replicate.com/v1/predictions/io7rpm3bsnmvixw34b3buj33pq/cancel" }, "version": "0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55" }
Generated inUsing seed: 50866 0%| | 0/50 [00:00<?, ?it/s] 4%|▍ | 2/50 [00:00<00:03, 12.38it/s] 8%|▊ | 4/50 [00:00<00:03, 12.44it/s] 12%|█▏ | 6/50 [00:00<00:03, 12.47it/s] 16%|█▌ | 8/50 [00:00<00:03, 12.49it/s] 20%|██ | 10/50 [00:00<00:03, 12.49it/s] 24%|██▍ | 12/50 [00:00<00:03, 12.52it/s] 28%|██▊ | 14/50 [00:01<00:02, 12.53it/s] 32%|███▏ | 16/50 [00:01<00:02, 12.56it/s] 36%|███▌ | 18/50 [00:01<00:02, 12.58it/s] 40%|████ | 20/50 [00:01<00:02, 12.60it/s] 44%|████▍ | 22/50 [00:01<00:02, 12.60it/s] 48%|████▊ | 24/50 [00:01<00:02, 12.55it/s] 52%|█████▏ | 26/50 [00:02<00:01, 12.56it/s] 56%|█████▌ | 28/50 [00:02<00:01, 12.58it/s] 60%|██████ | 30/50 [00:02<00:01, 12.59it/s] 64%|██████▍ | 32/50 [00:02<00:01, 12.58it/s] 68%|██████▊ | 34/50 [00:02<00:01, 12.60it/s] 72%|███████▏ | 36/50 [00:02<00:01, 12.61it/s] 76%|███████▌ | 38/50 [00:03<00:00, 12.61it/s] 80%|████████ | 40/50 [00:03<00:00, 12.61it/s] 84%|████████▍ | 42/50 [00:03<00:00, 12.61it/s] 88%|████████▊ | 44/50 [00:03<00:00, 12.61it/s] 92%|█████████▏| 46/50 [00:03<00:00, 12.60it/s] 96%|█████████▌| 48/50 [00:03<00:00, 12.60it/s] 100%|██████████| 50/50 [00:03<00:00, 12.60it/s] 100%|██████████| 50/50 [00:03<00:00, 12.57it/s]
Prediction
cjwbw/lambda-eclipse:0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55IDaxstxh3b43zwhorzjtwxwlomlaStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- statue sitting on a toilet
- guidance_scale
- 7.5
- negative_prompt
- over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry
- subject_category1
- statue
- subject_category2
- toilet
- num_inference_steps
- 50
{ "image1": "https://replicate.delivery/pbxt/KNjws1gm5AZJn4MVNu81oKRCxpEFZm49LdWgNjS7Gzw2Joyy/download%20%281%29.png", "image2": "https://replicate.delivery/pbxt/KNjwsJ2MD0kh3BShBPVyI3jpgJ2YoB0Qqcxvp7h1wKladCh1/download.png", "prompt": "statue sitting on a toilet", "guidance_scale": 7.5, "negative_prompt": "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", "subject_category1": "statue", "subject_category2": "toilet", "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/lambda-eclipse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/lambda-eclipse:0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55", { input: { image1: "https://replicate.delivery/pbxt/KNjws1gm5AZJn4MVNu81oKRCxpEFZm49LdWgNjS7Gzw2Joyy/download%20%281%29.png", image2: "https://replicate.delivery/pbxt/KNjwsJ2MD0kh3BShBPVyI3jpgJ2YoB0Qqcxvp7h1wKladCh1/download.png", prompt: "statue sitting on a toilet", guidance_scale: 7.5, negative_prompt: "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", subject_category1: "statue", subject_category2: "toilet", num_inference_steps: 50 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/lambda-eclipse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/lambda-eclipse:0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55", input={ "image1": "https://replicate.delivery/pbxt/KNjws1gm5AZJn4MVNu81oKRCxpEFZm49LdWgNjS7Gzw2Joyy/download%20%281%29.png", "image2": "https://replicate.delivery/pbxt/KNjwsJ2MD0kh3BShBPVyI3jpgJ2YoB0Qqcxvp7h1wKladCh1/download.png", "prompt": "statue sitting on a toilet", "guidance_scale": 7.5, "negative_prompt": "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", "subject_category1": "statue", "subject_category2": "toilet", "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/lambda-eclipse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "cjwbw/lambda-eclipse:0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55", "input": { "image1": "https://replicate.delivery/pbxt/KNjws1gm5AZJn4MVNu81oKRCxpEFZm49LdWgNjS7Gzw2Joyy/download%20%281%29.png", "image2": "https://replicate.delivery/pbxt/KNjwsJ2MD0kh3BShBPVyI3jpgJ2YoB0Qqcxvp7h1wKladCh1/download.png", "prompt": "statue sitting on a toilet", "guidance_scale": 7.5, "negative_prompt": "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", "subject_category1": "statue", "subject_category2": "toilet", "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-10T23:25:24.347599Z", "created_at": "2024-02-10T23:25:18.928614Z", "data_removed": false, "error": null, "id": "axstxh3b43zwhorzjtwxwlomla", "input": { "image1": "https://replicate.delivery/pbxt/KNjws1gm5AZJn4MVNu81oKRCxpEFZm49LdWgNjS7Gzw2Joyy/download%20%281%29.png", "image2": "https://replicate.delivery/pbxt/KNjwsJ2MD0kh3BShBPVyI3jpgJ2YoB0Qqcxvp7h1wKladCh1/download.png", "prompt": "statue sitting on a toilet", "guidance_scale": 7.5, "negative_prompt": "over-exposure, under-exposure, saturated, duplicate, out of frame, lowres, cropped, worst quality, low quality, jpeg artifacts, morbid, mutilated, ugly, bad anatomy, bad proportions, deformed, blurry", "subject_category1": "statue", "subject_category2": "toilet", "num_inference_steps": 50 }, "logs": "Using seed: 10148\n 0%| | 0/50 [00:00<?, ?it/s]\n 4%|▍ | 2/50 [00:00<00:03, 12.28it/s]\n 8%|▊ | 4/50 [00:00<00:03, 12.44it/s]\n 12%|█▏ | 6/50 [00:00<00:03, 12.49it/s]\n 16%|█▌ | 8/50 [00:00<00:03, 12.51it/s]\n 20%|██ | 10/50 [00:00<00:03, 12.52it/s]\n 24%|██▍ | 12/50 [00:00<00:03, 12.52it/s]\n 28%|██▊ | 14/50 [00:01<00:02, 12.52it/s]\n 32%|███▏ | 16/50 [00:01<00:02, 12.52it/s]\n 36%|███▌ | 18/50 [00:01<00:02, 12.51it/s]\n 40%|████ | 20/50 [00:01<00:02, 12.50it/s]\n 44%|████▍ | 22/50 [00:01<00:02, 12.51it/s]\n 48%|████▊ | 24/50 [00:01<00:02, 12.50it/s]\n 52%|█████▏ | 26/50 [00:02<00:01, 12.51it/s]\n 56%|█████▌ | 28/50 [00:02<00:01, 12.51it/s]\n 60%|██████ | 30/50 [00:02<00:01, 12.50it/s]\n 64%|██████▍ | 32/50 [00:02<00:01, 12.50it/s]\n 68%|██████▊ | 34/50 [00:02<00:01, 12.50it/s]\n 72%|███████▏ | 36/50 [00:02<00:01, 12.52it/s]\n 76%|███████▌ | 38/50 [00:03<00:00, 12.54it/s]\n 80%|████████ | 40/50 [00:03<00:00, 12.54it/s]\n 84%|████████▍ | 42/50 [00:03<00:00, 12.54it/s]\n 88%|████████▊ | 44/50 [00:03<00:00, 12.55it/s]\n 92%|█████████▏| 46/50 [00:03<00:00, 12.53it/s]\n 96%|█████████▌| 48/50 [00:03<00:00, 12.53it/s]\n100%|██████████| 50/50 [00:03<00:00, 12.54it/s]\n100%|██████████| 50/50 [00:03<00:00, 12.51it/s]", "metrics": { "predict_time": 5.380204, "total_time": 5.418985 }, "output": "https://replicate.delivery/pbxt/KqSvpHmk87pfX6RZ0uWsBNqvBYT1uVuPVori4EzqxBLyvtKJA/out.png", "started_at": "2024-02-10T23:25:18.967395Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/axstxh3b43zwhorzjtwxwlomla", "cancel": "https://api.replicate.com/v1/predictions/axstxh3b43zwhorzjtwxwlomla/cancel" }, "version": "0e36b028d4ed70538c3e6ad369ebd2acf872b41e339b0adf1f6f7d095e248a55" }
Generated inUsing seed: 10148 0%| | 0/50 [00:00<?, ?it/s] 4%|▍ | 2/50 [00:00<00:03, 12.28it/s] 8%|▊ | 4/50 [00:00<00:03, 12.44it/s] 12%|█▏ | 6/50 [00:00<00:03, 12.49it/s] 16%|█▌ | 8/50 [00:00<00:03, 12.51it/s] 20%|██ | 10/50 [00:00<00:03, 12.52it/s] 24%|██▍ | 12/50 [00:00<00:03, 12.52it/s] 28%|██▊ | 14/50 [00:01<00:02, 12.52it/s] 32%|███▏ | 16/50 [00:01<00:02, 12.52it/s] 36%|███▌ | 18/50 [00:01<00:02, 12.51it/s] 40%|████ | 20/50 [00:01<00:02, 12.50it/s] 44%|████▍ | 22/50 [00:01<00:02, 12.51it/s] 48%|████▊ | 24/50 [00:01<00:02, 12.50it/s] 52%|█████▏ | 26/50 [00:02<00:01, 12.51it/s] 56%|█████▌ | 28/50 [00:02<00:01, 12.51it/s] 60%|██████ | 30/50 [00:02<00:01, 12.50it/s] 64%|██████▍ | 32/50 [00:02<00:01, 12.50it/s] 68%|██████▊ | 34/50 [00:02<00:01, 12.50it/s] 72%|███████▏ | 36/50 [00:02<00:01, 12.52it/s] 76%|███████▌ | 38/50 [00:03<00:00, 12.54it/s] 80%|████████ | 40/50 [00:03<00:00, 12.54it/s] 84%|████████▍ | 42/50 [00:03<00:00, 12.54it/s] 88%|████████▊ | 44/50 [00:03<00:00, 12.55it/s] 92%|█████████▏| 46/50 [00:03<00:00, 12.53it/s] 96%|█████████▌| 48/50 [00:03<00:00, 12.53it/s] 100%|██████████| 50/50 [00:03<00:00, 12.54it/s] 100%|██████████| 50/50 [00:03<00:00, 12.51it/s]
Want to make some of these yourself?
Run this model