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

Class BucketConfigHardCoded1

datasets/bucket_config.py:267–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266
267class BucketConfigHardCoded1(BucketConfig):
268
269 def __init__(self, ) -> None:
270 self.bucket_config = {
271 # aspect_ratio: (height width pixel value with shape of (n, 3), probability with shape of (n, ) )
272 0.667: (np.array([[480, 720, 480 * 720]],
273 dtype=np.int64), np.array([1.0])),
274 1.0: (np.array([[384, 384, 384**2], [512, 512, 512**2]],
275 dtype=np.int64), np.array([0.4, 0.6])),
276 1.5: (np.array([[720, 480, 480 * 720]],
277 dtype=np.int64), np.array([1.0])),
278 }
279 super().__init__()
280 pass
281
282
283class BucketConfigHardCoded2(BucketConfig):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected