"docs/source/vscode:/vscode.git/clone" did not exist on "7f0f7e1e913d47adce149e3c1d558254ed3fd664"
Commit f498a63f authored by tink2123's avatar tink2123
Browse files

update error message

parent 15fd0b31
...@@ -248,7 +248,7 @@ class SimpleReader(object): ...@@ -248,7 +248,7 @@ class SimpleReader(object):
"num_workers will be 1.") "num_workers will be 1.")
self.num_workers = 1 self.num_workers = 1
if self.batch_size * get_device_num() > img_num: 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 ({})". "The number of the whole data ({}) is smaller than the batch_size * devices_num ({})".
format(img_num, self.batch_size * get_device_num())) format(img_num, self.batch_size * get_device_num()))
for img_id in range(process_id, img_num, self.num_workers): for img_id in range(process_id, img_num, self.num_workers):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment