(path)
| 191 | |
| 192 | |
| 193 | def default_img_loader(path): |
| 194 | from torchvision import get_image_backend |
| 195 | if get_image_backend() == 'accimage': |
| 196 | return accimage_loader(path) |
| 197 | else: |
| 198 | return pil_loader(path) |
| 199 | |
| 200 | |
| 201 | class CachedImageFolder(DatasetFolder): |
nothing calls this directly
no test coverage detected