MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

910
911 @register_to_config
912 def __init__(
913 self,
914 do_resize: bool = True,
915 vae_scale_factor: int = 8,
916 resample: str = "lanczos",
917 do_normalize: bool = False,
918 do_binarize: bool = True,
919 do_convert_grayscale: bool = True,
920 ):
921 super().__init__(
922 do_resize=do_resize,
923 vae_scale_factor=vae_scale_factor,
924 resample=resample,
925 do_normalize=do_normalize,
926 do_binarize=do_binarize,
927 do_convert_grayscale=do_convert_grayscale,
928 )
929
930 @staticmethod
931 def downsample(mask: torch.FloatTensor, batch_size: int, num_queries: int, value_embed_dim: int):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected