I'm working on an image classification project. I just want to know some basic level clarification. how does a neural network learn only the relevant features based on the label?
Let's say I'm creating two folders like flower and leaf and putting all the images into the folder. how deep learning techniques learn only flower pixels because some flower images have leaf also. how it will learn only flower features.