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
08cc5aeb
Commit
08cc5aeb
authored
Sep 23, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update name
parent
57dd9d98
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
3 deletions
+40
-3
app_conf.xml
app_conf.xml
+12
-0
diary_cover_similarity.py
face_similarity/diary_cover_similarity.py
+3
-3
__init__.py
strategy_embedding/__init__.py
+0
-0
settings.py
strategy_embedding/settings.py
+0
-0
system.py
strategy_embedding/system.py
+25
-0
urls.py
strategy_embedding/urls.py
+0
-0
wsgi.py
strategy_embedding/wsgi.py
+0
-0
No files found.
app_conf.xml
0 → 100644
View file @
08cc5aeb
<?xml version="1.0" encoding="utf-8"?>
<gm_rpcd_config>
<info
config_name=
"app"
version=
"1.0"
/>
<config
name=
"application_name"
value=
"strategy_embedding"
/>
<config
name=
"service_list"
>
<element
value=
"strategy_embedding"
/>
</config>
<config
name=
"initializer_list"
>
<element
value=
"search.views.user_portrait"
/>
</config>
<config
name=
"statuses"
value=
"strategy_embedding.system:statuses"
/>
</gm_rpcd_config>
face_similarity/diary_cover_similarity.py
View file @
08cc5aeb
...
...
@@ -158,9 +158,9 @@ def save_diary_similarity(load_file, index_path, face_to_vec_f):
def
main
():
base_dir
=
os
.
getcwd
()
print
(
"base_dir: "
+
base_dir
)
model_dir
y
=
os
.
path
.
join
(
base_dir
,
"_models"
)
facerec_model_path
=
os
.
path
.
join
(
model_dir
y
,
"dlib_face_recognition_resnet_model_v1.dat"
)
shape_model_path
=
os
.
path
.
join
(
model_dir
y
,
"shape_predictor_68_face_landmarks.dat"
)
model_dir
=
os
.
path
.
join
(
base_dir
,
"_models"
)
facerec_model_path
=
os
.
path
.
join
(
model_dir
,
"dlib_face_recognition_resnet_model_v1.dat"
)
shape_model_path
=
os
.
path
.
join
(
model_dir
,
"shape_predictor_68_face_landmarks.dat"
)
faiss_index_path
=
os
.
path
.
join
(
base_dir
,
"_index"
,
"current.index"
)
diary_after_cover_vec_file
=
"./diary_after_cover_vec.txt"
...
...
base
/__init__.py
→
strategy_embedding
/__init__.py
View file @
08cc5aeb
File moved
base
/settings.py
→
strategy_embedding
/settings.py
View file @
08cc5aeb
File moved
strategy_embedding/system.py
0 → 100644
View file @
08cc5aeb
def
statuses
(
request
):
ok
=
True
errors
=
{}
resp
=
{
"ok"
:
ok
,
"errors"
:
errors
}
# check es
# es_ok, error = _check_es()
# if not es_ok:
# errors.update(error)
# # check redis
# mysql_ok, error = _check_mysql()
# if not mysql_ok:
# errors.update(error)
# redis_ok, error = _check_redis()
# if not redis_ok:
# errors.update(error)
# celery_ok, error = _check_celery()
# if not celery_ok:
# errors.update(error)
# resp['ok'] = es_ok and mysql_ok and redis_ok and celery_ok
resp
[
"ok"
]
=
True
return
resp
base
/urls.py
→
strategy_embedding
/urls.py
View file @
08cc5aeb
File moved
base
/wsgi.py
→
strategy_embedding
/wsgi.py
View file @
08cc5aeb
File moved
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