Commit
·
0092534
1
Parent(s):
255eb78
load mode local root
Browse files- .DS_Store +0 -0
- antelopev2/1k3d68.onnx +3 -0
- antelopev2/2d106det.onnx +3 -0
- antelopev2/genderage.onnx +3 -0
- antelopev2/glintr100.onnx +3 -0
- antelopev2/scrfd_10g_bnkps.onnx +3 -0
- handler.py +7 -2
- requirements.txt +1 -0
.DS_Store
CHANGED
|
Binary files a/.DS_Store and b/.DS_Store differ
|
|
|
antelopev2/1k3d68.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df5c06b8a0c12e422b2ed8947b8869faa4105387f199c477af038aa01f9a45cc
|
| 3 |
+
size 143607619
|
antelopev2/2d106det.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f001b856447c413801ef5c42091ed0cd516fcd21f2d6b79635b1e733a7109dbf
|
| 3 |
+
size 5030888
|
antelopev2/genderage.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4fde69b1c810857b88c64a335084f1c3fe8f01246c9a191b48c7bb756d6652fb
|
| 3 |
+
size 1322532
|
antelopev2/glintr100.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ab1d6435d639628a6f3e5008dd4f929edf4c4124b1a7169e1048f9fef534cdf
|
| 3 |
+
size 260665334
|
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
|
handler.py
CHANGED
|
@@ -144,10 +144,15 @@ class EndpointHandler():
|
|
| 144 |
# model_pack_name = 'antelopev2'
|
| 145 |
# self.app = FaceAnalysis(allowed_modules=['detection', 'recognition'],name=model_pack_name)
|
| 146 |
# self.app.prepare(ctx_id=0, det_size=(640, 640))
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
|
| 148 |
-
self.app = FaceAnalysis(name="buffalo_l", root="./", providers=["CPUExecutionProvider"])
|
| 149 |
# con 512 funciona bien
|
| 150 |
-
self.app.prepare(ctx_id=0, det_size=(640, 640))
|
|
|
|
| 151 |
self.generator = torch.Generator(device=device).manual_seed(42)
|
| 152 |
|
| 153 |
|
|
|
|
| 144 |
# model_pack_name = 'antelopev2'
|
| 145 |
# self.app = FaceAnalysis(allowed_modules=['detection', 'recognition'],name=model_pack_name)
|
| 146 |
# self.app.prepare(ctx_id=0, det_size=(640, 640))
|
| 147 |
+
|
| 148 |
+
self.app = FaceAnalysis(name='antelopev2', root='./', providers=['CPUExecutionProvider'])
|
| 149 |
+
self.app.prepare(ctx_id=0, det_size=(640, 640))
|
| 150 |
+
|
| 151 |
|
| 152 |
+
# self.app = FaceAnalysis(name="buffalo_l", root="./", providers=["CPUExecutionProvider"])
|
| 153 |
# con 512 funciona bien
|
| 154 |
+
# self.app.prepare(ctx_id=0, det_size=(640, 640))
|
| 155 |
+
|
| 156 |
self.generator = torch.Generator(device=device).manual_seed(42)
|
| 157 |
|
| 158 |
|
requirements.txt
CHANGED
|
@@ -5,6 +5,7 @@ transformers==4.37.1
|
|
| 5 |
accelerate
|
| 6 |
safetensors
|
| 7 |
einops
|
|
|
|
| 8 |
onnxruntime-gpu
|
| 9 |
spaces==0.19.4
|
| 10 |
omegaconf
|
|
|
|
| 5 |
accelerate
|
| 6 |
safetensors
|
| 7 |
einops
|
| 8 |
+
onnxruntime
|
| 9 |
onnxruntime-gpu
|
| 10 |
spaces==0.19.4
|
| 11 |
omegaconf
|