(self, device="cuda", torch_dtype=torch.float16, height_division_factor=64, width_division_factor=64)
| 8 | class 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): |
nothing calls this directly
no outgoing calls
no test coverage detected