Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
strategy_embedding
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
strategy_embedding
Commits
9e9a45fa
Commit
9e9a45fa
authored
Sep 09, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change url
parent
4a9d8f16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
diary_cover_similarity.py
src/diary_cover_similarity.py
+3
-2
No files found.
src/diary_cover_similarity.py
View file @
9e9a45fa
...
@@ -3,11 +3,11 @@ import time
...
@@ -3,11 +3,11 @@ import time
import
dlib
import
dlib
from
utils.images
import
face_to_vec
,
file_to_ndarray
,
url_to_ndarray
from
utils.images
import
face_to_vec
,
url_to_ndarray
def
main
():
def
main
():
img_url
=
"https://pic.igengmei.com/2020/07/0
4/1802/1fd23e101178
-w"
img_url
=
"https://pic.igengmei.com/2020/07/0
3/1437/1b9975bb0b81
-w"
img
=
url_to_ndarray
(
img_url
)
img
=
url_to_ndarray
(
img_url
)
print
(
img
)
print
(
img
)
...
@@ -23,6 +23,7 @@ def main():
...
@@ -23,6 +23,7 @@ def main():
faces
=
face_to_vec
(
img
,
face_rec
,
face_detector
,
shape_predictor
)
faces
=
face_to_vec
(
img
,
face_rec
,
face_detector
,
shape_predictor
)
print
(
"faces:"
)
print
(
faces
)
print
(
faces
)
print
(
"============"
)
print
(
"============"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment