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

Method process_image

diffsynth/extensions/ESRGAN/__init__.py:94–96  ·  view source on GitHub ↗
(self, image)

Source from the content-addressed store, hash-verified

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)
96 return image
97
98 def process_images(self, images):
99 images = [self.process_image(image) for image in images]

Callers 1

process_imagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected