Do you mean by providing empty bounding boxes? Suppose there is an object that I don’t want to be recognized, i can simply annotate the image with
target = {}
target["boxes"] = torch.zeros((0, 4), dtype=torch.float32)
target["labels"] = torch.zeros((0, 1), dtype=torch.int64)

… or maybe by considering the whole image as a bounding box