Commit
·
798fbec
1
Parent(s):
0092534
testing difrerent path
Browse files
handler.py
CHANGED
|
@@ -184,6 +184,10 @@ class EndpointHandler():
|
|
| 184 |
default_negative_prompt = "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, anime, photorealistic, 35mm film, deformed, glitch, low contrast, noisy"
|
| 185 |
|
| 186 |
# hyperparamters
|
|
|
|
|
|
|
|
|
|
|
|
|
| 187 |
# prompt_input = data.pop("inputs", "a man")
|
| 188 |
prompt_input = "a man flying in the sky in Mars"
|
| 189 |
prompt=default_prompt.replace("{prompt}", prompt_input)
|
|
@@ -198,9 +202,6 @@ class EndpointHandler():
|
|
| 198 |
# face_image_path = "https://i.ibb.co/5Rsrd2d/kaifu-resize-1.png"
|
| 199 |
# pose_image_path = "https://i.ibb.co/9bP9tMb/pose-2-1.jpg"
|
| 200 |
|
| 201 |
-
# original
|
| 202 |
-
face_image_path = "https://i.ibb.co/GQzm527/examples-musk-resize.jpg"
|
| 203 |
-
pose_image_path = "https://i.ibb.co/TRCK4MS/examples-poses-pose2.jpg"
|
| 204 |
|
| 205 |
adapter_strength_ratio = 0.8
|
| 206 |
|
|
|
|
| 184 |
default_negative_prompt = "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, anime, photorealistic, 35mm film, deformed, glitch, low contrast, noisy"
|
| 185 |
|
| 186 |
# hyperparamters
|
| 187 |
+
|
| 188 |
+
# original img
|
| 189 |
+
face_image_path = data.pop("face_image_path", "https://i.ibb.co/GQzm527/examples-musk-resize.jpg")
|
| 190 |
+
pose_image_path = data.pop("pose_image_path", "https://i.ibb.co/TRCK4MS/examples-poses-pose2.jpg")
|
| 191 |
# prompt_input = data.pop("inputs", "a man")
|
| 192 |
prompt_input = "a man flying in the sky in Mars"
|
| 193 |
prompt=default_prompt.replace("{prompt}", prompt_input)
|
|
|
|
| 202 |
# face_image_path = "https://i.ibb.co/5Rsrd2d/kaifu-resize-1.png"
|
| 203 |
# pose_image_path = "https://i.ibb.co/9bP9tMb/pose-2-1.jpg"
|
| 204 |
|
|
|
|
|
|
|
|
|
|
| 205 |
|
| 206 |
adapter_strength_ratio = 0.8
|
| 207 |
|
models/antelopev2/1k3d68.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df5c06b8a0c12e422b2ed8947b8869faa4105387f199c477af038aa01f9a45cc
|
| 3 |
+
size 143607619
|
models/antelopev2/2d106det.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f001b856447c413801ef5c42091ed0cd516fcd21f2d6b79635b1e733a7109dbf
|
| 3 |
+
size 5030888
|
models/antelopev2/genderage.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4fde69b1c810857b88c64a335084f1c3fe8f01246c9a191b48c7bb756d6652fb
|
| 3 |
+
size 1322532
|
models/antelopev2/glintr100.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ab1d6435d639628a6f3e5008dd4f929edf4c4124b1a7169e1048f9fef534cdf
|
| 3 |
+
size 260665334
|
models/antelopev2/scrfd_10g_bnkps.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5838f7fe053675b1c7a08b633df49e7af5495cee0493c7dcf6697200b85b5b91
|
| 3 |
+
size 16923827
|