Method
__init__
(
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 | |
| 49 | class 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 |
Tested by
no test coverage detected