CompressAI icon indicating copy to clipboard operation
CompressAI copied to clipboard

Improve error message of ImageFolder

Open Freed-Wu opened this issue 2 years ago • 1 comments

Feature

https://github.com/InterDigitalInc/CompressAI//blob/master/compressai/datasets/image.py#L64

Why not change it to

raise RuntimeError(f'Non-existed directory "{splitdir}"')

Freed-Wu avatar Feb 09 '23 14:02 Freed-Wu

sorry for the late reply, I skipped this one. Yes, that works, why not. Since this "custom" dataset expects train/valid/test subfolders, that's what needs to be suggested

fracape avatar Mar 07 '23 06:03 fracape