cc1234 commited on
Commit
22320ed
1 Parent(s): 8faf02e

update on 2023-02-15

Browse files
Files changed (4) hide show
  1. app.py +1 -2
  2. face.db +2 -2
  3. face.json +0 -0
  4. persons.zip +2 -2
app.py CHANGED
@@ -43,7 +43,6 @@ def predict(image, threshold=20.0, results=3):
43
  ids, distances = index.get_nns_by_vector(
44
  face, 50, search_k=10000, include_distances=True
45
  )
46
-
47
  persons = {}
48
  for p, distance in zip(ids, distances):
49
  id = ANNOY_INDEX[p]
@@ -96,7 +95,7 @@ gr.Interface(
96
  inputs=[
97
  gr.components.Image(),
98
  gr.components.Slider(label="threshold",minimum=0.0, maximum=30.0, value=20.0),
99
- gr.components.Slider(label="results", minimum=0, maximum=10, value=3),
100
  ],
101
  outputs=gr.outputs.JSON(label=""),
102
  title="Who is in the photo?",
 
43
  ids, distances = index.get_nns_by_vector(
44
  face, 50, search_k=10000, include_distances=True
45
  )
 
46
  persons = {}
47
  for p, distance in zip(ids, distances):
48
  id = ANNOY_INDEX[p]
 
95
  inputs=[
96
  gr.components.Image(),
97
  gr.components.Slider(label="threshold",minimum=0.0, maximum=30.0, value=20.0),
98
+ gr.components.Slider(label="results", minimum=0, maximum=50, value=3, step=1),
99
  ],
100
  outputs=gr.outputs.JSON(label=""),
101
  title="Who is in the photo?",
face.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:30a88f182e70a674a54b6834e1ea73ce83ee34419f1ef683900a4eec9b1c6b78
3
- size 370925568
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8736a4b4f662d0e09630e1e3be81e81f7c45f1e5de38e0525d1c406edcb08e5
3
+ size 373736736
face.json CHANGED
The diff for this file is too large to render. See raw diff
 
persons.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c231546f82880b3090444287e13b136a4bffb3fd0ed0dafb6614d49d8ee0420
3
- size 3007452
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09fc1011b1978c71215e85b7982c98ebbec3de8b2b79891675a74e232e1ca2a0
3
+ size 3021219