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.
idvorkin /idvorkin-flux-lora-1:3b28f3ad
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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run idvorkin/idvorkin-flux-lora-1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"idvorkin/idvorkin-flux-lora-1:3b28f3ad4762e11f61a4f15e3574342fadd116c5bf573b1c7800e7cc6df6e2e9",
{
input: {
model: "dev",
prompt: "A photo of idvorkin, a 40 years old man with pink glasses. While standing beside 30 year old MNALSA woman whose hair is down and not wearing glasses at a \ntropical party in a luxury yatch | Polaroid hangover | blurred crowd in the background",
go_fast: false,
extra_lora: "huggingface.co/fofr/flux-mona-lisa",
lora_scale: 1,
megapixels: "1",
num_outputs: 4,
aspect_ratio: "16:9",
output_format: "webp",
guidance_scale: 3.5,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 0.5,
num_inference_steps: 28
}
}
);
// 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.
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 idvorkin/idvorkin-flux-lora-1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"idvorkin/idvorkin-flux-lora-1:3b28f3ad4762e11f61a4f15e3574342fadd116c5bf573b1c7800e7cc6df6e2e9",
input={
"model": "dev",
"prompt": "A photo of idvorkin, a 40 years old man with pink glasses. While standing beside 30 year old MNALSA woman whose hair is down and not wearing glasses at a \ntropical party in a luxury yatch | Polaroid hangover | blurred crowd in the background",
"go_fast": False,
"extra_lora": "huggingface.co/fofr/flux-mona-lisa",
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 4,
"aspect_ratio": "16:9",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 0.5,
"num_inference_steps": 28
}
)
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 idvorkin/idvorkin-flux-lora-1 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": "idvorkin/idvorkin-flux-lora-1:3b28f3ad4762e11f61a4f15e3574342fadd116c5bf573b1c7800e7cc6df6e2e9",
"input": {
"model": "dev",
"prompt": "A photo of idvorkin, a 40 years old man with pink glasses. While standing beside 30 year old MNALSA woman whose hair is down and not wearing glasses at a \\ntropical party in a luxury yatch | Polaroid hangover | blurred crowd in the background",
"go_fast": false,
"extra_lora": "huggingface.co/fofr/flux-mona-lisa",
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 4,
"aspect_ratio": "16:9",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 0.5,
"num_inference_steps": 28
}
}' \
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": "2024-08-29T15:02:45.867309Z",
"created_at": "2024-08-29T15:01:25.514000Z",
"data_removed": false,
"error": null,
"id": "7xtnccpqh9rm40chktktnffb1r",
"input": {
"model": "dev",
"prompt": "A photo of idvorkin, a 40 years old man with pink glasses. While standing beside 30 year old MNALSA woman whose hair is down and not wearing glasses at a \ntropical party in a luxury yatch | Polaroid hangover | blurred crowd in the background",
"extra_lora": "huggingface.co/fofr/flux-mona-lisa",
"lora_scale": 1,
"num_outputs": 4,
"aspect_ratio": "16:9",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"extra_lora_scale": 0.5,
"num_inference_steps": 28
},
"logs": "Using seed: 31937\nPrompt: A photo of idvorkin, a 40 years old man with pink glasses. While standing beside 30 year old MNALSA woman whose hair is down and not wearing glasses at a\ntropical party in a luxury yatch | Polaroid hangover | blurred crowd in the background\ntxt2img mode\nUsing dev model\nLoading extra LoRA weights from: huggingface.co/fofr/flux-mona-lisa\nfree=9487178969088\nDownloading weights\n2024-08-29T15:01:31Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpnpp8y3rz/weights url=https://replicate.delivery/yhqm/fF00nKSVEqSSDSMIpoTTKCjkZMgEqBeq070sh7lZQfcFm2tmA/trained_model.tar\n2024-08-29T15:01:33Z | INFO | [ Complete ] dest=/tmp/tmpnpp8y3rz/weights size=\"172 MB\" total_elapsed=1.680s url=https://replicate.delivery/yhqm/fF00nKSVEqSSDSMIpoTTKCjkZMgEqBeq070sh7lZQfcFm2tmA/trained_model.tar\nDownloaded weights in 1.72s\nfree=9486833369088\nDownloading weights\n2024-08-29T15:01:49Z | INFO | [ Initiating ] chunk_size=150M dest=/src/weights-cache/4500b4050dfb2b0f url=https://huggingface.co/fofr/flux-mona-lisa/resolve/main/lora.safetensors\n2024-08-29T15:01:49Z | INFO | [ Redirect ] redirect_url=https://cdn-lfs-us-1.huggingface.co/repos/32/3c/323c7e1af8fe90546640f2c873cc675f1547894440739943410555df5f1c94c3/4c91c324737de3afadc8a373e0a8b79dcf24cf58fa38b5e74a73a6e253ab7336?response-content-disposition=inline%3B+filename*%3DUTF-8%27%27lora.safetensors%3B+filename%3D%22lora.safetensors%22%3B&Expires=1725202909&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTIwMjkwOX19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy11cy0xLmh1Z2dpbmdmYWNlLmNvL3JlcG9zLzMyLzNjLzMyM2M3ZTFhZjhmZTkwNTQ2NjQwZjJjODczY2M2NzVmMTU0Nzg5NDQ0MDczOTk0MzQxMDU1NWRmNWYxYzk0YzMvNGM5MWMzMjQ3MzdkZTNhZmFkYzhhMzczZTBhOGI3OWRjZjI0Y2Y1OGZhMzhiNWU3NGE3M2E2ZTI1M2FiNzMzNj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoifV19&Signature=f5kJgSdhCF747%7EWkhS45qMDE88u6vi-Qdqv5t%7ErJleLZKQIF2117gFjQxzop-xunHSB4h5BtnRfmiIDWQKrihGIOgZFkcDGXha8GKzg4TijNOZzsgX3wVAuav-kHKD8r266Oo03-zIEl%7EEz8YRIcoZ9Zegknv9yfnQmLgIKwEbyh3LBIRvb7ii5Lwe74B%7EYIqryZWeNoMYQP6lhgvs6fT6n27Is2n8GUEUf6ZkJk6PFcQqBdYezz%7EMiWLa3aTVaims7CYmaPIQOSsqVaaMEJDNQ7WYHCt%7ERLIRSHpS15KECQEvmqNtCCyp647QCSk5J-FnglY-GbJ-%7EUKv-VhgJNpw__&Key-Pair-Id=K24J24Z295AEI9 url=https://huggingface.co/fofr/flux-mona-lisa/resolve/main/lora.safetensors\n2024-08-29T15:01:51Z | INFO | [ Complete ] dest=/src/weights-cache/4500b4050dfb2b0f size=\"172 MB\" total_elapsed=2.141s url=https://huggingface.co/fofr/flux-mona-lisa/resolve/main/lora.safetensors\nDownloaded weights in 2.18s\nLoaded LoRAs in 40.17s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:31, 1.15s/it]\n 7%|▋ | 2/28 [00:02<00:27, 1.05s/it]\n 11%|█ | 3/28 [00:03<00:27, 1.10s/it]\n 14%|█▍ | 4/28 [00:04<00:26, 1.12s/it]\n 18%|█▊ | 5/28 [00:05<00:25, 1.13s/it]\n 21%|██▏ | 6/28 [00:06<00:25, 1.14s/it]\n 25%|██▌ | 7/28 [00:07<00:23, 1.14s/it]\n 29%|██▊ | 8/28 [00:09<00:22, 1.15s/it]\n 32%|███▏ | 9/28 [00:10<00:21, 1.15s/it]\n 36%|███▌ | 10/28 [00:11<00:20, 1.15s/it]\n 39%|███▉ | 11/28 [00:12<00:19, 1.15s/it]\n 43%|████▎ | 12/28 [00:13<00:18, 1.15s/it]\n 46%|████▋ | 13/28 [00:14<00:17, 1.15s/it]\n 50%|█████ | 14/28 [00:15<00:16, 1.15s/it]\n 54%|█████▎ | 15/28 [00:17<00:15, 1.15s/it]\n 57%|█████▋ | 16/28 [00:18<00:13, 1.16s/it]\n 61%|██████ | 17/28 [00:19<00:12, 1.15s/it]\n 64%|██████▍ | 18/28 [00:20<00:11, 1.15s/it]\n 68%|██████▊ | 19/28 [00:21<00:10, 1.16s/it]\n 71%|███████▏ | 20/28 [00:22<00:09, 1.16s/it]\n 75%|███████▌ | 21/28 [00:24<00:08, 1.16s/it]\n 79%|███████▊ | 22/28 [00:25<00:06, 1.16s/it]\n 82%|████████▏ | 23/28 [00:26<00:05, 1.16s/it]\n 86%|████████▌ | 24/28 [00:27<00:04, 1.16s/it]\n 89%|████████▉ | 25/28 [00:28<00:03, 1.16s/it]\n 93%|█████████▎| 26/28 [00:29<00:02, 1.16s/it]\n 96%|█████████▋| 27/28 [00:31<00:01, 1.16s/it]\n100%|██████████| 28/28 [00:32<00:00, 1.16s/it]\n100%|██████████| 28/28 [00:32<00:00, 1.15s/it]",
"metrics": {
"predict_time": 73.942286977,
"total_time": 80.353309
},
"output": [
"https://replicate.delivery/yhqm/gpXhbCAtfw0vZaL9hKAh0OobsdXKuUvw9EUjCFnczNxKfjXTA/out-0.webp",
"https://replicate.delivery/yhqm/dYY3hWtqnfVVeUJ1UHbkyyTUGYZMQgGQNNfKKSXWrNHq8HvmA/out-1.webp",
"https://replicate.delivery/yhqm/sah7QpznUR7MGVSJh6UdGQAfkf8LRcDzcffhCVCEEnBV5PeaC/out-2.webp",
"https://replicate.delivery/yhqm/meG4GT63BetKVU3yPJbWO7YegkPCfeZ8eD1hbEDhR7UQlfxrJA/out-3.webp"
],
"started_at": "2024-08-29T15:01:31.925022Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/7xtnccpqh9rm40chktktnffb1r",
"cancel": "https://api.replicate.com/v1/predictions/7xtnccpqh9rm40chktktnffb1r/cancel"
},
"version": "3b28f3ad4762e11f61a4f15e3574342fadd116c5bf573b1c7800e7cc6df6e2e9"
}
Using seed: 31937
Prompt: A photo of idvorkin, a 40 years old man with pink glasses. While standing beside 30 year old MNALSA woman whose hair is down and not wearing glasses at a
tropical party in a luxury yatch | Polaroid hangover | blurred crowd in the background
txt2img mode
Using dev model
Loading extra LoRA weights from: huggingface.co/fofr/flux-mona-lisa
free=9487178969088
Downloading weights
2024-08-29T15:01:31Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpnpp8y3rz/weights url=https://replicate.delivery/yhqm/fF00nKSVEqSSDSMIpoTTKCjkZMgEqBeq070sh7lZQfcFm2tmA/trained_model.tar
2024-08-29T15:01:33Z | INFO | [ Complete ] dest=/tmp/tmpnpp8y3rz/weights size="172 MB" total_elapsed=1.680s url=https://replicate.delivery/yhqm/fF00nKSVEqSSDSMIpoTTKCjkZMgEqBeq070sh7lZQfcFm2tmA/trained_model.tar
Downloaded weights in 1.72s
free=9486833369088
Downloading weights
2024-08-29T15:01:49Z | INFO | [ Initiating ] chunk_size=150M dest=/src/weights-cache/4500b4050dfb2b0f url=https://huggingface.co/fofr/flux-mona-lisa/resolve/main/lora.safetensors
2024-08-29T15:01:49Z | INFO | [ Redirect ] redirect_url=https://cdn-lfs-us-1.huggingface.co/repos/32/3c/323c7e1af8fe90546640f2c873cc675f1547894440739943410555df5f1c94c3/4c91c324737de3afadc8a373e0a8b79dcf24cf58fa38b5e74a73a6e253ab7336?response-content-disposition=inline%3B+filename*%3DUTF-8%27%27lora.safetensors%3B+filename%3D%22lora.safetensors%22%3B&Expires=1725202909&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTIwMjkwOX19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy11cy0xLmh1Z2dpbmdmYWNlLmNvL3JlcG9zLzMyLzNjLzMyM2M3ZTFhZjhmZTkwNTQ2NjQwZjJjODczY2M2NzVmMTU0Nzg5NDQ0MDczOTk0MzQxMDU1NWRmNWYxYzk0YzMvNGM5MWMzMjQ3MzdkZTNhZmFkYzhhMzczZTBhOGI3OWRjZjI0Y2Y1OGZhMzhiNWU3NGE3M2E2ZTI1M2FiNzMzNj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoifV19&Signature=f5kJgSdhCF747%7EWkhS45qMDE88u6vi-Qdqv5t%7ErJleLZKQIF2117gFjQxzop-xunHSB4h5BtnRfmiIDWQKrihGIOgZFkcDGXha8GKzg4TijNOZzsgX3wVAuav-kHKD8r266Oo03-zIEl%7EEz8YRIcoZ9Zegknv9yfnQmLgIKwEbyh3LBIRvb7ii5Lwe74B%7EYIqryZWeNoMYQP6lhgvs6fT6n27Is2n8GUEUf6ZkJk6PFcQqBdYezz%7EMiWLa3aTVaims7CYmaPIQOSsqVaaMEJDNQ7WYHCt%7ERLIRSHpS15KECQEvmqNtCCyp647QCSk5J-FnglY-GbJ-%7EUKv-VhgJNpw__&Key-Pair-Id=K24J24Z295AEI9 url=https://huggingface.co/fofr/flux-mona-lisa/resolve/main/lora.safetensors
2024-08-29T15:01:51Z | INFO | [ Complete ] dest=/src/weights-cache/4500b4050dfb2b0f size="172 MB" total_elapsed=2.141s url=https://huggingface.co/fofr/flux-mona-lisa/resolve/main/lora.safetensors
Downloaded weights in 2.18s
Loaded LoRAs in 40.17s
0%| | 0/28 [00:00<?, ?it/s]
4%|▎ | 1/28 [00:01<00:31, 1.15s/it]
7%|▋ | 2/28 [00:02<00:27, 1.05s/it]
11%|█ | 3/28 [00:03<00:27, 1.10s/it]
14%|█▍ | 4/28 [00:04<00:26, 1.12s/it]
18%|█▊ | 5/28 [00:05<00:25, 1.13s/it]
21%|██▏ | 6/28 [00:06<00:25, 1.14s/it]
25%|██▌ | 7/28 [00:07<00:23, 1.14s/it]
29%|██▊ | 8/28 [00:09<00:22, 1.15s/it]
32%|███▏ | 9/28 [00:10<00:21, 1.15s/it]
36%|███▌ | 10/28 [00:11<00:20, 1.15s/it]
39%|███▉ | 11/28 [00:12<00:19, 1.15s/it]
43%|████▎ | 12/28 [00:13<00:18, 1.15s/it]
46%|████▋ | 13/28 [00:14<00:17, 1.15s/it]
50%|█████ | 14/28 [00:15<00:16, 1.15s/it]
54%|█████▎ | 15/28 [00:17<00:15, 1.15s/it]
57%|█████▋ | 16/28 [00:18<00:13, 1.16s/it]
61%|██████ | 17/28 [00:19<00:12, 1.15s/it]
64%|██████▍ | 18/28 [00:20<00:11, 1.15s/it]
68%|██████▊ | 19/28 [00:21<00:10, 1.16s/it]
71%|███████▏ | 20/28 [00:22<00:09, 1.16s/it]
75%|███████▌ | 21/28 [00:24<00:08, 1.16s/it]
79%|███████▊ | 22/28 [00:25<00:06, 1.16s/it]
82%|████████▏ | 23/28 [00:26<00:05, 1.16s/it]
86%|████████▌ | 24/28 [00:27<00:04, 1.16s/it]
89%|████████▉ | 25/28 [00:28<00:03, 1.16s/it]
93%|█████████▎| 26/28 [00:29<00:02, 1.16s/it]
96%|█████████▋| 27/28 [00:31<00:01, 1.16s/it]
100%|██████████| 28/28 [00:32<00:00, 1.16s/it]
100%|██████████| 28/28 [00:32<00:00, 1.15s/it]