Skip to content

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

@wys2929

Description

@wys2929

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions