Open wrznr opened 2 years ago
You're right, that is confusing, the documentation needs some clarification. I'm guessing from the code that --val.preload
only works when you use a separate validation dataset via --val
, --val.images
and so on. In your case, the validation dataset is derived directly from the --train
-dataset with SplitTrain
, so the parameter could probably be --trainer.gen.val.preload
(would need to test if this has any effect).
According to https://calamari-ocr.readthedocs.io/en/latest/doc.command-line-usage.html#preloading-data-load-data-on-the-fly there is an argument
val.preload
used to prevent validation images from being loaded into RAM. However, applying this argument leads to anUnknownArgumentError
: