wolverinn
commited on
Commit
·
92ba35f
1
Parent(s):
b3ff019
add negative prompt & return parameters
Browse files- handler.py +2 -1
handler.py
CHANGED
|
@@ -145,7 +145,7 @@ class EndpointHandler():
|
|
| 145 |
# todo: don't output png
|
| 146 |
"outpath_samples": "C:\\Users\\wolvz\\Desktop",
|
| 147 |
"prompt": "lora:koreanDollLikeness_v15:0.66, best quality, ultra high res, (photorealistic:1.4), 1girl, beige sweater, black choker, smile, laughing, bare shoulders, solo focus, ((full body), (brown hair:1), looking at viewer",
|
| 148 |
-
"negative_prompt": "paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans",
|
| 149 |
"sampler_name": "DPM++ SDE Karras",
|
| 150 |
"steps": 20, # 25
|
| 151 |
"cfg_scale": 8,
|
|
@@ -160,6 +160,7 @@ class EndpointHandler():
|
|
| 160 |
single_image_b64 = encode_pil_to_base64(processed.images[0]).decode('utf-8')
|
| 161 |
return {
|
| 162 |
"img_data": single_image_b64,
|
|
|
|
| 163 |
}
|
| 164 |
|
| 165 |
|
|
|
|
| 145 |
# todo: don't output png
|
| 146 |
"outpath_samples": "C:\\Users\\wolvz\\Desktop",
|
| 147 |
"prompt": "lora:koreanDollLikeness_v15:0.66, best quality, ultra high res, (photorealistic:1.4), 1girl, beige sweater, black choker, smile, laughing, bare shoulders, solo focus, ((full body), (brown hair:1), looking at viewer",
|
| 148 |
+
"negative_prompt": "paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans, (ugly:1.331), (duplicate:1.331), (morbid:1.21), (mutilated:1.21), (tranny:1.331), mutated hands, (poorly drawn hands:1.331), blurry, 3hands,4fingers,3arms, bad anatomy, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts,poorly drawn face,mutation,deformed",
|
| 149 |
"sampler_name": "DPM++ SDE Karras",
|
| 150 |
"steps": 20, # 25
|
| 151 |
"cfg_scale": 8,
|
|
|
|
| 160 |
single_image_b64 = encode_pil_to_base64(processed.images[0]).decode('utf-8')
|
| 161 |
return {
|
| 162 |
"img_data": single_image_b64,
|
| 163 |
+
"parameters": processed.images[0].info.get('parameters', ""),
|
| 164 |
}
|
| 165 |
|
| 166 |
|