Closed pratik-choudhari closed 4 years ago
Reason: PNG files have shape (n, m, 4) whereas in model.py reshape dimensions are (224, 224, 3)
Solution: modify image = Image.open(pic_path)
in model.py to image = Image.open(pic_path).convert('RGB')
Hey @pratik-choudhari, thank you so much for raising the issue and following up on it! Would you be interested in making a PR to resolve that?
Sure!
500 Internal Server Error in /predict when a PNG file is uploaded.