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 47c87ba8
authored
7 years ago
by
BoxuanXu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit Wrong code
1 parent
a9d4b74c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
Drive_Converter.py
Drive_Converter.py
View file @
47c87ba
...
...
@@ -61,6 +61,10 @@ def get_path_from_db(modelid,seetanet_model):
return
None
,
None
else
:
path_name
=
str
(
result_atlas
[
0
])
if
path_name
.
find
(
"::"
)
==
-
1
:
logging
.
info
(
'get wrong parameters!'
)
return
None
,
None
path_list
=
path_name
.
split
(
"::"
)
if
len
(
path_list
)
!=
2
:
logging
.
info
(
'get wrong parameters!'
)
...
...
@@ -186,7 +190,7 @@ t = threading.Thread(target=get_info_from_queue,args=(1,))
@app.route
(
'/convert'
,
methods
=
[
'POST'
])
def
Dirver_Convert
():
#get parameter modelid from post stream
return_flag
=
"
queue
"
return_flag
=
"
Packing...
"
try
:
modelid
=
request
.
form
[
'modelid'
]
output_layer
=
request
.
form
[
'output_layer'
]
...
...
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