| 281 | |
| 282 | |
| 283 | class BucketConfigHardCoded2(BucketConfig): |
| 284 | |
| 285 | def __init__(self, ) -> None: |
| 286 | self.bucket_config = { |
| 287 | # aspect_ratio: (height width pixel value with shape of (n, 3), probability with shape of (n, ) ) |
| 288 | 0.667: (np.array([[240, 360], [360, 540], [480, 720]], |
| 289 | dtype=np.int64), np.array([0.2, 0.5, 0.3])), |
| 290 | 1.0: (np.array([[256, 256], [384, 384], [512, 512]], |
| 291 | dtype=np.int64), np.array([0.2, 0.5, 0.3])), |
| 292 | 1.5: (np.array([[240, 360], [360, 540], [480, 720]], |
| 293 | dtype=np.int64)[:, ::-1], np.array([0.2, 0.5, |
| 294 | 0.3])), |
| 295 | } |
| 296 | super().__init__() |
| 297 | pass |
| 298 | |
| 299 | |
| 300 | class BucketConfigHardCoded3(BucketConfig): |
nothing calls this directly
no outgoing calls
no test coverage detected