"Warning: The number of the whole data ({}) is smaller than the batch_size ({}), and drop_last is turnning on, so nothing will feed in program, Terminated now. Please reset batch_size to a smaller number or feed more data!".
logger.error(
"Error: The number of the whole data ({}) is smaller than the batch_size ({}), and drop_last is turnning on, so nothing will feed in program, Terminated now. Please set the batch_size to a smaller number or feed more data!".
),"Data doesn't exist in {}, please load right path".format(args.data_dir)
# check CE
ifargs.enable_ce:
args.random_seed=0
print("CE is running now!")
logger.warning("CE is running now! already set random seed to 0")
# check class_dim
assertargs.class_dim>1,"class_dim must greater than 1"
# check dali preprocess
ifargs.use_dali:
print(
logger.warning(
"DALI preprocessing is activated!!!\nWarning: 1. Please make sure paddlepaddle is compiled by GCC5.4 or later version!\n\t 2. Please make sure nightly builds DALI is installed correctly.\n----------------------------------------------------"