Upload folder using huggingface_hub
Browse files- .gitignore +2 -0
- README.md +66 -0
- text_encoder/pytorch_model.bin +3 -0
- text_encoder_2/pytorch_model.bin +3 -0
- unet/diffusion_pytorch_model.bin +3 -0
- vae/diffusion_pytorch_model.bin +3 -0
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
step_*
|
2 |
+
epoch_*
|
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: creativeml-openrail-m
|
3 |
+
tags:
|
4 |
+
- stablediffusionapi.com
|
5 |
+
- stable-diffusion-api
|
6 |
+
- text-to-image
|
7 |
+
- ultra-realistic
|
8 |
+
pinned: true
|
9 |
+
---
|
10 |
+
|
11 |
+
# NewDream-SDXL 2.0 API Inference
|
12 |
+
|
13 |
+
![generated from stablediffusionapi.com](https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/8478583971702167737.png)
|
14 |
+
## Get API Key
|
15 |
+
|
16 |
+
Get API key from [Stable Diffusion API](http://stablediffusionapi.com/), No Payment needed.
|
17 |
+
|
18 |
+
Replace Key in below code, change **model_id** to "newdream-sdxl-20"
|
19 |
+
|
20 |
+
Coding in PHP/Node/Java etc? Have a look at docs for more code examples: [View docs](https://stablediffusionapi.com/docs)
|
21 |
+
|
22 |
+
Try model for free: [Generate Images](https://stablediffusionapi.com/models/newdream-sdxl-20)
|
23 |
+
|
24 |
+
Model link: [View model](https://stablediffusionapi.com/models/newdream-sdxl-20)
|
25 |
+
|
26 |
+
Credits: [View credits](https://civitai.com/?query=NewDream-SDXL%202.0)
|
27 |
+
|
28 |
+
View all models: [View Models](https://stablediffusionapi.com/models)
|
29 |
+
|
30 |
+
import requests
|
31 |
+
import json
|
32 |
+
|
33 |
+
url = "https://stablediffusionapi.com/api/v4/dreambooth"
|
34 |
+
|
35 |
+
payload = json.dumps({
|
36 |
+
"key": "your_api_key",
|
37 |
+
"model_id": "newdream-sdxl-20",
|
38 |
+
"prompt": "ultra realistic close up portrait ((beautiful pale cyberpunk female with heavy black eyeliner)), blue eyes, shaved side haircut, hyper detail, cinematic lighting, magic neon, dark red city, Canon EOS R3, nikon, f/1.4, ISO 200, 1/160s, 8K, RAW, unedited, symmetrical balance, in-frame, 8K",
|
39 |
+
"negative_prompt": "painting, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, deformed, ugly, blurry, bad anatomy, bad proportions, extra limbs, cloned face, skinny, glitchy, double torso, extra arms, extra hands, mangled fingers, missing lips, ugly face, distorted face, extra legs, anime",
|
40 |
+
"width": "512",
|
41 |
+
"height": "512",
|
42 |
+
"samples": "1",
|
43 |
+
"num_inference_steps": "30",
|
44 |
+
"safety_checker": "no",
|
45 |
+
"enhance_prompt": "yes",
|
46 |
+
"seed": None,
|
47 |
+
"guidance_scale": 7.5,
|
48 |
+
"multi_lingual": "no",
|
49 |
+
"panorama": "no",
|
50 |
+
"self_attention": "no",
|
51 |
+
"upscale": "no",
|
52 |
+
"embeddings": "embeddings_model_id",
|
53 |
+
"lora": "lora_model_id",
|
54 |
+
"webhook": None,
|
55 |
+
"track_id": None
|
56 |
+
})
|
57 |
+
|
58 |
+
headers = {
|
59 |
+
'Content-Type': 'application/json'
|
60 |
+
}
|
61 |
+
|
62 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
63 |
+
|
64 |
+
print(response.text)
|
65 |
+
|
66 |
+
> Use this coupon code to get 25% off **DMGG0RBN**
|
text_encoder/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:192a06f4ef7ece4acb33fc3c717790ee37b1f5d85e48e0dcac54dfea93e584a2
|
3 |
+
size 246185562
|
text_encoder_2/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8841d5e4c05ce74941eb536ec3835f600cc82d36763fc5f30c69d09a886158c9
|
3 |
+
size 1389490462
|
unet/diffusion_pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:56913b74b493462516ce770d525cca996feef7acd44cf0cba65de667a6c1d58c
|
3 |
+
size 5135669022
|
vae/diffusion_pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33c40ff3dc7adeb21dce76cd411d65828037efa0aa54432e3592418401cf8467
|
3 |
+
size 167404866
|