MCPcopy Create free account
hub / github.com/DragonisCV/RAM / __init__

Method __init__

ram/utils/diffjpeg.py:408–415  ·  view source on GitHub ↗
(self, rounding=torch.round)

Source from the content-addressed store, hash-verified

406 """
407
408 def __init__(self, rounding=torch.round):
409 super(DeCompressJpeg, self).__init__()
410 self.c_dequantize = CDequantize()
411 self.y_dequantize = YDequantize()
412 self.idct = iDCT8x8()
413 self.merging = BlockMerging()
414 self.chroma = ChromaUpsampling()
415 self.colors = YCbCr2RGBJpeg()
416
417 def forward(self, y, cb, cr, imgh, imgw, factor=1):
418 """

Callers

nothing calls this directly

Calls 7

CDequantizeClass · 0.85
YDequantizeClass · 0.85
iDCT8x8Class · 0.85
BlockMergingClass · 0.85
ChromaUpsamplingClass · 0.85
YCbCr2RGBJpegClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected