Layout-Parser / layout-model-training

The scripts for training Detectron2-based Layout Models on popular layout analysis datasets
198 stars 54 forks source link

fix: ValueError: With n_samples=0, test_size=None and train_size=0.8, the resulting train set will be empty. Adjust any of the aforementioned parameters. #7

Closed XBeg9 closed 2 years ago

XBeg9 commented 2 years ago

this does fix this ValueError if you don't have any non-annotated instances.

XBeg9 commented 2 years ago

Are there any maintainers here?

lolipopshock commented 2 years ago

Thanks @XBeg9 ! Just seeing this -- let me get it merged!