Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
andreasjansson /monkey-island-rdm:2c737891
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run andreasjansson/monkey-island-rdm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"andreasjansson/monkey-island-rdm:2c737891c668aa2a759ea6db63b35d3a4f569a803dbad2446c872475c4fb6c63",
{
input: {
seed: -1,
scale: 5,
steps: 100,
prompt: "Guybrush Threepwood taking a walk in town",
num_database_results: 10
}
}
);
// 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.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run andreasjansson/monkey-island-rdm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"andreasjansson/monkey-island-rdm:2c737891c668aa2a759ea6db63b35d3a4f569a803dbad2446c872475c4fb6c63",
input={
"seed": -1,
"scale": 5,
"steps": 100,
"prompt": "Guybrush Threepwood taking a walk in town",
"num_database_results": 10
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run andreasjansson/monkey-island-rdm 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": "andreasjansson/monkey-island-rdm:2c737891c668aa2a759ea6db63b35d3a4f569a803dbad2446c872475c4fb6c63",
"input": {
"seed": -1,
"scale": 5,
"steps": 100,
"prompt": "Guybrush Threepwood taking a walk in town",
"num_database_results": 10
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2022-08-19T16:29:47.288522Z",
"created_at": "2022-08-19T16:29:38.419645Z",
"data_removed": false,
"error": null,
"id": "m4fcewluj5azxcc7h63iwqquba",
"input": {
"seed": -1,
"scale": 5,
"steps": 100,
"prompt": "Guybrush Threepwood taking a walk in town",
"num_database_results": "10"
},
"logs": "Using random seed 3024559446\nSeed: -1\nCLIP Text Embed: torch.Size([1, 1, 768])\nData shape for PLMS sampling is (1, 16, 48, 48)\nRunning PLMS Sampling with 100 timesteps\n\nPLMS Sampler: 0%| | 0/100 [00:00<?, ?it/s]\nPLMS Sampler: 1%| | 1/100 [00:00<00:16, 6.05it/s]\nPLMS Sampler: 3%|▎ | 3/100 [00:00<00:09, 10.39it/s]\nPLMS Sampler: 5%|▌ | 5/100 [00:00<00:07, 11.92it/s]\nPLMS Sampler: 7%|▋ | 7/100 [00:00<00:07, 12.71it/s]\nPLMS Sampler: 9%|▉ | 9/100 [00:00<00:07, 12.97it/s]\nPLMS Sampler: 11%|█ | 11/100 [00:00<00:06, 13.30it/s]\nPLMS Sampler: 13%|█▎ | 13/100 [00:01<00:06, 13.44it/s]\nPLMS Sampler: 15%|█▌ | 15/100 [00:01<00:06, 13.39it/s]\nPLMS Sampler: 17%|█▋ | 17/100 [00:01<00:06, 13.53it/s]\nPLMS Sampler: 19%|█▉ | 19/100 [00:01<00:05, 13.62it/s]\nPLMS Sampler: 21%|██ | 21/100 [00:01<00:05, 13.70it/s]\nPLMS Sampler: 23%|██▎ | 23/100 [00:01<00:05, 13.71it/s]\nPLMS Sampler: 25%|██▌ | 25/100 [00:01<00:05, 13.76it/s]\nPLMS Sampler: 27%|██▋ | 27/100 [00:02<00:05, 13.82it/s]\nPLMS Sampler: 29%|██▉ | 29/100 [00:02<00:05, 13.86it/s]\nPLMS Sampler: 31%|███ | 31/100 [00:02<00:05, 13.62it/s]\nPLMS Sampler: 33%|███▎ | 33/100 [00:02<00:04, 13.65it/s]\nPLMS Sampler: 35%|███▌ | 35/100 [00:02<00:04, 13.62it/s]\nPLMS Sampler: 37%|███▋ | 37/100 [00:02<00:04, 13.72it/s]\nPLMS Sampler: 39%|███▉ | 39/100 [00:02<00:04, 13.80it/s]\nPLMS Sampler: 41%|████ | 41/100 [00:03<00:04, 13.85it/s]\nPLMS Sampler: 43%|████▎ | 43/100 [00:03<00:04, 13.90it/s]\nPLMS Sampler: 45%|████▌ | 45/100 [00:03<00:03, 13.94it/s]\nPLMS Sampler: 47%|████▋ | 47/100 [00:03<00:03, 13.97it/s]\nPLMS Sampler: 49%|████▉ | 49/100 [00:03<00:03, 13.84it/s]\nPLMS Sampler: 51%|█████ | 51/100 [00:03<00:03, 13.87it/s]\nPLMS Sampler: 53%|█████▎ | 53/100 [00:03<00:03, 13.87it/s]\nPLMS Sampler: 55%|█████▌ | 55/100 [00:04<00:03, 13.73it/s]\nPLMS Sampler: 57%|█████▋ | 57/100 [00:04<00:03, 13.77it/s]\nPLMS Sampler: 59%|█████▉ | 59/100 [00:04<00:02, 13.83it/s]\nPLMS Sampler: 61%|██████ | 61/100 [00:04<00:02, 13.87it/s]\nPLMS Sampler: 63%|██████▎ | 63/100 [00:04<00:02, 13.78it/s]\nPLMS Sampler: 65%|██████▌ | 65/100 [00:04<00:02, 13.63it/s]\nPLMS Sampler: 67%|██████▋ | 67/100 [00:04<00:02, 13.63it/s]\nPLMS Sampler: 69%|██████▉ | 69/100 [00:05<00:02, 13.74it/s]\nPLMS Sampler: 71%|███████ | 71/100 [00:05<00:02, 13.77it/s]\nPLMS Sampler: 73%|███████▎ | 73/100 [00:05<00:01, 13.84it/s]\nPLMS Sampler: 75%|███████▌ | 75/100 [00:05<00:01, 13.63it/s]\nPLMS Sampler: 77%|███████▋ | 77/100 [00:05<00:01, 13.44it/s]\nPLMS Sampler: 79%|███████▉ | 79/100 [00:05<00:01, 13.58it/s]\nPLMS Sampler: 81%|████████ | 81/100 [00:05<00:01, 13.68it/s]\nPLMS Sampler: 83%|████████▎ | 83/100 [00:06<00:01, 13.74it/s]\nPLMS Sampler: 85%|████████▌ | 85/100 [00:06<00:01, 13.81it/s]\nPLMS Sampler: 87%|████████▋ | 87/100 [00:06<00:00, 13.84it/s]\nPLMS Sampler: 89%|████████▉ | 89/100 [00:06<00:00, 13.85it/s]\nPLMS Sampler: 91%|█████████ | 91/100 [00:06<00:00, 13.88it/s]\nPLMS Sampler: 93%|█████████▎| 93/100 [00:06<00:00, 13.86it/s]\nPLMS Sampler: 95%|█████████▌| 95/100 [00:06<00:00, 13.89it/s]\nPLMS Sampler: 97%|█████████▋| 97/100 [00:07<00:00, 13.91it/s]\nPLMS Sampler: 99%|█████████▉| 99/100 [00:07<00:00, 13.90it/s]\nPLMS Sampler: 100%|██████████| 100/100 [00:07<00:00, 13.61it/s]",
"metrics": {
"predict_time": 8.67741,
"total_time": 8.868877
},
"output": "https://replicate.delivery/mgxm/1d901c08-c38d-42ea-941d-fb785700c218/out.png",
"started_at": "2022-08-19T16:29:38.611112Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/m4fcewluj5azxcc7h63iwqquba",
"cancel": "https://api.replicate.com/v1/predictions/m4fcewluj5azxcc7h63iwqquba/cancel"
},
"version": "2c737891c668aa2a759ea6db63b35d3a4f569a803dbad2446c872475c4fb6c63"
}
Using random seed 3024559446
Seed: -1
CLIP Text Embed: torch.Size([1, 1, 768])
Data shape for PLMS sampling is (1, 16, 48, 48)
Running PLMS Sampling with 100 timesteps
PLMS Sampler: 0%| | 0/100 [00:00<?, ?it/s]
PLMS Sampler: 1%| | 1/100 [00:00<00:16, 6.05it/s]
PLMS Sampler: 3%|▎ | 3/100 [00:00<00:09, 10.39it/s]
PLMS Sampler: 5%|▌ | 5/100 [00:00<00:07, 11.92it/s]
PLMS Sampler: 7%|▋ | 7/100 [00:00<00:07, 12.71it/s]
PLMS Sampler: 9%|▉ | 9/100 [00:00<00:07, 12.97it/s]
PLMS Sampler: 11%|█ | 11/100 [00:00<00:06, 13.30it/s]
PLMS Sampler: 13%|█▎ | 13/100 [00:01<00:06, 13.44it/s]
PLMS Sampler: 15%|█▌ | 15/100 [00:01<00:06, 13.39it/s]
PLMS Sampler: 17%|█▋ | 17/100 [00:01<00:06, 13.53it/s]
PLMS Sampler: 19%|█▉ | 19/100 [00:01<00:05, 13.62it/s]
PLMS Sampler: 21%|██ | 21/100 [00:01<00:05, 13.70it/s]
PLMS Sampler: 23%|██▎ | 23/100 [00:01<00:05, 13.71it/s]
PLMS Sampler: 25%|██▌ | 25/100 [00:01<00:05, 13.76it/s]
PLMS Sampler: 27%|██▋ | 27/100 [00:02<00:05, 13.82it/s]
PLMS Sampler: 29%|██▉ | 29/100 [00:02<00:05, 13.86it/s]
PLMS Sampler: 31%|███ | 31/100 [00:02<00:05, 13.62it/s]
PLMS Sampler: 33%|███▎ | 33/100 [00:02<00:04, 13.65it/s]
PLMS Sampler: 35%|███▌ | 35/100 [00:02<00:04, 13.62it/s]
PLMS Sampler: 37%|███▋ | 37/100 [00:02<00:04, 13.72it/s]
PLMS Sampler: 39%|███▉ | 39/100 [00:02<00:04, 13.80it/s]
PLMS Sampler: 41%|████ | 41/100 [00:03<00:04, 13.85it/s]
PLMS Sampler: 43%|████▎ | 43/100 [00:03<00:04, 13.90it/s]
PLMS Sampler: 45%|████▌ | 45/100 [00:03<00:03, 13.94it/s]
PLMS Sampler: 47%|████▋ | 47/100 [00:03<00:03, 13.97it/s]
PLMS Sampler: 49%|████▉ | 49/100 [00:03<00:03, 13.84it/s]
PLMS Sampler: 51%|█████ | 51/100 [00:03<00:03, 13.87it/s]
PLMS Sampler: 53%|█████▎ | 53/100 [00:03<00:03, 13.87it/s]
PLMS Sampler: 55%|█████▌ | 55/100 [00:04<00:03, 13.73it/s]
PLMS Sampler: 57%|█████▋ | 57/100 [00:04<00:03, 13.77it/s]
PLMS Sampler: 59%|█████▉ | 59/100 [00:04<00:02, 13.83it/s]
PLMS Sampler: 61%|██████ | 61/100 [00:04<00:02, 13.87it/s]
PLMS Sampler: 63%|██████▎ | 63/100 [00:04<00:02, 13.78it/s]
PLMS Sampler: 65%|██████▌ | 65/100 [00:04<00:02, 13.63it/s]
PLMS Sampler: 67%|██████▋ | 67/100 [00:04<00:02, 13.63it/s]
PLMS Sampler: 69%|██████▉ | 69/100 [00:05<00:02, 13.74it/s]
PLMS Sampler: 71%|███████ | 71/100 [00:05<00:02, 13.77it/s]
PLMS Sampler: 73%|███████▎ | 73/100 [00:05<00:01, 13.84it/s]
PLMS Sampler: 75%|███████▌ | 75/100 [00:05<00:01, 13.63it/s]
PLMS Sampler: 77%|███████▋ | 77/100 [00:05<00:01, 13.44it/s]
PLMS Sampler: 79%|███████▉ | 79/100 [00:05<00:01, 13.58it/s]
PLMS Sampler: 81%|████████ | 81/100 [00:05<00:01, 13.68it/s]
PLMS Sampler: 83%|████████▎ | 83/100 [00:06<00:01, 13.74it/s]
PLMS Sampler: 85%|████████▌ | 85/100 [00:06<00:01, 13.81it/s]
PLMS Sampler: 87%|████████▋ | 87/100 [00:06<00:00, 13.84it/s]
PLMS Sampler: 89%|████████▉ | 89/100 [00:06<00:00, 13.85it/s]
PLMS Sampler: 91%|█████████ | 91/100 [00:06<00:00, 13.88it/s]
PLMS Sampler: 93%|█████████▎| 93/100 [00:06<00:00, 13.86it/s]
PLMS Sampler: 95%|█████████▌| 95/100 [00:06<00:00, 13.89it/s]
PLMS Sampler: 97%|█████████▋| 97/100 [00:07<00:00, 13.91it/s]
PLMS Sampler: 99%|█████████▉| 99/100 [00:07<00:00, 13.90it/s]
PLMS Sampler: 100%|██████████| 100/100 [00:07<00:00, 13.61it/s]