Please correct me if I’m mistaken. I’m afraid the concept seems a little strange to me. Assume a tiny dog is laying on the ground. The target label is therefore “dog,” but the majority of the image is “background,” so how do you designate the background region? It appears that dog-label can only be applied to all image patches. Or perhaps you have taken steps to address such a situation.