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

when to stop for pretraining? #5

Open
weicheng113 opened this issue Jul 11, 2022 · 0 comments
Open

when to stop for pretraining? #5

weicheng113 opened this issue Jul 11, 2022 · 0 comments

Comments

@weicheng113
Copy link

weicheng113 commented Jul 11, 2022

Hi,

Thanks for the help with the previous question. I have prepared the imagenet data and it is ready to train. I just wonder what is stop criteria for pretraining? I have not found any graph for pretraining in the paper. There is only one metric, center weighted MSE loss, for pretraining. Center weighted MSE loss does not give straight hint on how well it will do for counting.

So I just wonder when you were doing pretraining, were you simply check if validation loss was not able to go down for some number of epochs?


Just started pretraining. With BS = 64, EPOCHS = 25, it will finish training pretty quickly, as there are only 30 classes. It does not feel right to me. Do you remember roughly the configuration you use for pretraining? I can see from - https://github.com/erikalu/class-agnostic-counting/blob/master/src/main.py

image

It is steps_per_epoch=600 and epochs=36. As in each class, there are multiple videos, so it is reasonable to randomly pick multiple times.

By the way, I was trying to convert Keras model to Pytorch, but It was not successful - https://github.com/weicheng113/class-agnostic-counting-pytorch/blob/master/keras2pytorch/keras2pytorch.py. I tested with the demo.py given by official repo. The result was completely different. I checked the weights, which were the same. I had a difficulty in checking input and output of nested layer in Keras, so I was not able to figure out the cause.

Thanks,
Cheng

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

1 participant