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

test scripts #2

Open
jaypatravali opened this issue Mar 6, 2020 · 2 comments
Open

test scripts #2

jaypatravali opened this issue Mar 6, 2020 · 2 comments

Comments

@jaypatravali
Copy link

Hi.
could you please provide test shell scripts for lenet, allconvnet probout.
Trying on my own I am unable to get it to work successfully.

Also Training with train_cifar_allconvnet_probout.sh, i dont think the model is training after 300 epochs, the loss isnt going down.

@ezjong
Copy link
Owner

ezjong commented Mar 10, 2020

Hi, indeed, loss should go down (and accuracy up). The ADF is working? Otherwise, it's probably something with the Dirichlet layer..

@jaypatravali
Copy link
Author

Hi,
I think the loss just remains the same. The ADF i am unable to find out whats missing. I am on Pytorch 1.3.1.

The ADF codes are not working, there is an argument missing. see my other issue for the error

Also can you provide test scripts for all. Currently I only have them for
test_cifar_fgsm_adf.sh
test_cifar_fgsm_probout.sh
test_inference.sh
I tried making my own for testing a new script file test_mnist_lenet_probout.sh based off other testing scripts.
python ../main.py
--batch_size=64
--checkpoint=$CHECKPOINT
--evaluation=True
--model=$MODEL
--num_workers=4
--proctitle=$MODEL
--save="$SAVE_PATH"
--total_epochs=20
--loss=DirichletProbOutLoss
--loss_label_smoothing=1e-5
--validation_dataset=MnistValid
--validation_dataset_root=$MNIST_HOME
--validation_keys="[top1]"
--validation_keys_minimize="[False]"
I get this error

RuntimeError: While copying the parameter named _loss._smoothed_onehot._noise, whose dimensions in the model are torch.Size([0]) and whose dimensions in the checkpoint are torch.Size([16, 10]).

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