InterDigitalInc / CompressAI

A PyTorch library and evaluation platform for end-to-end compression research
https://interdigitalinc.github.io/CompressAI/
BSD 3-Clause Clear License
1.15k stars 228 forks source link

Improve error messages when dataset files are not correct #244

Closed sfeltman closed 1 year ago

sfeltman commented 1 year ago

Bug

The error messages from compressai/datasets/video.py are fairly opaque and could use improvement.

To Reproduce

python3 examples/train_video.py \
        -d /data/vimeo90k
...

This results in the following error: RuntimeError: Invalid file "/data/vimeo90k"

Expected behavior

The error message should be more helpful, noting a specific expected file was not found. This would give the user a clearer path to deduce the issue. For example: Error: Invalid dataset, expected file not found "/data/vimeo90k/train.list"