MCPcopy
hub / github.com/potamides/DeTikZify / open

Method open

detikzify/evaluate/kid.py:58–62  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

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):

Callers 9

updateMethod · 0.95
_generate_examplesMethod · 0.80
_generate_examplesMethod · 0.80
try_save_last_pageMethod · 0.80
compileMethod · 0.80
tokenizeMethod · 0.80
convertFunction · 0.80
loadFunction · 0.80
redactFunction · 0.80

Calls 2

expandFunction · 0.85
loadFunction · 0.70

Tested by

no test coverage detected