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 flying a spaceship between two distant planets",
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 flying a spaceship between two distant planets",
"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 flying a spaceship between two distant planets",
"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:54:27.620050Z",
"created_at": "2022-08-19T16:54:19.072408Z",
"data_removed": false,
"error": null,
"id": "4cd4cdemsrgsjmmwquauzn5m5u",
"input": {
"seed": -1,
"scale": 5,
"steps": 100,
"prompt": "Guybrush flying a spaceship between two distant planets",
"num_database_results": "10"
},
"logs": "Using random seed 3452364376\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.12it/s]\nPLMS Sampler: 3%|▎ | 3/100 [00:00<00:09, 10.15it/s]\nPLMS Sampler: 5%|▌ | 5/100 [00:00<00:08, 11.84it/s]\nPLMS Sampler: 7%|▋ | 7/100 [00:00<00:07, 12.64it/s]\nPLMS Sampler: 9%|▉ | 9/100 [00:00<00:07, 12.93it/s]\nPLMS Sampler: 11%|█ | 11/100 [00:00<00:06, 13.29it/s]\nPLMS Sampler: 13%|█▎ | 13/100 [00:01<00:06, 13.48it/s]\nPLMS Sampler: 15%|█▌ | 15/100 [00:01<00:06, 13.48it/s]\nPLMS Sampler: 17%|█▋ | 17/100 [00:01<00:06, 13.61it/s]\nPLMS Sampler: 19%|█▉ | 19/100 [00:01<00:05, 13.76it/s]\nPLMS Sampler: 21%|██ | 21/100 [00:01<00:05, 13.86it/s]\nPLMS Sampler: 23%|██▎ | 23/100 [00:01<00:05, 13.92it/s]\nPLMS Sampler: 25%|██▌ | 25/100 [00:01<00:05, 13.72it/s]\nPLMS Sampler: 27%|██▋ | 27/100 [00:02<00:05, 13.52it/s]\nPLMS Sampler: 29%|██▉ | 29/100 [00:02<00:05, 13.70it/s]\nPLMS Sampler: 31%|███ | 31/100 [00:02<00:04, 13.82it/s]\nPLMS Sampler: 33%|███▎ | 33/100 [00:02<00:04, 13.90it/s]\nPLMS Sampler: 35%|███▌ | 35/100 [00:02<00:04, 13.95it/s]\nPLMS Sampler: 37%|███▋ | 37/100 [00:02<00:04, 13.98it/s]\nPLMS Sampler: 39%|███▉ | 39/100 [00:02<00:04, 13.98it/s]\nPLMS Sampler: 41%|████ | 41/100 [00:03<00:04, 13.78it/s]\nPLMS Sampler: 43%|████▎ | 43/100 [00:03<00:04, 13.80it/s]\nPLMS Sampler: 45%|████▌ | 45/100 [00:03<00:03, 13.81it/s]\nPLMS Sampler: 47%|████▋ | 47/100 [00:03<00:03, 13.53it/s]\nPLMS Sampler: 49%|████▉ | 49/100 [00:03<00:03, 13.58it/s]\nPLMS Sampler: 51%|█████ | 51/100 [00:03<00:03, 13.62it/s]\nPLMS Sampler: 53%|█████▎ | 53/100 [00:03<00:03, 13.65it/s]\nPLMS Sampler: 55%|█████▌ | 55/100 [00:04<00:03, 13.78it/s]\nPLMS Sampler: 57%|█████▋ | 57/100 [00:04<00:03, 13.87it/s]\nPLMS Sampler: 59%|█████▉ | 59/100 [00:04<00:02, 13.92it/s]\nPLMS Sampler: 61%|██████ | 61/100 [00:04<00:02, 13.93it/s]\nPLMS Sampler: 63%|██████▎ | 63/100 [00:04<00:02, 13.80it/s]\nPLMS Sampler: 65%|██████▌ | 65/100 [00:04<00:02, 13.82it/s]\nPLMS Sampler: 67%|██████▋ | 67/100 [00:04<00:02, 13.57it/s]\nPLMS Sampler: 69%|██████▉ | 69/100 [00:05<00:02, 13.71it/s]\nPLMS Sampler: 71%|███████ | 71/100 [00:05<00:02, 13.80it/s]\nPLMS Sampler: 73%|███████▎ | 73/100 [00:05<00:01, 13.88it/s]\nPLMS Sampler: 75%|███████▌ | 75/100 [00:05<00:01, 13.74it/s]\nPLMS Sampler: 77%|███████▋ | 77/100 [00:05<00:01, 13.74it/s]\nPLMS Sampler: 79%|███████▉ | 79/100 [00:05<00:01, 13.65it/s]\nPLMS Sampler: 81%|████████ | 81/100 [00:05<00:01, 13.49it/s]\nPLMS Sampler: 83%|████████▎ | 83/100 [00:06<00:01, 13.34it/s]\nPLMS Sampler: 85%|████████▌ | 85/100 [00:06<00:01, 13.47it/s]\nPLMS Sampler: 87%|████████▋ | 87/100 [00:06<00:00, 13.58it/s]\nPLMS Sampler: 89%|████████▉ | 89/100 [00:06<00:00, 13.66it/s]\nPLMS Sampler: 91%|█████████ | 91/100 [00:06<00:00, 13.71it/s]\nPLMS Sampler: 93%|█████████▎| 93/100 [00:06<00:00, 13.75it/s]\nPLMS Sampler: 95%|█████████▌| 95/100 [00:07<00:00, 13.72it/s]\nPLMS Sampler: 97%|█████████▋| 97/100 [00:07<00:00, 13.76it/s]\nPLMS Sampler: 99%|█████████▉| 99/100 [00:07<00:00, 13.72it/s]\nPLMS Sampler: 100%|██████████| 100/100 [00:07<00:00, 13.57it/s]",
"metrics": {
"predict_time": 8.378423,
"total_time": 8.547642
},
"output": "https://replicate.delivery/mgxm/9c52d2c4-ed81-444c-b7b8-a91239000b0a/out.png",
"started_at": "2022-08-19T16:54:19.241627Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/4cd4cdemsrgsjmmwquauzn5m5u",
"cancel": "https://api.replicate.com/v1/predictions/4cd4cdemsrgsjmmwquauzn5m5u/cancel"
},
"version": "2c737891c668aa2a759ea6db63b35d3a4f569a803dbad2446c872475c4fb6c63"
}
Using random seed 3452364376
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.12it/s]
PLMS Sampler: 3%|▎ | 3/100 [00:00<00:09, 10.15it/s]
PLMS Sampler: 5%|▌ | 5/100 [00:00<00:08, 11.84it/s]
PLMS Sampler: 7%|▋ | 7/100 [00:00<00:07, 12.64it/s]
PLMS Sampler: 9%|▉ | 9/100 [00:00<00:07, 12.93it/s]
PLMS Sampler: 11%|█ | 11/100 [00:00<00:06, 13.29it/s]
PLMS Sampler: 13%|█▎ | 13/100 [00:01<00:06, 13.48it/s]
PLMS Sampler: 15%|█▌ | 15/100 [00:01<00:06, 13.48it/s]
PLMS Sampler: 17%|█▋ | 17/100 [00:01<00:06, 13.61it/s]
PLMS Sampler: 19%|█▉ | 19/100 [00:01<00:05, 13.76it/s]
PLMS Sampler: 21%|██ | 21/100 [00:01<00:05, 13.86it/s]
PLMS Sampler: 23%|██▎ | 23/100 [00:01<00:05, 13.92it/s]
PLMS Sampler: 25%|██▌ | 25/100 [00:01<00:05, 13.72it/s]
PLMS Sampler: 27%|██▋ | 27/100 [00:02<00:05, 13.52it/s]
PLMS Sampler: 29%|██▉ | 29/100 [00:02<00:05, 13.70it/s]
PLMS Sampler: 31%|███ | 31/100 [00:02<00:04, 13.82it/s]
PLMS Sampler: 33%|███▎ | 33/100 [00:02<00:04, 13.90it/s]
PLMS Sampler: 35%|███▌ | 35/100 [00:02<00:04, 13.95it/s]
PLMS Sampler: 37%|███▋ | 37/100 [00:02<00:04, 13.98it/s]
PLMS Sampler: 39%|███▉ | 39/100 [00:02<00:04, 13.98it/s]
PLMS Sampler: 41%|████ | 41/100 [00:03<00:04, 13.78it/s]
PLMS Sampler: 43%|████▎ | 43/100 [00:03<00:04, 13.80it/s]
PLMS Sampler: 45%|████▌ | 45/100 [00:03<00:03, 13.81it/s]
PLMS Sampler: 47%|████▋ | 47/100 [00:03<00:03, 13.53it/s]
PLMS Sampler: 49%|████▉ | 49/100 [00:03<00:03, 13.58it/s]
PLMS Sampler: 51%|█████ | 51/100 [00:03<00:03, 13.62it/s]
PLMS Sampler: 53%|█████▎ | 53/100 [00:03<00:03, 13.65it/s]
PLMS Sampler: 55%|█████▌ | 55/100 [00:04<00:03, 13.78it/s]
PLMS Sampler: 57%|█████▋ | 57/100 [00:04<00:03, 13.87it/s]
PLMS Sampler: 59%|█████▉ | 59/100 [00:04<00:02, 13.92it/s]
PLMS Sampler: 61%|██████ | 61/100 [00:04<00:02, 13.93it/s]
PLMS Sampler: 63%|██████▎ | 63/100 [00:04<00:02, 13.80it/s]
PLMS Sampler: 65%|██████▌ | 65/100 [00:04<00:02, 13.82it/s]
PLMS Sampler: 67%|██████▋ | 67/100 [00:04<00:02, 13.57it/s]
PLMS Sampler: 69%|██████▉ | 69/100 [00:05<00:02, 13.71it/s]
PLMS Sampler: 71%|███████ | 71/100 [00:05<00:02, 13.80it/s]
PLMS Sampler: 73%|███████▎ | 73/100 [00:05<00:01, 13.88it/s]
PLMS Sampler: 75%|███████▌ | 75/100 [00:05<00:01, 13.74it/s]
PLMS Sampler: 77%|███████▋ | 77/100 [00:05<00:01, 13.74it/s]
PLMS Sampler: 79%|███████▉ | 79/100 [00:05<00:01, 13.65it/s]
PLMS Sampler: 81%|████████ | 81/100 [00:05<00:01, 13.49it/s]
PLMS Sampler: 83%|████████▎ | 83/100 [00:06<00:01, 13.34it/s]
PLMS Sampler: 85%|████████▌ | 85/100 [00:06<00:01, 13.47it/s]
PLMS Sampler: 87%|████████▋ | 87/100 [00:06<00:00, 13.58it/s]
PLMS Sampler: 89%|████████▉ | 89/100 [00:06<00:00, 13.66it/s]
PLMS Sampler: 91%|█████████ | 91/100 [00:06<00:00, 13.71it/s]
PLMS Sampler: 93%|█████████▎| 93/100 [00:06<00:00, 13.75it/s]
PLMS Sampler: 95%|█████████▌| 95/100 [00:07<00:00, 13.72it/s]
PLMS Sampler: 97%|█████████▋| 97/100 [00:07<00:00, 13.76it/s]
PLMS Sampler: 99%|█████████▉| 99/100 [00:07<00:00, 13.72it/s]
PLMS Sampler: 100%|██████████| 100/100 [00:07<00:00, 13.57it/s]