Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
KHY_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Graduate
2020-06-22 00:03:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33268b4bcc767c91800a504cb2186952256ce4ab
33268b4b
1 parent
309a0ae9
Modify distance logic
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
server/server.py
server/server.py
View file @
33268b4
...
...
@@ -130,7 +130,7 @@ async def thread(websocket, path):
db_embedding
=
np
.
frombuffer
(
row_data
[
'embedding'
],
dtype
=
np
.
float32
)
db_embedding
=
db_embedding
.
reshape
((
1
,
512
))
distance
=
await
get_distance
(
embedding
,
db_embedding
)
if
(
distance
<
0.4
):
if
(
distance
<
distance_min
):
verified_id
=
row_data
[
'student_id'
]
distance_min
=
distance
break
...
...
Please
register
or
login
to post a comment