Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#581 Bug/sg 512 shuffle bugfix in recipe datalaoders

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:bug/SG-512_shuffle_bugfix_in_recipe_datalaoders
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  1. from typing import Tuple
  2. from super_gradients.training.utils.bbox_formats.bbox_format import (
  3. BoundingBoxFormat,
  4. )
  5. __all__ = ["XYXYCoordinateFormat"]
  6. def xyxy_to_xyxy(x, image_shape: Tuple[int, int]):
  7. return x
  8. class XYXYCoordinateFormat(BoundingBoxFormat):
  9. """
  10. Bounding boxes format X1, Y1, X2, Y2
  11. """
  12. def __init__(self):
  13. self.format = "xyxy"
  14. self.normalized = False
  15. def get_to_xyxy(self, inplace: bool):
  16. return xyxy_to_xyxy
  17. def get_from_xyxy(self, inplace: bool):
  18. return xyxy_to_xyxy
Discard
Tip!

Press p or to see the previous file or, n or to see the next file