Readme
This model doesn't have a readme.
(Updated 4 months, 4 weeks ago)
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 shoshosho77/sina-test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"shoshosho77/sina-test2:d73f88e33769805e3e7e63c8551a8c903649474e690fea7d1ea56c9dc44df5e6",
{
input: {
model: "dev",
prompt: "aesthetic black and white photo of SINA sitting on a stool looking slightly down",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 2,
aspect_ratio: "4:5",
output_format: "webp",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 1,
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 shoshosho77/sina-test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"shoshosho77/sina-test2:d73f88e33769805e3e7e63c8551a8c903649474e690fea7d1ea56c9dc44df5e6",
input={
"model": "dev",
"prompt": "aesthetic black and white photo of SINA sitting on a stool looking slightly down",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 2,
"aspect_ratio": "4:5",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"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 shoshosho77/sina-test2 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": "shoshosho77/sina-test2:d73f88e33769805e3e7e63c8551a8c903649474e690fea7d1ea56c9dc44df5e6",
"input": {
"model": "dev",
"prompt": "aesthetic black and white photo of SINA sitting on a stool looking slightly down",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 2,
"aspect_ratio": "4:5",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"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
{
"completed_at": "2025-01-17T04:50:28.587667Z",
"created_at": "2025-01-17T04:50:15.695000Z",
"data_removed": false,
"error": null,
"id": "w6n49czt1xrmc0cmeac9ajw6r0",
"input": {
"model": "dev",
"prompt": "aesthetic black and white photo of SINA sitting on a stool looking slightly down",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 2,
"aspect_ratio": "4:5",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "2025-01-17 04:50:15.700 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2025-01-17 04:50:15.701 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 95%|█████████▌| 289/304 [00:00<00:00, 2859.10it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2800.45it/s]\n2025-01-17 04:50:15.810 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s\n2025-01-17 04:50:15.811 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/57697baf7f913016\n2025-01-17 04:50:15.968 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded\n2025-01-17 04:50:15.969 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2025-01-17 04:50:15.969 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 92%|█████████▏| 281/304 [00:00<00:00, 2796.91it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2703.24it/s]\n2025-01-17 04:50:16.082 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.27s\nUsing seed: 45476\n0it [00:00, ?it/s]\n1it [00:00, 9.12it/s]\n2it [00:00, 6.36it/s]\n3it [00:00, 5.81it/s]\n4it [00:00, 5.60it/s]\n5it [00:00, 5.43it/s]\n6it [00:01, 5.33it/s]\n7it [00:01, 5.26it/s]\n8it [00:01, 5.25it/s]\n9it [00:01, 5.24it/s]\n10it [00:01, 5.22it/s]\n11it [00:02, 5.19it/s]\n12it [00:02, 5.18it/s]\n13it [00:02, 5.19it/s]\n14it [00:02, 5.19it/s]\n15it [00:02, 5.20it/s]\n16it [00:02, 5.20it/s]\n17it [00:03, 5.20it/s]\n18it [00:03, 5.19it/s]\n19it [00:03, 5.18it/s]\n20it [00:03, 5.17it/s]\n21it [00:03, 5.17it/s]\n22it [00:04, 5.17it/s]\n23it [00:04, 5.19it/s]\n24it [00:04, 5.17it/s]\n25it [00:04, 5.15it/s]\n26it [00:04, 5.15it/s]\n27it [00:05, 5.15it/s]\n28it [00:05, 5.17it/s]\n28it [00:05, 5.26it/s]\n0it [00:00, ?it/s]\n1it [00:00, 5.19it/s]\n2it [00:00, 5.15it/s]\n3it [00:00, 5.14it/s]\n4it [00:00, 5.15it/s]\n5it [00:00, 5.15it/s]\n6it [00:01, 5.16it/s]\n7it [00:01, 5.19it/s]\n8it [00:01, 5.20it/s]\n9it [00:01, 5.20it/s]\n10it [00:01, 5.19it/s]\n11it [00:02, 5.21it/s]\n12it [00:02, 5.20it/s]\n13it [00:02, 5.19it/s]\n14it [00:02, 5.19it/s]\n15it [00:02, 5.20it/s]\n16it [00:03, 5.19it/s]\n17it [00:03, 5.20it/s]\n18it [00:03, 5.21it/s]\n19it [00:03, 5.18it/s]\n20it [00:03, 5.17it/s]\n21it [00:04, 5.20it/s]\n22it [00:04, 5.16it/s]\n23it [00:04, 5.16it/s]\n24it [00:04, 5.15it/s]\n25it [00:04, 5.16it/s]\n26it [00:05, 5.17it/s]\n27it [00:05, 5.17it/s]\n28it [00:05, 5.15it/s]\n28it [00:05, 5.18it/s]\nTotal safe images: 2 out of 2",
"metrics": {
"predict_time": 12.886595094,
"total_time": 12.892667
},
"output": [
"https://replicate.delivery/xezq/vgBGK06G65prI11Murbg8cgKdUgve2U2d6TW5062JJEKn8CKA/out-0.webp",
"https://replicate.delivery/xezq/fQA5vavl5KWzEi93oGpVeKgGBKafjaM8rOpazoNeaDqT5kXQB/out-1.webp"
],
"started_at": "2025-01-17T04:50:15.701072Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-ahbcg5qrrtbm3vlpj4kyuuwcin4ueftpxkvknspv5yk4qyyjgixa",
"get": "https://api.replicate.com/v1/predictions/w6n49czt1xrmc0cmeac9ajw6r0",
"cancel": "https://api.replicate.com/v1/predictions/w6n49czt1xrmc0cmeac9ajw6r0/cancel"
},
"version": "d73f88e33769805e3e7e63c8551a8c903649474e690fea7d1ea56c9dc44df5e6"
}
2025-01-17 04:50:15.700 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys
2025-01-17 04:50:15.701 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted
Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s]
Applying LoRA: 95%|█████████▌| 289/304 [00:00<00:00, 2859.10it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2800.45it/s]
2025-01-17 04:50:15.810 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s
2025-01-17 04:50:15.811 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/57697baf7f913016
2025-01-17 04:50:15.968 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded
2025-01-17 04:50:15.969 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys
2025-01-17 04:50:15.969 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted
Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s]
Applying LoRA: 92%|█████████▏| 281/304 [00:00<00:00, 2796.91it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2703.24it/s]
2025-01-17 04:50:16.082 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.27s
Using seed: 45476
0it [00:00, ?it/s]
1it [00:00, 9.12it/s]
2it [00:00, 6.36it/s]
3it [00:00, 5.81it/s]
4it [00:00, 5.60it/s]
5it [00:00, 5.43it/s]
6it [00:01, 5.33it/s]
7it [00:01, 5.26it/s]
8it [00:01, 5.25it/s]
9it [00:01, 5.24it/s]
10it [00:01, 5.22it/s]
11it [00:02, 5.19it/s]
12it [00:02, 5.18it/s]
13it [00:02, 5.19it/s]
14it [00:02, 5.19it/s]
15it [00:02, 5.20it/s]
16it [00:02, 5.20it/s]
17it [00:03, 5.20it/s]
18it [00:03, 5.19it/s]
19it [00:03, 5.18it/s]
20it [00:03, 5.17it/s]
21it [00:03, 5.17it/s]
22it [00:04, 5.17it/s]
23it [00:04, 5.19it/s]
24it [00:04, 5.17it/s]
25it [00:04, 5.15it/s]
26it [00:04, 5.15it/s]
27it [00:05, 5.15it/s]
28it [00:05, 5.17it/s]
28it [00:05, 5.26it/s]
0it [00:00, ?it/s]
1it [00:00, 5.19it/s]
2it [00:00, 5.15it/s]
3it [00:00, 5.14it/s]
4it [00:00, 5.15it/s]
5it [00:00, 5.15it/s]
6it [00:01, 5.16it/s]
7it [00:01, 5.19it/s]
8it [00:01, 5.20it/s]
9it [00:01, 5.20it/s]
10it [00:01, 5.19it/s]
11it [00:02, 5.21it/s]
12it [00:02, 5.20it/s]
13it [00:02, 5.19it/s]
14it [00:02, 5.19it/s]
15it [00:02, 5.20it/s]
16it [00:03, 5.19it/s]
17it [00:03, 5.20it/s]
18it [00:03, 5.21it/s]
19it [00:03, 5.18it/s]
20it [00:03, 5.17it/s]
21it [00:04, 5.20it/s]
22it [00:04, 5.16it/s]
23it [00:04, 5.16it/s]
24it [00:04, 5.15it/s]
25it [00:04, 5.16it/s]
26it [00:05, 5.17it/s]
27it [00:05, 5.17it/s]
28it [00:05, 5.15it/s]
28it [00:05, 5.18it/s]
Total safe images: 2 out of 2
This model runs on Nvidia H100 GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
This model is warm. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
2025-01-17 04:50:15.700 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys
2025-01-17 04:50:15.701 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted
Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s]
Applying LoRA: 95%|█████████▌| 289/304 [00:00<00:00, 2859.10it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2800.45it/s]
2025-01-17 04:50:15.810 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s
2025-01-17 04:50:15.811 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/57697baf7f913016
2025-01-17 04:50:15.968 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded
2025-01-17 04:50:15.969 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys
2025-01-17 04:50:15.969 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted
Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s]
Applying LoRA: 92%|█████████▏| 281/304 [00:00<00:00, 2796.91it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2703.24it/s]
2025-01-17 04:50:16.082 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.27s
Using seed: 45476
0it [00:00, ?it/s]
1it [00:00, 9.12it/s]
2it [00:00, 6.36it/s]
3it [00:00, 5.81it/s]
4it [00:00, 5.60it/s]
5it [00:00, 5.43it/s]
6it [00:01, 5.33it/s]
7it [00:01, 5.26it/s]
8it [00:01, 5.25it/s]
9it [00:01, 5.24it/s]
10it [00:01, 5.22it/s]
11it [00:02, 5.19it/s]
12it [00:02, 5.18it/s]
13it [00:02, 5.19it/s]
14it [00:02, 5.19it/s]
15it [00:02, 5.20it/s]
16it [00:02, 5.20it/s]
17it [00:03, 5.20it/s]
18it [00:03, 5.19it/s]
19it [00:03, 5.18it/s]
20it [00:03, 5.17it/s]
21it [00:03, 5.17it/s]
22it [00:04, 5.17it/s]
23it [00:04, 5.19it/s]
24it [00:04, 5.17it/s]
25it [00:04, 5.15it/s]
26it [00:04, 5.15it/s]
27it [00:05, 5.15it/s]
28it [00:05, 5.17it/s]
28it [00:05, 5.26it/s]
0it [00:00, ?it/s]
1it [00:00, 5.19it/s]
2it [00:00, 5.15it/s]
3it [00:00, 5.14it/s]
4it [00:00, 5.15it/s]
5it [00:00, 5.15it/s]
6it [00:01, 5.16it/s]
7it [00:01, 5.19it/s]
8it [00:01, 5.20it/s]
9it [00:01, 5.20it/s]
10it [00:01, 5.19it/s]
11it [00:02, 5.21it/s]
12it [00:02, 5.20it/s]
13it [00:02, 5.19it/s]
14it [00:02, 5.19it/s]
15it [00:02, 5.20it/s]
16it [00:03, 5.19it/s]
17it [00:03, 5.20it/s]
18it [00:03, 5.21it/s]
19it [00:03, 5.18it/s]
20it [00:03, 5.17it/s]
21it [00:04, 5.20it/s]
22it [00:04, 5.16it/s]
23it [00:04, 5.16it/s]
24it [00:04, 5.15it/s]
25it [00:04, 5.16it/s]
26it [00:05, 5.17it/s]
27it [00:05, 5.17it/s]
28it [00:05, 5.15it/s]
28it [00:05, 5.18it/s]
Total safe images: 2 out of 2