Montey commited on
Commit
fc77ff6
·
verified ·
1 Parent(s): 06a0397

Upload folder using huggingface_hub

Browse files
.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**
model_index.json CHANGED
@@ -13,7 +13,7 @@
13
  ],
14
  "scheduler": [
15
  "diffusers",
16
- "EulerDiscreteScheduler"
17
  ],
18
  "text_encoder": [
19
  "transformers",
 
13
  ],
14
  "scheduler": [
15
  "diffusers",
16
+ "DPMSolverMultistepScheduler"
17
  ],
18
  "text_encoder": [
19
  "transformers",
scheduler/scheduler_config.json CHANGED
@@ -1,23 +1,26 @@
1
  {
2
- "_class_name": "EulerDiscreteScheduler",
3
  "_diffusers_version": "0.29.0",
 
4
  "beta_end": 0.012,
5
  "beta_schedule": "scaled_linear",
6
  "beta_start": 0.00085,
7
- "clip_sample": false,
 
8
  "final_sigmas_type": "zero",
9
- "interpolation_type": "linear",
 
10
  "num_train_timesteps": 1000,
11
  "prediction_type": "epsilon",
12
  "rescale_betas_zero_snr": false,
13
  "sample_max_value": 1.0,
14
- "set_alpha_to_one": false,
15
- "sigma_max": null,
16
- "sigma_min": null,
17
- "skip_prk_steps": true,
18
- "steps_offset": 1,
19
- "timestep_spacing": "leading",
20
- "timestep_type": "discrete",
21
  "trained_betas": null,
22
- "use_karras_sigmas": false
 
 
23
  }
 
1
  {
2
+ "_class_name": "DPMSolverMultistepScheduler",
3
  "_diffusers_version": "0.29.0",
4
+ "algorithm_type": "sde-dpmsolver++",
5
  "beta_end": 0.012,
6
  "beta_schedule": "scaled_linear",
7
  "beta_start": 0.00085,
8
+ "dynamic_thresholding_ratio": 0.995,
9
+ "euler_at_final": false,
10
  "final_sigmas_type": "zero",
11
+ "lambda_min_clipped": -Infinity,
12
+ "lower_order_final": true,
13
  "num_train_timesteps": 1000,
14
  "prediction_type": "epsilon",
15
  "rescale_betas_zero_snr": false,
16
  "sample_max_value": 1.0,
17
+ "solver_order": 2,
18
+ "solver_type": "midpoint",
19
+ "steps_offset": 0,
20
+ "thresholding": false,
21
+ "timestep_spacing": "linspace",
 
 
22
  "trained_betas": null,
23
+ "use_karras_sigmas": true,
24
+ "use_lu_lambdas": false,
25
+ "variance_type": null
26
  }
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/config.json CHANGED
@@ -15,7 +15,7 @@
15
  "DownEncoderBlock2D",
16
  "DownEncoderBlock2D"
17
  ],
18
- "force_upcast": true,
19
  "in_channels": 3,
20
  "latent_channels": 4,
21
  "latents_mean": null,
@@ -23,7 +23,7 @@
23
  "layers_per_block": 2,
24
  "norm_num_groups": 32,
25
  "out_channels": 3,
26
- "sample_size": 1024,
27
  "scaling_factor": 0.13025,
28
  "shift_factor": null,
29
  "up_block_types": [
 
15
  "DownEncoderBlock2D",
16
  "DownEncoderBlock2D"
17
  ],
18
+ "force_upcast": false,
19
  "in_channels": 3,
20
  "latent_channels": 4,
21
  "latents_mean": null,
 
23
  "layers_per_block": 2,
24
  "norm_num_groups": 32,
25
  "out_channels": 3,
26
+ "sample_size": 512,
27
  "scaling_factor": 0.13025,
28
  "shift_factor": null,
29
  "up_block_types": [
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
vae/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:915b909d0eeef5985462226b2c9950ca9da42b5a6ec8c296c2e73f6419ae465c
3
  size 167335342
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6353737672c94b96174cb590f711eac6edf2fcce5b6e91aa9d73c5adc589ee48
3
  size 167335342