MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / BucketConfigHardCoded3

Class BucketConfigHardCoded3

datasets/bucket_config.py:300–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299
300class 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
323class BucketConfigFromSideList(BucketConfig):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected