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

Class BucketConfigHardCoded2

datasets/bucket_config.py:283–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281
282
283class 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
300class BucketConfigHardCoded3(BucketConfig):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected