(self, img)
| 56 | return AutoImageProcessor.from_pretrained(self.inception.model_name) |
| 57 | |
| 58 | def open(self, img): |
| 59 | img = load(img) |
| 60 | if self.preprocess: |
| 61 | return expand(img, max(img.size), do_trim=True) |
| 62 | return img |
| 63 | |
| 64 | def update(self, imgs: Image.Image | str | List[Image.Image | str], *args, **kwargs): |
| 65 | if not isinstance(imgs, List): |
no test coverage detected