MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / from_model_manager

Method from_model_manager

diffsynth/pipelines/sd_image.py:61–67  ·  view source on GitHub ↗
(model_manager: ModelManager, controlnet_config_units: List[ControlNetConfigUnit]=[], prompt_refiner_classes=[], device=None)

Source from the content-addressed store, hash-verified

59
60 @staticmethod
61 def from_model_manager(model_manager: ModelManager, controlnet_config_units: List[ControlNetConfigUnit]=[], prompt_refiner_classes=[], device=None):
62 pipe = SDImagePipeline(
63 device=model_manager.device if device is None else device,
64 torch_dtype=model_manager.torch_dtype,
65 )
66 pipe.fetch_models(model_manager, controlnet_config_units, prompt_refiner_classes=[])
67 return pipe
68
69
70 def encode_image(self, image, tiled=False, tile_size=64, tile_stride=32):

Callers

nothing calls this directly

Calls 2

fetch_modelsMethod · 0.95
SDImagePipelineClass · 0.85

Tested by

no test coverage detected