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

Method __init__

diffsynth/pipelines/base.py:10–17  ·  view source on GitHub ↗
(self, device="cuda", torch_dtype=torch.float16, height_division_factor=64, width_division_factor=64)

Source from the content-addressed store, hash-verified

8class BasePipeline(torch.nn.Module):
9
10 def __init__(self, device="cuda", torch_dtype=torch.float16, height_division_factor=64, width_division_factor=64):
11 super().__init__()
12 self.device = device
13 self.torch_dtype = torch_dtype
14 self.height_division_factor = height_division_factor
15 self.width_division_factor = width_division_factor
16 self.cpu_offload = False
17 self.model_names = []
18
19
20 def check_resize_height_width(self, height, width):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected