question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default image classfier model handler fails on black & white JPG

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
harshbafnacommented, Apr 12, 2020

@fbbradheintz : We agreed to document this and the documentation is available in master branch : https://github.com/pytorch/serve/blob/master/docs/default_handlers.md

0reactions
fbbradheintzcommented, Apr 17, 2020

Sounds good. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Classifying Images with Vision and Core ML - Apple Developer
Crop and scale photos using the Vision framework and classify them with a Core ML model.
Read more >
Transfer Learning on Greyscale Images: How to Fine-Tune ...
In this article, we shall attempt to demystify all of the considerations needed when finetuning with black-and-white images by exploring the ...
Read more >
ImageJ User Guide
The ImageJ User Guide provides a detailed overview of ImageJ (and inherently Fiji), the standard in scientific image analysis (see XXVI Focus on ......
Read more >
Image Processing in Python with Pillow - Auth0
By default, when you perform a paste, transparent pixels are pasted as solid pixels, thus the black (white on some OSs) box surrounding...
Read more >
Tutorials — OpenDroneMap 3.0.0 documentation
Creating High Quality Orthophotos . image of OpenDroneMap orthophoto. Without any parameter tweaks, ODM chooses a good compromise between quality, speed and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found