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

Method from_model_manager

diffsynth/extensions/ESRGAN/__init__.py:91–92  ·  view source on GitHub ↗
(model_manager)

Source from the content-addressed store, hash-verified

89
90 @staticmethod
91 def from_model_manager(model_manager):
92 return ESRGAN(model_manager.fetch_model("esrgan"))
93
94 def process_image(self, image):
95 image = torch.Tensor(np.array(image, dtype=np.float32) / 255).permute(2, 0, 1)

Callers

nothing calls this directly

Calls 2

ESRGANClass · 0.85
fetch_modelMethod · 0.80

Tested by

no test coverage detected