MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / __init__

Method __init__

infer.py:15–18  ·  view source on GitHub ↗
(self, vae: AutoencoderKL, unet: UNet2DConditionModel, scheduler: DDPMScheduler)

Source from the content-addressed store, hash-verified

13
14class StableDiffusionPipeline(DiffusionPipeline):
15 def __init__(self, vae: AutoencoderKL, unet: UNet2DConditionModel, scheduler: DDPMScheduler):
16 super().__init__()
17 self.register_modules(vae=vae, unet=unet, scheduler=scheduler)
18 self.vae_scale_factor = 2 ** (len(vae.config.block_out_channels) - 1)
19
20 @property
21 def _execution_device(self):

Callers

nothing calls this directly

Calls 1

register_modulesMethod · 0.45

Tested by

no test coverage detected