-
Notifications
You must be signed in to change notification settings - Fork 27.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Clarify descriptions for mask_labels in Mask2Former #35514
base: main
Are you sure you want to change the base?
Conversation
@stevhliu, could you kindly review this PR when you get a chance? Thank you! |
Co-authored-by: Steven Liu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update! Can you update MaskFormer and OneFormer accordingly for consistency?
@@ -2393,8 +2393,7 @@ def forward( | |||
mask_labels (`List[torch.Tensor]`, *optional*): | |||
List of mask labels of shape `(num_labels, height, width)` to be fed to a model | |||
class_labels (`List[torch.LongTensor]`, *optional*): | |||
list of target class labels of shape `(num_labels, height, width)` to be fed to a model. They identify the | |||
labels of `mask_labels`, e.g. the label of `mask_labels[i][j]` if `class_labels[i][j]`. | |||
List of class labels of shape `(labels)` to be fed to a model. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List of class labels of shape `(labels)` to be fed to a model. | |
List of class labels of shape `(num_labels,)` to be fed to a model. |
This PR improves the documentation for class_labels in the Mask2Former model.
Clarified the description of class_labels to better explain the shape of the class_labels parameter.