CoCLR icon indicating copy to clipboard operation
CoCLR copied to clipboard

main_classifier.py: error: unrecognized arguments: --final_bn

Open wys2929 opened this issue 2 years ago • 0 comments

When i try : CUDA_VISIBLE_DEVICES=0,1,2 python main_classifier.py --net s3d --dataset ucf101 --seq_len 32 --ds 1 --batch_size 32 --train_what last --epochs 30 --schedule 60 80 --optim sgd --lr 1e-1 --wd 1e-3 --final_bn --pretrain CoCLR-ucf101-rgb-128-s3d-ep182.pth Out: usage: main_classifier.py [-h] [--net NET] [--model MODEL] [--dataset DATASET] [--which_split WHICH_SPLIT] [--seq_len SEQ_LEN] [--num_seq NUM_SEQ] [--num_fc NUM_FC] [--ds DS] [--batch_size BATCH_SIZE] [--optim OPTIM] [--lr LR] [--schedule [SCHEDULE [SCHEDULE ...]]] [--wd WD] [--dropout DROPOUT] [--epochs EPOCHS] [--start_epoch START_EPOCH] [--gpu GPU] [--train_what TRAIN_WHAT] [--img_dim IMG_DIM] [--print_freq PRINT_FREQ] [--eval_freq EVAL_FREQ] [--reset_lr] [--prefix PREFIX] [-j WORKERS] [--cos] [--resume RESUME] [--pretrain PRETRAIN] [--test TEST] [--retrieval] [--dirname DIRNAME] [--center_crop] [--five_crop] [--ten_crop] main_classifier.py: error: unrecognized arguments: --final_bn

May I ask how to use the command line command --final_bn. After the above error occurred, I deleted --final_bn. Although it can run normally, it shows: Weights not loaded into new model: final_bn.weight final_bn.bias final_bn.running_mean final_bn.running_var final_bn.num_batches_tracked final_fc.0.weight final_fc.0.bias

Thanks

wys2929 avatar Jun 29 '22 09:06 wys2929