(path)
| 68 | |
| 69 | |
| 70 | def default_loader(path): |
| 71 | from torchvision import get_image_backend |
| 72 | if get_image_backend() == 'accimage': |
| 73 | return accimage_loader(path) |
| 74 | else: |
| 75 | return pil_loader(path) |
| 76 | |
| 77 | |
| 78 | class ImageFolder(data.Dataset): |
nothing calls this directly
no test coverage detected