We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d4078 commit e0eed2cCopy full SHA for e0eed2c
torchvision/datapoints/_bounding_box.py
@@ -87,7 +87,7 @@ def wrap_like(
87
88
"""
89
if isinstance(format, str):
90
- format = BoundingBoxFormat.from_str(format.upper())
+ format = BoundingBoxFormat[format.upper()]
91
92
return cls._wrap(
93
tensor,
0 commit comments