(path)
| 53 | |
| 54 | |
| 55 | def default_loader(path): |
| 56 | from torchvision import get_image_backend |
| 57 | if get_image_backend() == 'accimage': |
| 58 | return accimage_loader(path) |
| 59 | else: |
| 60 | return pil_loader(path) |
| 61 | |
| 62 | |
| 63 | class ImagenetDataset(torchvision.datasets.ImageFolder): |
nothing calls this directly
no test coverage detected