Skip to content

Conversation

@datumbox
Copy link
Contributor

@datumbox datumbox commented Oct 25, 2022

This PR:

  • Removes the unnecessary LegacyImageType* and LegacyVideoType*.
  • Removes the to_format method from BoundingBox
  • Replaces mypy casts with ignore statements to align with other areas

cc @vfdev-5 @bjuncek @pmeier

Copy link
Contributor

@pmeier pmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if CI is green. Thanks Vasilis!

def __repr__(self, *, tensor_contents: Any = None) -> str: # type: ignore[override]
return self._make_repr(format=self.format, spatial_size=self.spatial_size)

def to_format(self, format: Union[str, BoundingBoxFormat]) -> BoundingBox:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@datumbox datumbox merged commit b45969a into pytorch:main Oct 25, 2022
@datumbox datumbox deleted the prototype/cleanup_features branch October 25, 2022 11:55
facebook-github-bot pushed a commit that referenced this pull request Oct 27, 2022
Summary:
* Clean ups on `features` area

* remove unncessary imports

Reviewed By: YosuaMichael

Differential Revision: D40722900

fbshipit-source-id: fdf73e2b5b2b8d43224c84a841322b2acbda341b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants