-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default image classfier model handler fails on black & white JPG #65
Comments
@fbbradheintz @mycpuorg : The pre-processing and post-processing for the default image classification handler is implemented for torchvision's imagenet based models like densenet, resnet etc. Thus we use the standard normalization for imagenet models which is based on RGB images. We expect the user to implement a custom handler for other image-classification models, for e.g. MNIST digit classifier or other models which are not trained using imagenet dataset, which uses different normalization parameters. We will add a documentation describing the expected input and output of all default handlers. E.g :
|
@harshbafna |
If you can put up the doc change, I'll close this. |
Added documentation in commit : 4ab6f7c |
Looks good. Please close after merge. |
Regression in the 4/10 build. |
@fbbradheintz : We agreed to document this and the documentation is available in master branch : |
Sounds good. Thanks! |
Repro: In the quick start, replace kitten.jpg with the attached file. There's a crash in
image_classifier.py
when it attempts to convert the image to a tensor, because it assumes 3 color channels.The text was updated successfully, but these errors were encountered: