image-pipeline
commited on
Commit
•
688adb9
1
Parent(s):
dc8d9f1
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: creativeml-openrail-m
|
3 |
+
tags:
|
4 |
+
- imagepipeline
|
5 |
+
- imagepipeline.io
|
6 |
+
- text-to-image
|
7 |
+
- ultra-realistic
|
8 |
+
pinned: false
|
9 |
+
pipeline_tag: text-to-image
|
10 |
+
|
11 |
+
---
|
12 |
+
|
13 |
+
|
14 |
+
## Emotions-Defiance
|
15 |
+
<img src="https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?fileId=4_zfdf0a8ed59e8666b89b10713_f1149aeaab4e7d44e_d20231208_m135540_c005_v0501014_t0058_u01702043740089" alt="Generated by Image Pipeline" style="border-radius: 10px;">
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
**This embedding model is uploaded on [imagepipeline.io](https://imagepipeline.io/)**
|
20 |
+
|
21 |
+
Model details - I've designed these embeds to be lightweight and easy to use. Just add the emotion pack you want right next to your subject name as follows:
|
22 |
+
|
23 |
+
a portrait of a Happy512 clown
|
24 |
+
|
25 |
+
While they will likely still work if you plop them in other places in your prompt, they work best when they are placed just preceding your subject.
|
26 |
+
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
[![Try this model](https://img.shields.io/badge/try_this_model-image_pipeline-BD9319)](https://imagepipeline.io/models/Emotions-Defiance?id=92cbf006-cb38-454a-a40d-3a2b190bb72f/)
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
## How to try this model ?
|
36 |
+
|
37 |
+
You can try using it locally or send an API call to test the output quality.
|
38 |
+
|
39 |
+
Get your `API_KEY` from [imagepipeline.io](https://imagepipeline.io/). No payment required.
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
Coding in `php` `javascript` `node` etc ? Checkout our documentation
|
46 |
+
|
47 |
+
[![documentation](https://img.shields.io/badge/documentation-image_pipeline-blue)](https://docs.imagepipeline.io/docs/introduction)
|
48 |
+
|
49 |
+
|
50 |
+
```python
|
51 |
+
import requests
|
52 |
+
import json
|
53 |
+
|
54 |
+
url = "https://imagepipeline.io/sd/text2image/v1/run"
|
55 |
+
|
56 |
+
payload = json.dumps({
|
57 |
+
"model_id": "sd1.5",
|
58 |
+
"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",
|
59 |
+
"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",
|
60 |
+
"width": "512",
|
61 |
+
"height": "512",
|
62 |
+
"samples": "1",
|
63 |
+
"num_inference_steps": "30",
|
64 |
+
"safety_checker": false,
|
65 |
+
"guidance_scale": 7.5,
|
66 |
+
"multi_lingual": "no",
|
67 |
+
"embeddings": "92cbf006-cb38-454a-a40d-3a2b190bb72f",
|
68 |
+
"lora_models": "",
|
69 |
+
"lora_weights": ""
|
70 |
+
})
|
71 |
+
|
72 |
+
headers = {
|
73 |
+
'Content-Type': 'application/json',
|
74 |
+
'API-Key': 'your_api_key'
|
75 |
+
}
|
76 |
+
|
77 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
78 |
+
|
79 |
+
print(response.text)
|
80 |
+
|
81 |
+
}
|
82 |
+
```
|
83 |
+
|
84 |
+
Get more ready to use `MODELS` like this for `SD 1.5` and `SDXL` :
|
85 |
+
|
86 |
+
[![All models](https://img.shields.io/badge/Get%20All%20Models-image_pipeline-BD9319)](https://imagepipeline.io/models)
|
87 |
+
|
88 |
+
### API Reference
|
89 |
+
|
90 |
+
#### Generate Image
|
91 |
+
|
92 |
+
```http
|
93 |
+
https://api.imagepipeline.io/sd/text2image/v1
|
94 |
+
```
|
95 |
+
|
96 |
+
| Headers | Type | Description |
|
97 |
+
|:----------------------| :------- |:-------------------------------------------------------------------------------------------------------------------|
|
98 |
+
| `API-Key` | `str` | Get your `API_KEY` from [imagepipeline.io](https://imagepipeline.io/) |
|
99 |
+
| `Content-Type` | `str` | application/json - content type of the request body |
|
100 |
+
|
101 |
+
|
102 |
+
| Parameter | Type | Description |
|
103 |
+
| :-------- | :------- | :------------------------- |
|
104 |
+
| `model_id` | `str` | Your base model, find available lists in [models page](https://imagepipeline.io/models) or upload your own|
|
105 |
+
| `prompt` | `str` | Text Prompt. Check our [Prompt Guide](https://docs.imagepipeline.io/docs/SD-1.5/docs/extras/prompt-guide) for tips |
|
106 |
+
| `num_inference_steps` | `int [1-50]` | Noise is removed with each step, resulting in a higher-quality image over time. Ideal value 30-50 (without LCM) |
|
107 |
+
| `guidance_scale` | `float [1-20]` | Higher guidance scale prioritizes text prompt relevance but sacrifices image quality. Ideal value 7.5-12.5 |
|
108 |
+
| `lora_models` | `str, array` | Pass the model_id(s) of LoRA models that can be found in models page |
|
109 |
+
| `lora_weights` | `str, array` | Strength of the LoRA effect |
|
110 |
+
|
111 |
+
---
|
112 |
+
license: creativeml-openrail-m
|
113 |
+
tags:
|
114 |
+
- imagepipeline
|
115 |
+
- imagepipeline.io
|
116 |
+
- text-to-image
|
117 |
+
- ultra-realistic
|
118 |
+
pinned: false
|
119 |
+
pipeline_tag: text-to-image
|
120 |
+
|
121 |
+
---
|
122 |
+
|
123 |
+
### Feedback
|
124 |
+
|
125 |
+
If you have any feedback, please reach out to us at [email protected]
|
126 |
+
|
127 |
+
|
128 |
+
#### 🔗 Visit Website
|
129 |
+
[![portfolio](https://img.shields.io/badge/image_pipeline-BD9319?style=for-the-badge&logo=gocd&logoColor=white)](https://imagepipeline.io/)
|
130 |
+
|
131 |
+
|
132 |
+
If you are the original author of this model, please [click here](https://airtable.com/apprTaRnJbDJ8ufOx/shr4g7o9B6fWfOlUR) to add credits
|