update error message

This commit is contained in:
tink2123 2020-08-05 16:42:21 +08:00
parent 15fd0b31db
commit f498a63f10
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ class SimpleReader(object):
"num_workers will be 1.")
self.num_workers = 1
if self.batch_size * get_device_num() > img_num:
logger.error(
raise Exception(
"The number of the whole data ({}) is smaller than the batch_size * devices_num ({})".
format(img_num, self.batch_size * get_device_num()))
for img_id in range(process_id, img_num, self.num_workers):