Expected behavior / 预期结果 (Mandatory / 必填)
A clear and concise description of what you expected to happen.
(MindSpore) [ma-user mindcv]$python train.py --model resnet50 --dataset cifar10 --data_dir ./cifar-10-batches-bin --batch_size 128 --val_while_train True
Traceback (most recent call last):
File "train.py", line 337, in <module>
train(args)
File "train.py", line 124, in train
download=args.dataset_download,
File "/home/ma-user/work/mindcv/mindcv/data/dataset_factory.py", line 152, in create_dataset
**mindspore_kwargs,
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/mindspore/dataset/engine/validators.py", line 351, in new_method
check_valid_str(usage, ["train", "test", "all"], "usage")
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/mindspore/dataset/core/validator_helpers.py", line 405, in check_valid_str
raise ValueError("Input {0} is not within the valid set of {1}.".format(arg_name, str(valid_strings)))
ValueError: Input usage is not within the valid set of ['train', 'test', 'all'].
Screenshots/ 日志 / 截图 (Mandatory / 必填)
If applicable, add screenshots to help explain your problem.
Additional context / 备注 (Optional / 选填)
Add any other context about the problem here.
If this is your first time, please read our contributor guidelines: https://github.com/mindspore-lab/mindcv/blob/main/CONTRIBUTING.md
Describe the bug/ 问题描述 (Mandatory / 必填) A clear and concise description of what the bug is.
Hardware Environment(
Ascend
/GPU
/CPU
) / 硬件环境:Software Environment / 软件环境 (Mandatory / 必填): -- MindSpore version (e.g., 1.7.0.Bxxx) : 1.10.1 -- Python version (e.g., Python 3.7.5) : 3.7.10 -- OS platform and distribution (e.g., Linux Ubuntu 16.04): EulerOS 2.0 (SP8) -- GCC/Compiler version (if compiled from source):
Excute Mode / 执行模式 (Mandatory / 必填)(
PyNative
/Graph
):To Reproduce / 重现步骤 (Mandatory / 必填) Steps to reproduce the behavior:
Expected behavior / 预期结果 (Mandatory / 必填) A clear and concise description of what you expected to happen.
Screenshots/ 日志 / 截图 (Mandatory / 必填) If applicable, add screenshots to help explain your problem.
Additional context / 备注 (Optional / 选填) Add any other context about the problem here.