[branch "data_dumper_loader_fix"] Assertion raised when running "training/example/create_unified_dataset.py".
Problem
When running "training/example/create_unified_dataset.py" with --random_sample
at its default value, a AssertionError
is raised at this line https://vcgit.hhi.fraunhofer.de/jvet-ahg-nnvc/VVCSoftware_VTM/-/blob/data_dumper_loader_fix/training/data_loader/data_loader.py#L163.
Explanation
At the given line, the high bound of random.randint
should be dl.nb_patches() - 1
. Maybe the confusion arised from the fact that random.randint
and numpy.random.randint
do not work exactly the same way.