From b1c1aafec5411afd3b5fb6b2eab2121dfc5bc21d Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 12 Apr 2022 15:08:53 +0200 Subject: [PATCH] Fix EdgeTPU output directory (#7399) * Fix EdgeTPU output directory Outputs to same directory as --weights * Update export.py --- export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export.py b/export.py index e1e7207058b5..00b98517cdf6 100644 --- a/export.py +++ b/export.py @@ -387,7 +387,7 @@ def export_edgetpu(keras_model, im, file, prefix=colorstr('Edge TPU:')): f = str(file).replace('.pt', '-int8_edgetpu.tflite') # Edge TPU model f_tfl = str(file).replace('.pt', '-int8.tflite') # TFLite model - cmd = f"edgetpu_compiler -s {f_tfl}" + cmd = f"edgetpu_compiler -s -o {file.parent} {f_tfl}" subprocess.run(cmd, shell=True, check=True) LOGGER.info(f'{prefix} export success, saved as {f} ({file_size(f):.1f} MB)')