Skip to content

Commit

Permalink
Only delete .daq model
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed May 13, 2019
1 parent 39ebfea commit fd17f22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validate_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def convert(onnx2daq, onnx, daq, table_file=''):

def finish(model):
os.system("adb shell rm /data/local/tmp/{}".format(os.path.basename(model)))
os.system("rm {}".format(model))
if model[-4:] == '.daq':
os.system("rm {}".format(model))


def run(input_arr, daq, dnn_retrieve_result, output_name, quant_input=False, quant_output=False):
Expand Down

0 comments on commit fd17f22

Please sign in to comment.