Skip to content

Commit

Permalink
update classify_image.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen-Lung-Huang committed Aug 2, 2024
1 parent eced31a commit 37ee2be
Show file tree
Hide file tree
Showing 6 changed files with 966 additions and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion python/examples/classification/classify_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def main():
interpreter.allocate_tensors()

size = classify.input_size(interpreter)
image = Image.open(args.input).convert('RGB').resize(size, Image.ANTIALIAS)
image = Image.open(args.input).convert('RGB').resize(size, Image.LANCZOS)
classify.set_input(interpreter, image)

print('----INFERENCE TIME----')
Expand Down
Binary file added python/examples/classification/images/parrot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 37ee2be

Please sign in to comment.