(self, model_type)
| 5 | |
| 6 | class AddMiDaS(object): |
| 7 | def __init__(self, model_type): |
| 8 | super().__init__() |
| 9 | self.transform = load_midas_transform(model_type) |
| 10 | |
| 11 | def pt2np(self, x): |
| 12 | x = ((x + 1.0) * .5).detach().cpu().numpy() |
nothing calls this directly
no test coverage detected