Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_strategy_cvr
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
gm_strategy_cvr
Commits
cbda9373
Commit
cbda9373
authored
Aug 14, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update models path
parent
158c9be0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
change_city_prediction.py
src/change_city_prediction.py
+2
-2
main_portrait.py
src/main_portrait.py
+2
-2
online_prediction.py
src/online_prediction.py
+2
-2
train_diary.py
src/train_diary.py
+1
-1
train_tractate.py
src/train_tractate.py
+1
-1
No files found.
src/change_city_prediction.py
View file @
cbda9373
...
@@ -33,13 +33,13 @@ if __name__ == "__main__":
...
@@ -33,13 +33,13 @@ if __name__ == "__main__":
diary_save_path
=
get_essm_model_save_path
(
"diary"
)
diary_save_path
=
get_essm_model_save_path
(
"diary"
)
if
not
diary_save_path
:
if
not
diary_save_path
:
diary_save_path
=
"/data/files/models/diary/1597
050209
"
diary_save_path
=
"/data/files/models/diary/1597
390452
"
print
(
diary_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
print
(
diary_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
diary_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
diary_save_path
)
diary_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
diary_save_path
)
tractate_save_path
=
get_essm_model_save_path
(
"tractate"
)
tractate_save_path
=
get_essm_model_save_path
(
"tractate"
)
if
not
tractate_save_path
:
if
not
tractate_save_path
:
tractate_save_path
=
"/data/files/models/tractate/159
6509299
"
tractate_save_path
=
"/data/files/models/tractate/159
7390051
"
print
(
tractate_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
print
(
tractate_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
tractate_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
tractate_save_path
)
tractate_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
tractate_save_path
)
...
...
src/main_portrait.py
View file @
cbda9373
...
@@ -80,13 +80,13 @@ def main():
...
@@ -80,13 +80,13 @@ def main():
diary_save_path
=
get_essm_model_save_path
(
"diary"
)
diary_save_path
=
get_essm_model_save_path
(
"diary"
)
if
not
diary_save_path
:
if
not
diary_save_path
:
diary_save_path
=
"/data/files/models/diary/15973
79800
"
diary_save_path
=
"/data/files/models/diary/15973
90452
"
print
(
diary_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
print
(
diary_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
diary_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
diary_save_path
)
diary_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
diary_save_path
)
tractate_save_path
=
get_essm_model_save_path
(
"tractate"
)
tractate_save_path
=
get_essm_model_save_path
(
"tractate"
)
if
not
tractate_save_path
:
if
not
tractate_save_path
:
tractate_save_path
=
"/data/files/models/tractate/15973
78202
"
tractate_save_path
=
"/data/files/models/tractate/15973
90051
"
print
(
tractate_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
print
(
tractate_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
tractate_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
tractate_save_path
)
tractate_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
tractate_save_path
)
...
...
src/online_prediction.py
View file @
cbda9373
...
@@ -45,13 +45,13 @@ if __name__ == "__main__":
...
@@ -45,13 +45,13 @@ if __name__ == "__main__":
diary_save_path
=
get_essm_model_save_path
(
"diary"
)
diary_save_path
=
get_essm_model_save_path
(
"diary"
)
if
not
diary_save_path
:
if
not
diary_save_path
:
diary_save_path
=
"/data/files/models/diary/15973
79800
"
diary_save_path
=
"/data/files/models/diary/15973
90452
"
print
(
diary_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
print
(
diary_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
diary_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
diary_save_path
)
diary_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
diary_save_path
)
tractate_save_path
=
get_essm_model_save_path
(
"tractate"
)
tractate_save_path
=
get_essm_model_save_path
(
"tractate"
)
if
not
tractate_save_path
:
if
not
tractate_save_path
:
tractate_save_path
=
"/data/files/models/tractate/15973
78202
"
tractate_save_path
=
"/data/files/models/tractate/15973
90051
"
print
(
tractate_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
print
(
tractate_save_path
+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
tractate_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
tractate_save_path
)
tractate_predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
tractate_save_path
)
...
...
src/train_diary.py
View file @
cbda9373
...
@@ -77,7 +77,7 @@ def main():
...
@@ -77,7 +77,7 @@ def main():
print
(
"============================================================"
)
print
(
"============================================================"
)
# save_path = str(Path("~/Desktop/models/1596012827").expanduser()) # local
# save_path = str(Path("~/Desktop/models/1596012827").expanduser()) # local
# save_path = "/data/files/models/diary/159
6083349
" # server
# save_path = "/data/files/models/diary/159
7390452
" # server
# tf.saved_model.load
# tf.saved_model.load
...
...
src/train_tractate.py
View file @
cbda9373
...
@@ -74,7 +74,7 @@ def main():
...
@@ -74,7 +74,7 @@ def main():
print
(
"============================================================"
)
print
(
"============================================================"
)
# # save_path = str(Path("~/data/models/tractate/1596089465").expanduser()) # local
# # save_path = str(Path("~/data/models/tractate/1596089465").expanduser()) # local
# save_path = "/data/files/models/tractate/159
609206
1" # server
# save_path = "/data/files/models/tractate/159
739005
1" # server
predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
save_path
)
predict_fn
=
tf
.
contrib
.
predictor
.
from_saved_model
(
save_path
)
device_dict
=
device_fe
.
get_device_dict_from_redis
()
device_dict
=
device_fe
.
get_device_dict_from_redis
()
...
...
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