| 298 | |
| 299 | |
| 300 | class BucketConfigHardCoded3(BucketConfig): |
| 301 | |
| 302 | def __init__(self, ) -> None: |
| 303 | self.bucket_config = { |
| 304 | # aspect_ratio: (height width pixel value with shape of (n, 3), probability with shape of (n, ) ) |
| 305 | 0.667: (np.array([[240, 360], [360, 540], [480, 720], [720, 1080]], |
| 306 | dtype=np.int64), np.array([ |
| 307 | 0.2, |
| 308 | 0.5, |
| 309 | 0.2, |
| 310 | 0.1, |
| 311 | ])), |
| 312 | 1.0: (np.array([[256, 256], [384, 384], [512, 512], [768, 768]], |
| 313 | dtype=np.int64), np.array([0.2, 0.5, 0.2, 0.1])), |
| 314 | 1.5: |
| 315 | (np.array([[240, 360], [360, 540], [480, 720], [720, 1080]], |
| 316 | dtype=np.int64)[:, ::-1], np.array([0.2, 0.5, 0.2, |
| 317 | 0.1])), |
| 318 | } |
| 319 | super().__init__() |
| 320 | pass |
| 321 | |
| 322 | |
| 323 | class BucketConfigFromSideList(BucketConfig): |
nothing calls this directly
no outgoing calls
no test coverage detected