"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "fd5320bb574ac86745d3aeb60ba2372abc4204ba"
Unverified Commit 261301d3 authored by S.Kishore's avatar S.Kishore Committed by GitHub
Browse files

Added type hints for YolosForObjectDetection (#19086)

parent 801ebd04
...@@ -737,12 +737,12 @@ class YolosForObjectDetection(YolosPreTrainedModel): ...@@ -737,12 +737,12 @@ class YolosForObjectDetection(YolosPreTrainedModel):
@replace_return_docstrings(output_type=YolosObjectDetectionOutput, config_class=_CONFIG_FOR_DOC) @replace_return_docstrings(output_type=YolosObjectDetectionOutput, config_class=_CONFIG_FOR_DOC)
def forward( def forward(
self, self,
pixel_values, pixel_values: torch.FloatTensor,
labels=None, labels: Optional[List[Dict]] = None,
output_attentions=None, output_attentions: Optional[bool] = None,
output_hidden_states=None, output_hidden_states: Optional[bool] = None,
return_dict=None, return_dict: Optional[bool] = None,
): ) -> Union[Tuple, YolosObjectDetectionOutput]:
r""" r"""
labels (`List[Dict]` of len `(batch_size,)`, *optional*): labels (`List[Dict]` of len `(batch_size,)`, *optional*):
Labels for computing the bipartite matching loss. List of dicts, each dictionary containing at least the Labels for computing the bipartite matching loss. List of dicts, each dictionary containing at least the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment