smoosh-sh / baby-mystic
Implementation of Realistic Vision v5.1 to conjure up images of the potential baby using a single photo from each parent
- Public
- 3.3M runs
- License
Prediction
smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6dIDqjq33rlbp3ko4apqjci3a6d6buStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" }
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 smoosh-sh/baby-mystic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d", { input: { image: "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", steps: 25, width: 512, gender: "girl", height: 728, image2: "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" } } ); // 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 smoosh-sh/baby-mystic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d", input={ "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run smoosh-sh/baby-mystic 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": "smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d", "input": { "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/smoosh-sh/baby-mystic@sha256:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d \ -i 'image="https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png"' \ -i 'steps=25' \ -i 'width=512' \ -i 'gender="girl"' \ -i 'height=728' \ -i 'image2="https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/smoosh-sh/baby-mystic@sha256:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2024-01-18T12:09:23.271341Z", "created_at": "2024-01-18T12:09:14.997572Z", "data_removed": false, "error": null, "id": "qjq33rlbp3ko4apqjci3a6d6bu", "input": { "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" }, "logs": "Seed is: 674714354\n 0%| | 0/55 [00:00<?, ?it/s]\n 78%|███████▊ | 43/55 [00:00<00:00, 427.84it/s]\n100%|██████████| 55/55 [00:00<00:00, 432.30it/s]\n 0%| | 0/55 [00:00<?, ?it/s]\n 24%|██▎ | 13/55 [00:00<00:00, 83.69it/s]\n100%|██████████| 55/55 [00:00<00:00, 219.11it/s]\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:03, 6.52it/s]\n 8%|▊ | 2/25 [00:00<00:03, 6.48it/s]\n 12%|█▏ | 3/25 [00:00<00:03, 6.46it/s]\n 16%|█▌ | 4/25 [00:00<00:03, 6.43it/s]\n 20%|██ | 5/25 [00:00<00:03, 6.42it/s]\n 24%|██▍ | 6/25 [00:00<00:02, 6.41it/s]\n 28%|██▊ | 7/25 [00:01<00:02, 6.41it/s]\n 32%|███▏ | 8/25 [00:01<00:02, 6.41it/s]\n 36%|███▌ | 9/25 [00:01<00:02, 6.40it/s]\n 40%|████ | 10/25 [00:01<00:02, 6.41it/s]\n 44%|████▍ | 11/25 [00:01<00:02, 6.40it/s]\n 48%|████▊ | 12/25 [00:01<00:02, 6.39it/s]\n 52%|█████▏ | 13/25 [00:02<00:01, 6.39it/s]\n 56%|█████▌ | 14/25 [00:02<00:01, 6.39it/s]\n 60%|██████ | 15/25 [00:02<00:01, 6.38it/s]\n 64%|██████▍ | 16/25 [00:02<00:01, 6.39it/s]\n 68%|██████▊ | 17/25 [00:02<00:01, 6.38it/s]\n 72%|███████▏ | 18/25 [00:02<00:01, 6.38it/s]\n 76%|███████▌ | 19/25 [00:02<00:00, 6.38it/s]\n 80%|████████ | 20/25 [00:03<00:00, 6.38it/s]\n 84%|████████▍ | 21/25 [00:03<00:00, 6.39it/s]\n 88%|████████▊ | 22/25 [00:03<00:00, 6.38it/s]\n 92%|█████████▏| 23/25 [00:03<00:00, 6.38it/s]\n 96%|█████████▌| 24/25 [00:03<00:00, 6.39it/s]\n100%|██████████| 25/25 [00:03<00:00, 6.39it/s]\n100%|██████████| 25/25 [00:03<00:00, 6.40it/s]", "metrics": { "predict_time": 8.253386, "total_time": 8.273769 }, "output": "https://replicate.delivery/pbxt/kIQVSEW7k07nOBu63fOTIKyMvfXbqjolueNg1mvT2V4m3YbkA/output.png", "started_at": "2024-01-18T12:09:15.017955Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/qjq33rlbp3ko4apqjci3a6d6bu", "cancel": "https://api.replicate.com/v1/predictions/qjq33rlbp3ko4apqjci3a6d6bu/cancel" }, "version": "ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d" }
Generated inSeed is: 674714354 0%| | 0/55 [00:00<?, ?it/s] 78%|███████▊ | 43/55 [00:00<00:00, 427.84it/s] 100%|██████████| 55/55 [00:00<00:00, 432.30it/s] 0%| | 0/55 [00:00<?, ?it/s] 24%|██▎ | 13/55 [00:00<00:00, 83.69it/s] 100%|██████████| 55/55 [00:00<00:00, 219.11it/s] 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:03, 6.52it/s] 8%|▊ | 2/25 [00:00<00:03, 6.48it/s] 12%|█▏ | 3/25 [00:00<00:03, 6.46it/s] 16%|█▌ | 4/25 [00:00<00:03, 6.43it/s] 20%|██ | 5/25 [00:00<00:03, 6.42it/s] 24%|██▍ | 6/25 [00:00<00:02, 6.41it/s] 28%|██▊ | 7/25 [00:01<00:02, 6.41it/s] 32%|███▏ | 8/25 [00:01<00:02, 6.41it/s] 36%|███▌ | 9/25 [00:01<00:02, 6.40it/s] 40%|████ | 10/25 [00:01<00:02, 6.41it/s] 44%|████▍ | 11/25 [00:01<00:02, 6.40it/s] 48%|████▊ | 12/25 [00:01<00:02, 6.39it/s] 52%|█████▏ | 13/25 [00:02<00:01, 6.39it/s] 56%|█████▌ | 14/25 [00:02<00:01, 6.39it/s] 60%|██████ | 15/25 [00:02<00:01, 6.38it/s] 64%|██████▍ | 16/25 [00:02<00:01, 6.39it/s] 68%|██████▊ | 17/25 [00:02<00:01, 6.38it/s] 72%|███████▏ | 18/25 [00:02<00:01, 6.38it/s] 76%|███████▌ | 19/25 [00:02<00:00, 6.38it/s] 80%|████████ | 20/25 [00:03<00:00, 6.38it/s] 84%|████████▍ | 21/25 [00:03<00:00, 6.39it/s] 88%|████████▊ | 22/25 [00:03<00:00, 6.38it/s] 92%|█████████▏| 23/25 [00:03<00:00, 6.38it/s] 96%|█████████▌| 24/25 [00:03<00:00, 6.39it/s] 100%|██████████| 25/25 [00:03<00:00, 6.39it/s] 100%|██████████| 25/25 [00:03<00:00, 6.40it/s]
Prediction
smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6dIDtdkcfk3bts5rch6xgncmst4lmiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KFPW9H8ZhSh0W84GjneV6fll7J3lxPBtX2mrKqJ5lHKiclAR/dad1.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPW9Ehb1ufzUx8MrHSowT4qTVhxae6OezJFYAVppjjHNmkd/mom2.png" }
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 smoosh-sh/baby-mystic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d", { input: { image: "https://replicate.delivery/pbxt/KFPW9H8ZhSh0W84GjneV6fll7J3lxPBtX2mrKqJ5lHKiclAR/dad1.png", steps: 25, width: 512, gender: "girl", height: 728, image2: "https://replicate.delivery/pbxt/KFPW9Ehb1ufzUx8MrHSowT4qTVhxae6OezJFYAVppjjHNmkd/mom2.png" } } ); // 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 smoosh-sh/baby-mystic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d", input={ "image": "https://replicate.delivery/pbxt/KFPW9H8ZhSh0W84GjneV6fll7J3lxPBtX2mrKqJ5lHKiclAR/dad1.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPW9Ehb1ufzUx8MrHSowT4qTVhxae6OezJFYAVppjjHNmkd/mom2.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run smoosh-sh/baby-mystic 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": "smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d", "input": { "image": "https://replicate.delivery/pbxt/KFPW9H8ZhSh0W84GjneV6fll7J3lxPBtX2mrKqJ5lHKiclAR/dad1.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPW9Ehb1ufzUx8MrHSowT4qTVhxae6OezJFYAVppjjHNmkd/mom2.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/smoosh-sh/baby-mystic@sha256:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d \ -i 'image="https://replicate.delivery/pbxt/KFPW9H8ZhSh0W84GjneV6fll7J3lxPBtX2mrKqJ5lHKiclAR/dad1.png"' \ -i 'steps=25' \ -i 'width=512' \ -i 'gender="girl"' \ -i 'height=728' \ -i 'image2="https://replicate.delivery/pbxt/KFPW9Ehb1ufzUx8MrHSowT4qTVhxae6OezJFYAVppjjHNmkd/mom2.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/smoosh-sh/baby-mystic@sha256:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KFPW9H8ZhSh0W84GjneV6fll7J3lxPBtX2mrKqJ5lHKiclAR/dad1.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPW9Ehb1ufzUx8MrHSowT4qTVhxae6OezJFYAVppjjHNmkd/mom2.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2024-01-18T12:13:55.062073Z", "created_at": "2024-01-18T12:13:46.852111Z", "data_removed": false, "error": null, "id": "tdkcfk3bts5rch6xgncmst4lmi", "input": { "image": "https://replicate.delivery/pbxt/KFPW9H8ZhSh0W84GjneV6fll7J3lxPBtX2mrKqJ5lHKiclAR/dad1.png", "steps": 25, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPW9Ehb1ufzUx8MrHSowT4qTVhxae6OezJFYAVppjjHNmkd/mom2.png" }, "logs": "Seed is: 191836400\n 0%| | 0/55 [00:00<?, ?it/s]\n 20%|██ | 11/55 [00:00<00:00, 63.49it/s]\n100%|██████████| 55/55 [00:00<00:00, 201.40it/s]\n 0%| | 0/55 [00:00<?, ?it/s]\n 78%|███████▊ | 43/55 [00:00<00:00, 422.17it/s]\n100%|██████████| 55/55 [00:00<00:00, 427.98it/s]\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:03, 6.52it/s]\n 8%|▊ | 2/25 [00:00<00:03, 6.48it/s]\n 12%|█▏ | 3/25 [00:00<00:03, 6.46it/s]\n 16%|█▌ | 4/25 [00:00<00:03, 6.44it/s]\n 20%|██ | 5/25 [00:00<00:03, 6.43it/s]\n 24%|██▍ | 6/25 [00:00<00:02, 6.42it/s]\n 28%|██▊ | 7/25 [00:01<00:02, 6.41it/s]\n 32%|███▏ | 8/25 [00:01<00:02, 6.40it/s]\n 36%|███▌ | 9/25 [00:01<00:02, 6.40it/s]\n 40%|████ | 10/25 [00:01<00:02, 6.40it/s]\n 44%|████▍ | 11/25 [00:01<00:02, 6.40it/s]\n 48%|████▊ | 12/25 [00:01<00:02, 6.39it/s]\n 52%|█████▏ | 13/25 [00:02<00:01, 6.39it/s]\n 56%|█████▌ | 14/25 [00:02<00:01, 6.39it/s]\n 60%|██████ | 15/25 [00:02<00:01, 6.39it/s]\n 64%|██████▍ | 16/25 [00:02<00:01, 6.39it/s]\n 68%|██████▊ | 17/25 [00:02<00:01, 6.39it/s]\n 72%|███████▏ | 18/25 [00:02<00:01, 6.38it/s]\n 76%|███████▌ | 19/25 [00:02<00:00, 6.38it/s]\n 80%|████████ | 20/25 [00:03<00:00, 6.38it/s]\n 84%|████████▍ | 21/25 [00:03<00:00, 6.38it/s]\n 88%|████████▊ | 22/25 [00:03<00:00, 6.38it/s]\n 92%|█████████▏| 23/25 [00:03<00:00, 6.38it/s]\n 96%|█████████▌| 24/25 [00:03<00:00, 6.38it/s]\n100%|██████████| 25/25 [00:03<00:00, 6.39it/s]\n100%|██████████| 25/25 [00:03<00:00, 6.40it/s]", "metrics": { "predict_time": 8.189032, "total_time": 8.209962 }, "output": "https://replicate.delivery/pbxt/teGPxHoqACSUNSrlXdyZDXzGV8tCXP4rH9o0iifys04CgsNSA/output.png", "started_at": "2024-01-18T12:13:46.873041Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/tdkcfk3bts5rch6xgncmst4lmi", "cancel": "https://api.replicate.com/v1/predictions/tdkcfk3bts5rch6xgncmst4lmi/cancel" }, "version": "ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d" }
Generated inSeed is: 191836400 0%| | 0/55 [00:00<?, ?it/s] 20%|██ | 11/55 [00:00<00:00, 63.49it/s] 100%|██████████| 55/55 [00:00<00:00, 201.40it/s] 0%| | 0/55 [00:00<?, ?it/s] 78%|███████▊ | 43/55 [00:00<00:00, 422.17it/s] 100%|██████████| 55/55 [00:00<00:00, 427.98it/s] 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:03, 6.52it/s] 8%|▊ | 2/25 [00:00<00:03, 6.48it/s] 12%|█▏ | 3/25 [00:00<00:03, 6.46it/s] 16%|█▌ | 4/25 [00:00<00:03, 6.44it/s] 20%|██ | 5/25 [00:00<00:03, 6.43it/s] 24%|██▍ | 6/25 [00:00<00:02, 6.42it/s] 28%|██▊ | 7/25 [00:01<00:02, 6.41it/s] 32%|███▏ | 8/25 [00:01<00:02, 6.40it/s] 36%|███▌ | 9/25 [00:01<00:02, 6.40it/s] 40%|████ | 10/25 [00:01<00:02, 6.40it/s] 44%|████▍ | 11/25 [00:01<00:02, 6.40it/s] 48%|████▊ | 12/25 [00:01<00:02, 6.39it/s] 52%|█████▏ | 13/25 [00:02<00:01, 6.39it/s] 56%|█████▌ | 14/25 [00:02<00:01, 6.39it/s] 60%|██████ | 15/25 [00:02<00:01, 6.39it/s] 64%|██████▍ | 16/25 [00:02<00:01, 6.39it/s] 68%|██████▊ | 17/25 [00:02<00:01, 6.39it/s] 72%|███████▏ | 18/25 [00:02<00:01, 6.38it/s] 76%|███████▌ | 19/25 [00:02<00:00, 6.38it/s] 80%|████████ | 20/25 [00:03<00:00, 6.38it/s] 84%|████████▍ | 21/25 [00:03<00:00, 6.38it/s] 88%|████████▊ | 22/25 [00:03<00:00, 6.38it/s] 92%|█████████▏| 23/25 [00:03<00:00, 6.38it/s] 96%|█████████▌| 24/25 [00:03<00:00, 6.38it/s] 100%|██████████| 25/25 [00:03<00:00, 6.39it/s] 100%|██████████| 25/25 [00:03<00:00, 6.40it/s]
Prediction
smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6dID4kdtcsdbrundffkp5bm5ouwqlqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 100, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" }
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 smoosh-sh/baby-mystic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d", { input: { image: "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", steps: 100, width: 512, gender: "girl", height: 728, image2: "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" } } ); // 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 smoosh-sh/baby-mystic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d", input={ "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 100, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run smoosh-sh/baby-mystic 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": "smoosh-sh/baby-mystic:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d", "input": { "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 100, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/smoosh-sh/baby-mystic@sha256:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d \ -i 'image="https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png"' \ -i 'steps=100' \ -i 'width=512' \ -i 'gender="girl"' \ -i 'height=728' \ -i 'image2="https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/smoosh-sh/baby-mystic@sha256:ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 100, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2024-01-18T12:50:01.225995Z", "created_at": "2024-01-18T12:47:44.442719Z", "data_removed": false, "error": null, "id": "4kdtcsdbrundffkp5bm5ouwqlq", "input": { "image": "https://replicate.delivery/pbxt/KFPRm9acpMYUgAaEI1Fi0FZEiDWDyiPVL9tcI6XYT4vS0EgS/mom2.png", "steps": 100, "width": 512, "gender": "girl", "height": 728, "image2": "https://replicate.delivery/pbxt/KFPRlN6xTao1tNR3ZipEQls5QeadsPtC54el8CVGvWn1l1PH/dad2.png" }, "logs": "Seed is: 1766289990\n 0%| | 0/55 [00:00<?, ?it/s]\n 76%|███████▋ | 42/55 [00:00<00:00, 413.07it/s]\n100%|██████████| 55/55 [00:00<00:00, 420.52it/s]\n 0%| | 0/55 [00:00<?, ?it/s]\n 80%|████████ | 44/55 [00:00<00:00, 435.16it/s]\n100%|██████████| 55/55 [00:00<00:00, 438.22it/s]\n 0%| | 0/100 [00:00<?, ?it/s]\n 1%| | 1/100 [00:00<00:15, 6.21it/s]\n 2%|▏ | 2/100 [00:00<00:15, 6.33it/s]\n 3%|▎ | 3/100 [00:00<00:19, 5.06it/s]\n 4%|▍ | 4/100 [00:00<00:17, 5.53it/s]\n 5%|▌ | 5/100 [00:00<00:16, 5.81it/s]\n 6%|▌ | 6/100 [00:01<00:15, 5.99it/s]\n 7%|▋ | 7/100 [00:01<00:15, 6.12it/s]\n 8%|▊ | 8/100 [00:01<00:14, 6.21it/s]\n 9%|▉ | 9/100 [00:01<00:14, 6.26it/s]\n 10%|█ | 10/100 [00:01<00:14, 6.29it/s]\n 11%|█ | 11/100 [00:01<00:14, 6.31it/s]\n 12%|█▏ | 12/100 [00:01<00:13, 6.33it/s]\n 13%|█▎ | 13/100 [00:02<00:13, 6.34it/s]\n 14%|█▍ | 14/100 [00:02<00:13, 6.35it/s]\n 15%|█▌ | 15/100 [00:02<00:13, 6.36it/s]\n 16%|█▌ | 16/100 [00:02<00:13, 6.36it/s]\n 17%|█▋ | 17/100 [00:02<00:13, 6.36it/s]\n 18%|█▊ | 18/100 [00:02<00:12, 6.36it/s]\n 19%|█▉ | 19/100 [00:03<00:12, 6.37it/s]\n 20%|██ | 20/100 [00:03<00:12, 6.37it/s]\n 21%|██ | 21/100 [00:03<00:12, 6.36it/s]\n 22%|██▏ | 22/100 [00:03<00:12, 6.36it/s]\n 23%|██▎ | 23/100 [00:03<00:12, 6.36it/s]\n 24%|██▍ | 24/100 [00:03<00:11, 6.36it/s]\n 25%|██▌ | 25/100 [00:04<00:11, 6.36it/s]\n 26%|██▌ | 26/100 [00:04<00:11, 6.36it/s]\n 27%|██▋ | 27/100 [00:04<00:11, 6.36it/s]\n 28%|██▊ | 28/100 [00:04<00:11, 6.36it/s]\n 29%|██▉ | 29/100 [00:04<00:11, 6.36it/s]\n 30%|███ | 30/100 [00:04<00:11, 6.36it/s]\n 31%|███ | 31/100 [00:04<00:10, 6.35it/s]\n 32%|███▏ | 32/100 [00:05<00:10, 6.34it/s]\n 33%|███▎ | 33/100 [00:05<00:10, 6.34it/s]\n 34%|███▍ | 34/100 [00:05<00:10, 6.34it/s]\n 35%|███▌ | 35/100 [00:05<00:10, 6.34it/s]\n 36%|███▌ | 36/100 [00:05<00:10, 6.33it/s]\n 37%|███▋ | 37/100 [00:05<00:09, 6.34it/s]\n 38%|███▊ | 38/100 [00:06<00:09, 6.34it/s]\n 39%|███▉ | 39/100 [00:06<00:09, 6.33it/s]\n 40%|████ | 40/100 [00:06<00:09, 6.33it/s]\n 41%|████ | 41/100 [00:06<00:09, 6.33it/s]\n 42%|████▏ | 42/100 [00:06<00:09, 6.34it/s]\n 43%|████▎ | 43/100 [00:06<00:08, 6.33it/s]\n 44%|████▍ | 44/100 [00:07<00:08, 6.33it/s]\n 45%|████▌ | 45/100 [00:07<00:08, 6.33it/s]\n 46%|████▌ | 46/100 [00:07<00:08, 6.33it/s]\n 47%|████▋ | 47/100 [00:07<00:08, 6.33it/s]\n 48%|████▊ | 48/100 [00:07<00:08, 6.33it/s]\n 49%|████▉ | 49/100 [00:07<00:08, 6.33it/s]\n 50%|█████ | 50/100 [00:07<00:07, 6.33it/s]\n 51%|█████ | 51/100 [00:08<00:07, 6.33it/s]\n 52%|█████▏ | 52/100 [00:08<00:07, 6.32it/s]\n 53%|█████▎ | 53/100 [00:08<00:07, 6.32it/s]\n 54%|█████▍ | 54/100 [00:08<00:07, 6.32it/s]\n 55%|█████▌ | 55/100 [00:08<00:07, 6.32it/s]\n 56%|█████▌ | 56/100 [00:08<00:06, 6.31it/s]\n 57%|█████▋ | 57/100 [00:09<00:06, 6.32it/s]\n 58%|█████▊ | 58/100 [00:09<00:06, 6.32it/s]\n 59%|█████▉ | 59/100 [00:09<00:06, 6.32it/s]\n 60%|██████ | 60/100 [00:09<00:06, 6.31it/s]\n 61%|██████ | 61/100 [00:09<00:06, 6.31it/s]\n 62%|██████▏ | 62/100 [00:09<00:06, 6.32it/s]\n 63%|██████▎ | 63/100 [00:10<00:05, 6.31it/s]\n 64%|██████▍ | 64/100 [00:10<00:05, 6.31it/s]\n 65%|██████▌ | 65/100 [00:10<00:05, 6.32it/s]\n 66%|██████▌ | 66/100 [00:10<00:05, 6.31it/s]\n 67%|██████▋ | 67/100 [00:10<00:05, 6.31it/s]\n 68%|██████▊ | 68/100 [00:10<00:05, 6.31it/s]\n 69%|██████▉ | 69/100 [00:10<00:04, 6.31it/s]\n 70%|███████ | 70/100 [00:11<00:04, 6.31it/s]\n 71%|███████ | 71/100 [00:11<00:04, 6.31it/s]\n 72%|███████▏ | 72/100 [00:11<00:04, 6.31it/s]\n 73%|███████▎ | 73/100 [00:11<00:04, 6.31it/s]\n 74%|███████▍ | 74/100 [00:11<00:04, 6.31it/s]\n 75%|███████▌ | 75/100 [00:11<00:03, 6.31it/s]\n 76%|███████▌ | 76/100 [00:12<00:03, 6.31it/s]\n 77%|███████▋ | 77/100 [00:12<00:03, 6.31it/s]\n 78%|███████▊ | 78/100 [00:12<00:03, 6.31it/s]\n 79%|███████▉ | 79/100 [00:12<00:03, 6.30it/s]\n 80%|████████ | 80/100 [00:12<00:03, 6.30it/s]\n 81%|████████ | 81/100 [00:12<00:03, 6.30it/s]\n 82%|████████▏ | 82/100 [00:13<00:02, 6.30it/s]\n 83%|████████▎ | 83/100 [00:13<00:02, 6.30it/s]\n 84%|████████▍ | 84/100 [00:13<00:02, 6.30it/s]\n 85%|████████▌ | 85/100 [00:13<00:02, 6.30it/s]\n 86%|████████▌ | 86/100 [00:13<00:02, 6.31it/s]\n 87%|████████▋ | 87/100 [00:13<00:02, 6.31it/s]\n 88%|████████▊ | 88/100 [00:13<00:01, 6.31it/s]\n 89%|████████▉ | 89/100 [00:14<00:01, 6.31it/s]\n 90%|█████████ | 90/100 [00:14<00:01, 6.31it/s]\n 91%|█████████ | 91/100 [00:14<00:01, 6.30it/s]\n 92%|█████████▏| 92/100 [00:14<00:01, 6.30it/s]\n 93%|█████████▎| 93/100 [00:14<00:01, 6.30it/s]\n 94%|█████████▍| 94/100 [00:14<00:00, 6.29it/s]\n 95%|█████████▌| 95/100 [00:15<00:00, 6.29it/s]\n 96%|█████████▌| 96/100 [00:15<00:00, 6.29it/s]\n 97%|█████████▋| 97/100 [00:15<00:00, 6.30it/s]\n 98%|█████████▊| 98/100 [00:15<00:00, 6.29it/s]\n 99%|█████████▉| 99/100 [00:15<00:00, 6.29it/s]\n100%|██████████| 100/100 [00:15<00:00, 6.29it/s]\n100%|██████████| 100/100 [00:15<00:00, 6.29it/s]", "metrics": { "predict_time": 23.194642, "total_time": 136.783276 }, "output": "https://replicate.delivery/pbxt/R7lMvzN8rcLVGJmYVFJtD4rNoAiEdQEbzeR7SYexH6Z4BtNSA/output.png", "started_at": "2024-01-18T12:49:38.031353Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4kdtcsdbrundffkp5bm5ouwqlq", "cancel": "https://api.replicate.com/v1/predictions/4kdtcsdbrundffkp5bm5ouwqlq/cancel" }, "version": "ba5ab694a9df055fa469e55eeab162cc288039da0abd8b19d956980cc3b49f6d" }
Generated inSeed is: 1766289990 0%| | 0/55 [00:00<?, ?it/s] 76%|███████▋ | 42/55 [00:00<00:00, 413.07it/s] 100%|██████████| 55/55 [00:00<00:00, 420.52it/s] 0%| | 0/55 [00:00<?, ?it/s] 80%|████████ | 44/55 [00:00<00:00, 435.16it/s] 100%|██████████| 55/55 [00:00<00:00, 438.22it/s] 0%| | 0/100 [00:00<?, ?it/s] 1%| | 1/100 [00:00<00:15, 6.21it/s] 2%|▏ | 2/100 [00:00<00:15, 6.33it/s] 3%|▎ | 3/100 [00:00<00:19, 5.06it/s] 4%|▍ | 4/100 [00:00<00:17, 5.53it/s] 5%|▌ | 5/100 [00:00<00:16, 5.81it/s] 6%|▌ | 6/100 [00:01<00:15, 5.99it/s] 7%|▋ | 7/100 [00:01<00:15, 6.12it/s] 8%|▊ | 8/100 [00:01<00:14, 6.21it/s] 9%|▉ | 9/100 [00:01<00:14, 6.26it/s] 10%|█ | 10/100 [00:01<00:14, 6.29it/s] 11%|█ | 11/100 [00:01<00:14, 6.31it/s] 12%|█▏ | 12/100 [00:01<00:13, 6.33it/s] 13%|█▎ | 13/100 [00:02<00:13, 6.34it/s] 14%|█▍ | 14/100 [00:02<00:13, 6.35it/s] 15%|█▌ | 15/100 [00:02<00:13, 6.36it/s] 16%|█▌ | 16/100 [00:02<00:13, 6.36it/s] 17%|█▋ | 17/100 [00:02<00:13, 6.36it/s] 18%|█▊ | 18/100 [00:02<00:12, 6.36it/s] 19%|█▉ | 19/100 [00:03<00:12, 6.37it/s] 20%|██ | 20/100 [00:03<00:12, 6.37it/s] 21%|██ | 21/100 [00:03<00:12, 6.36it/s] 22%|██▏ | 22/100 [00:03<00:12, 6.36it/s] 23%|██▎ | 23/100 [00:03<00:12, 6.36it/s] 24%|██▍ | 24/100 [00:03<00:11, 6.36it/s] 25%|██▌ | 25/100 [00:04<00:11, 6.36it/s] 26%|██▌ | 26/100 [00:04<00:11, 6.36it/s] 27%|██▋ | 27/100 [00:04<00:11, 6.36it/s] 28%|██▊ | 28/100 [00:04<00:11, 6.36it/s] 29%|██▉ | 29/100 [00:04<00:11, 6.36it/s] 30%|███ | 30/100 [00:04<00:11, 6.36it/s] 31%|███ | 31/100 [00:04<00:10, 6.35it/s] 32%|███▏ | 32/100 [00:05<00:10, 6.34it/s] 33%|███▎ | 33/100 [00:05<00:10, 6.34it/s] 34%|███▍ | 34/100 [00:05<00:10, 6.34it/s] 35%|███▌ | 35/100 [00:05<00:10, 6.34it/s] 36%|███▌ | 36/100 [00:05<00:10, 6.33it/s] 37%|███▋ | 37/100 [00:05<00:09, 6.34it/s] 38%|███▊ | 38/100 [00:06<00:09, 6.34it/s] 39%|███▉ | 39/100 [00:06<00:09, 6.33it/s] 40%|████ | 40/100 [00:06<00:09, 6.33it/s] 41%|████ | 41/100 [00:06<00:09, 6.33it/s] 42%|████▏ | 42/100 [00:06<00:09, 6.34it/s] 43%|████▎ | 43/100 [00:06<00:08, 6.33it/s] 44%|████▍ | 44/100 [00:07<00:08, 6.33it/s] 45%|████▌ | 45/100 [00:07<00:08, 6.33it/s] 46%|████▌ | 46/100 [00:07<00:08, 6.33it/s] 47%|████▋ | 47/100 [00:07<00:08, 6.33it/s] 48%|████▊ | 48/100 [00:07<00:08, 6.33it/s] 49%|████▉ | 49/100 [00:07<00:08, 6.33it/s] 50%|█████ | 50/100 [00:07<00:07, 6.33it/s] 51%|█████ | 51/100 [00:08<00:07, 6.33it/s] 52%|█████▏ | 52/100 [00:08<00:07, 6.32it/s] 53%|█████▎ | 53/100 [00:08<00:07, 6.32it/s] 54%|█████▍ | 54/100 [00:08<00:07, 6.32it/s] 55%|█████▌ | 55/100 [00:08<00:07, 6.32it/s] 56%|█████▌ | 56/100 [00:08<00:06, 6.31it/s] 57%|█████▋ | 57/100 [00:09<00:06, 6.32it/s] 58%|█████▊ | 58/100 [00:09<00:06, 6.32it/s] 59%|█████▉ | 59/100 [00:09<00:06, 6.32it/s] 60%|██████ | 60/100 [00:09<00:06, 6.31it/s] 61%|██████ | 61/100 [00:09<00:06, 6.31it/s] 62%|██████▏ | 62/100 [00:09<00:06, 6.32it/s] 63%|██████▎ | 63/100 [00:10<00:05, 6.31it/s] 64%|██████▍ | 64/100 [00:10<00:05, 6.31it/s] 65%|██████▌ | 65/100 [00:10<00:05, 6.32it/s] 66%|██████▌ | 66/100 [00:10<00:05, 6.31it/s] 67%|██████▋ | 67/100 [00:10<00:05, 6.31it/s] 68%|██████▊ | 68/100 [00:10<00:05, 6.31it/s] 69%|██████▉ | 69/100 [00:10<00:04, 6.31it/s] 70%|███████ | 70/100 [00:11<00:04, 6.31it/s] 71%|███████ | 71/100 [00:11<00:04, 6.31it/s] 72%|███████▏ | 72/100 [00:11<00:04, 6.31it/s] 73%|███████▎ | 73/100 [00:11<00:04, 6.31it/s] 74%|███████▍ | 74/100 [00:11<00:04, 6.31it/s] 75%|███████▌ | 75/100 [00:11<00:03, 6.31it/s] 76%|███████▌ | 76/100 [00:12<00:03, 6.31it/s] 77%|███████▋ | 77/100 [00:12<00:03, 6.31it/s] 78%|███████▊ | 78/100 [00:12<00:03, 6.31it/s] 79%|███████▉ | 79/100 [00:12<00:03, 6.30it/s] 80%|████████ | 80/100 [00:12<00:03, 6.30it/s] 81%|████████ | 81/100 [00:12<00:03, 6.30it/s] 82%|████████▏ | 82/100 [00:13<00:02, 6.30it/s] 83%|████████▎ | 83/100 [00:13<00:02, 6.30it/s] 84%|████████▍ | 84/100 [00:13<00:02, 6.30it/s] 85%|████████▌ | 85/100 [00:13<00:02, 6.30it/s] 86%|████████▌ | 86/100 [00:13<00:02, 6.31it/s] 87%|████████▋ | 87/100 [00:13<00:02, 6.31it/s] 88%|████████▊ | 88/100 [00:13<00:01, 6.31it/s] 89%|████████▉ | 89/100 [00:14<00:01, 6.31it/s] 90%|█████████ | 90/100 [00:14<00:01, 6.31it/s] 91%|█████████ | 91/100 [00:14<00:01, 6.30it/s] 92%|█████████▏| 92/100 [00:14<00:01, 6.30it/s] 93%|█████████▎| 93/100 [00:14<00:01, 6.30it/s] 94%|█████████▍| 94/100 [00:14<00:00, 6.29it/s] 95%|█████████▌| 95/100 [00:15<00:00, 6.29it/s] 96%|█████████▌| 96/100 [00:15<00:00, 6.29it/s] 97%|█████████▋| 97/100 [00:15<00:00, 6.30it/s] 98%|█████████▊| 98/100 [00:15<00:00, 6.29it/s] 99%|█████████▉| 99/100 [00:15<00:00, 6.29it/s] 100%|██████████| 100/100 [00:15<00:00, 6.29it/s] 100%|██████████| 100/100 [00:15<00:00, 6.29it/s]
Want to make some of these yourself?
Run this model