mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
add dataset len check
This commit is contained in:
@@ -54,6 +54,7 @@ def main(config, device, logger, vdl_writer):
|
||||
logger.error(
|
||||
'No Images in train dataset, please check annotation file and path in the configuration file'
|
||||
)
|
||||
return
|
||||
|
||||
if config['Eval']:
|
||||
valid_dataloader = build_dataloader(config, 'Eval', device, logger)
|
||||
|
||||
Reference in New Issue
Block a user