MCPcopy Create free account
hub / github.com/PolymathicAI/AstroCLIP / __init__

Method __init__

astroclip/data/datamodule.py:50–58  ·  view source on GitHub ↗
(
        self,
        center_crop: int = 144,
        bands: List[str] = ["g", "r", "z"],
        m: float = 0.03,
        Q: int = 20,
    )

Source from the content-addressed store, hash-verified

48
49class AstroClipCollator:
50 def __init__(
51 self,
52 center_crop: int = 144,
53 bands: List[str] = ["g", "r", "z"],
54 m: float = 0.03,
55 Q: int = 20,
56 ):
57 self.center_crop = CenterCrop(center_crop)
58 self.to_rgb = ToRGB(bands=bands, m=m, Q=Q)
59
60 def _process_images(self, images):
61 # convert to rgb

Callers 1

__init__Method · 0.45

Calls 1

ToRGBClass · 0.85

Tested by

no test coverage detected