Skip to content

Commit

Permalink
Merge pull request #67 from liux-pro/patch-1
Browse files Browse the repository at this point in the history
Update h5_to_tflite.py
  • Loading branch information
Zepan authored Apr 26, 2023
2 parents f67efee + 0f31f97 commit 9487854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/h5_to_tflite.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def representative_data_gen():
continue
valid_files.append(os.path.join(quant_dir, name))
if len(valid_files) == 0:
raise Exception("No valid files in quant_input dir {}, support format: ".format(quant_dir, valid_format))
raise Exception("No valid files in quant_input dir {}, support format: {}".format(quant_dir, valid_format))
for path in valid_files:
img = Image.open(path)
img = np.array(img).astype(np.float32)
Expand Down

0 comments on commit 9487854

Please sign in to comment.