(self, raw_idx)
| 224 | return dict(super().__getstate__(), _zipfile=None) |
| 225 | |
| 226 | def _load_raw_image(self, raw_idx): |
| 227 | fname = self._image_fnames[raw_idx] |
| 228 | |
| 229 | with self._open_file(fname) as f: |
| 230 | use_pyspng = pyspng is not None and self._file_ext(fname) == '.png' |
| 231 | image = load_image_from_buffer(f, use_pyspng=use_pyspng) |
| 232 | |
| 233 | return image |
| 234 | |
| 235 | def _load_raw_labels(self): |
| 236 | fname = 'dataset.json' |
no test coverage detected