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

Can you share the training parameters? I am using a dataset and cannot obtain good results #12

Open
yangh-zzf-itcast opened this issue Apr 24, 2023 · 4 comments

Comments

@yangh-zzf-itcast
Copy link

this is my parameters
Namespace(batch_size=32, database_dir='/ssd_data/yanghang/palm_vein/POLYU/NIR_polyu_crop/', embedding_size=512, evaluate=False, learning_rate=0.01, logdir='./data_polyup/CSVFiles/cnn_logs.csv', margin=0.5, num_classes=450, num_epochs=300, num_workers=8, outdir='modeldir/00/05/', scale_rate=32.0, start_epoch=0, test_dir='/ssd_data/yanghang/palm_vein/POLYU/data_polyup_CSVFiles/output_list_test_pair.csv', train_dir='/ssd_data/yanghang/palm_vein/POLYU/data_polyup_CSVFiles/output_list_train.csv', type='aamp', valid_dir='/ssd_data/yanghang/palm_vein/POLYU/data_polyup_CSVFiles/output_list_val.csv', weight_decay=0.0001)
I use polyu palm vein dataset,and use MNASNet_Modified model,The validation set loss keeps rising, obviously overfitting
image

@151210148
Copy link

hi , POLYU data can share? thanks

@jieblue
Copy link

jieblue commented Jul 11, 2024

Can u share POLYU palm vein datasets? Thanks.

@deeperlearner
Copy link

deeperlearner commented Sep 16, 2024

@yangh-zzf-itcast
I have the same problem. Validation prec stays at zero, but the test pair results seem good.
I don't think the training process is responsible for the good test results. This is due to the pre-trained weights of ImageNet's MNASNet_Modified model.
Do you have any findings? Thanks.
image

@deeperlearner
Copy link

Reduce the batch size can improve the validation performance.
python3 -m benchmark_verification.main_train_CNN --num_epochs 100 --batch-size 8 --type none
image

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

4 participants