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 e7196529
authored
Aug 08, 2017
by
BoxuanXu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move rm code
1 parent
b794915d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
Drive_Converter.py
Drive_Converter.py
View file @
e719652
...
...
@@ -89,14 +89,6 @@ def get_path_from_db(modelid,seetanet_model):
#Driver converter model by params and model graph
Run_Converter
(
params_name
,
graph_name
,
seetanet_model
)
#remove params file and graph file
try
:
cmd_str
=
"rm -rf "
+
params_name
+
" "
+
graph_name
print
(
cmd_str
)
subprocess
.
check_call
(
cmd_str
,
shell
=
True
)
except
subprocess
.
CalledProcessError
as
err
:
logging
.
info
(
"shell command error!"
)
return
None
,
None
return
params_name
,
graph_name
def
upload_filetoFastDFS
(
params_name
,
graph_name
,
seetanet_model
):
...
...
@@ -145,7 +137,16 @@ def Dirver_Convert():
sdk_fid
=
"group2/M00/00/04/wKgB61l-xXKARFT0AAANtlf6yRo13.json"
update_pkg_info_db
(
modelid
,
sdk_fid
,
stmodel_fid
)
logging
.
info
(
"successfully,Finish!"
)
#remove params file and graph file
try
:
cmd_str
=
"rm -rf "
+
params_name
+
" "
+
graph_name
+
" "
+
seetanet_model
print
(
cmd_str
)
subprocess
.
check_call
(
cmd_str
,
shell
=
True
)
except
subprocess
.
CalledProcessError
as
err
:
logging
.
info
(
"shell command error!"
)
return
"finish"
logging
.
info
(
"successfully,Finish!"
)
finally
:
db_atlas
.
close
()
...
...
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