(self, model, device="cuda", scale=1.0, batch_size=4, interpolate=True)
| 6 | |
| 7 | class RIFESmoother(VideoProcessor): |
| 8 | def __init__(self, model, device="cuda", scale=1.0, batch_size=4, interpolate=True): |
| 9 | self.model = model |
| 10 | self.device = device |
| 11 | |
| 12 | # IFNet only does not support float16 |
| 13 | self.torch_dtype = torch.float32 |
| 14 | |
| 15 | # Other parameters |
| 16 | self.scale = scale |
| 17 | self.batch_size = batch_size |
| 18 | self.interpolate = interpolate |
| 19 | |
| 20 | @staticmethod |
| 21 | def from_model_manager(model_manager, **kwargs): |
nothing calls this directly
no outgoing calls
no test coverage detected