We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce557ab commit 2f1ee0bCopy full SHA for 2f1ee0b
python/examples/detection/detect_image.py
@@ -94,7 +94,7 @@ def main():
94
interpreter = make_interpreter(args.model)
95
interpreter.allocate_tensors()
96
97
- image = Image.open(args.input)
+ image = Image.open(args.input).convert('RGB')
98
scale = detect.set_input(interpreter, image.size,
99
lambda size: image.resize(size, Image.ANTIALIAS))
100
0 commit comments