Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About train.py #12

Open
lincong8722 opened this issue May 25, 2021 · 1 comment
Open

About train.py #12

lincong8722 opened this issue May 25, 2021 · 1 comment

Comments

@lincong8722
Copy link

Every time I start training, there are always mistakes like this

usage: train.py [-h] --name NAME [--dataset {CUB_200_2011,car,dog,nabirds}] [--data_root DATA_ROOT] [--model_type {ViT-B_16,ViT-B_32,ViT-L_16,ViT-L_32,ViT-H_14}] [--pretrained_dir PRETRAINED_DIR] [--pretrained_model PRETRAINED_MODEL] [--output_dir OUTPUT_DIR] [--img_size IMG_SIZE] [--train_batch_size TRAIN_BATCH_SIZE] [--eval_batch_size EVAL_BATCH_SIZE] [--eval_every EVAL_EVERY] [--learning_rate LEARNING_RATE] [--weight_decay WEIGHT_DECAY] [--num_steps NUM_STEPS] [--decay_type {cosine,linear}] [--warmup_steps WARMUP_STEPS] [--max_grad_norm MAX_GRAD_NORM] [--local_rank LOCAL_RANK] [--seed SEED] [--gradient_accumulation_steps GRADIENT_ACCUMULATION_STEPS] [--fp16] [--fp16_opt_level FP16_OPT_LEVEL] [--loss_scale LOSS_SCALE] [--smoothing_value SMOOTHING_VALUE] [--split SPLIT] [--slide_step SLIDE_STEP] train.py: error: the following arguments are required: --name

I don't know how to solve it. If you know , please tell me. Thank you!

@cwq63
Copy link

cwq63 commented May 26, 2021

It may be that the name is not specified.When training, you need to specify enough parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants