(path)
| 199 | |
| 200 | |
| 201 | def default_img_loader(path): |
| 202 | from torchvision import get_image_backend |
| 203 | if get_image_backend() == 'accimage': |
| 204 | return accimage_loader(path) |
| 205 | else: |
| 206 | return pil_loader(path) |
| 207 | |
| 208 | |
| 209 | class CachedImageFolder(DatasetFolder): |
nothing calls this directly
no test coverage detected