MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / read

Method read

data/zipreader.py:86–90  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

84
85 @staticmethod
86 def read(path):
87 zip_path, path_img = ZipReader.split_zip_style_path(path)
88 zfile = ZipReader.get_zipfile(zip_path)
89 data = zfile.read(path_img)
90 return data
91
92 @staticmethod
93 def imread(path):

Callers 3

imreadMethod · 0.80
init_cacheMethod · 0.80
pil_loaderFunction · 0.80

Calls 2

split_zip_style_pathMethod · 0.80
get_zipfileMethod · 0.80

Tested by

no test coverage detected