Glossary: Computer Vision Beyond the Basics
Background class
Also written: label 0, background
Torchvision reserves label 0 for 'background', so real classes must start at 1. Starting your labels at 0 makes the model treat that class as background.
Glossary: Computer Vision Beyond the Basics
Also written: label 0, background
Torchvision reserves label 0 for 'background', so real classes must start at 1. Starting your labels at 0 makes the model treat that class as background.