Skip to content

Should MODEL.ROI_HEADS.NUM_CLASSES include background?  #2367

@FraPochetti

Description

@FraPochetti

Hello everybody,
first of all, thanks a lot for building this awesome library!

I have checked the docs and could not find a clear answer to my question, so asking here.
I am currently using a mask_rcnn model and I am not sure whether MODEL.ROI_HEADS.NUM_CLASSES should include background or not (e.g. if my dataset includes only dogs, NUM_CLASSES should be 2).

This is not specified in the relevant class docstring and, given torchvision makes it explicit, I am a bit confused.

Can you please provide some guidance?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationProblems about existing documentation or comments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions