Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
BoxuanXu
/
FlaskDriverMXNet2SeetaNet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ba8c03a2
authored
Sep 18, 2017
by
BoxuanXu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix proto's bug
1 parent
a1bbf95f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/Drive_Converter.py
src/HolidayCNN_proto.proto
src/Drive_Converter.py
View file @
ba8c03a
...
@@ -35,7 +35,7 @@ stbf_stcnf("/etc/fdfs/client.conf")
...
@@ -35,7 +35,7 @@ stbf_stcnf("/etc/fdfs/client.conf")
download_path
=
"."
download_path
=
"."
#be userd to jenkins
#be userd to jenkins
host
=
'http://192.168.1.2
42
:8080/'
host
=
'http://192.168.1.2
3
:8080/'
modelid
=
""
modelid
=
""
output_layer
=
""
output_layer
=
""
...
@@ -133,7 +133,6 @@ def get_path_from_db(modelid,seetanet_model):
...
@@ -133,7 +133,6 @@ def get_path_from_db(modelid,seetanet_model):
else
:
else
:
err_msg
=
"download file failed"
err_msg
=
"download file failed"
return
None
,
None
,
err_msg
return
None
,
None
,
err_msg
#post return progress
#post return progress
GP
.
set_progress_var
(
10
)
GP
.
set_progress_var
(
10
)
GP
.
Post_return
()
GP
.
Post_return
()
...
@@ -243,12 +242,14 @@ def get_info_from_queue(arg):
...
@@ -243,12 +242,14 @@ def get_info_from_queue(arg):
return_flag
=
"error"
return_flag
=
"error"
finally
:
finally
:
GP
.
set_post_type_var
(
return_flag
)
GP
.
set_post_type_var
(
return_flag
)
GP
.
set_err_msg_var
(
err_msg
)
if
return_flag
==
"finish"
:
if
return_flag
==
"finish"
:
err_msg
=
""
GP
.
set_err_msg_var
(
err_msg
)
GP
.
set_progress_var
(
100
)
GP
.
set_progress_var
(
100
)
#post_return = { "posttype": return_flag, "progress" : 100, "pool_id": pool_id, "err_msg":err_msg }
#post_return = { "posttype": return_flag, "progress" : 100, "pool_id": pool_id, "err_msg":err_msg }
else
:
else
:
GP
.
set_err_msg_var
(
err_msg
)
GP
.
set_progress_var
(
0
)
GP
.
set_progress_var
(
0
)
#post_return = { "posttype": return_flag, "progress" : 0, "pool_id": pool_id, "err_msg":err_msg }
#post_return = { "posttype": return_flag, "progress" : 0, "pool_id": pool_id, "err_msg":err_msg }
...
...
src/HolidayCNN_proto.proto
View file @
ba8c03a
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment