(self,device)
| 40 | self.detect_resolution = detect_resolution |
| 41 | |
| 42 | def to(self,device): |
| 43 | if hasattr(self.processor,"model") and hasattr(self.processor.model,"to"): |
| 44 | |
| 45 | self.processor.model.to(device) |
| 46 | |
| 47 | def __call__(self, image, mask=None): |
| 48 | width, height = image.size |
no outgoing calls