MCPcopy Create free account
hub / github.com/Chen-Yang-Liu/Text2Earth / __init__

Method __init__

src/diffusers/image_processor.py:1055–1071  ·  view source on GitHub ↗
(
        self,
        do_resize: bool = True,
        vae_scale_factor: int = 8,
        resample: str = "lanczos",
        do_normalize: bool = True,
        do_binarize: bool = False,
        do_convert_grayscale: bool = False,
    )

Source from the content-addressed store, hash-verified

1053
1054 @register_to_config
1055 def __init__(
1056 self,
1057 do_resize: bool = True,
1058 vae_scale_factor: int = 8,
1059 resample: str = "lanczos",
1060 do_normalize: bool = True,
1061 do_binarize: bool = False,
1062 do_convert_grayscale: bool = False,
1063 ):
1064 super().__init__(
1065 do_resize=do_resize,
1066 vae_scale_factor=vae_scale_factor,
1067 resample=resample,
1068 do_normalize=do_normalize,
1069 do_binarize=do_binarize,
1070 do_convert_grayscale=do_convert_grayscale,
1071 )
1072
1073 @staticmethod
1074 def classify_height_width_bin(height: int, width: int, ratios: dict) -> Tuple[int, int]:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected