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

What is "train_times" and "grid_scales"? #310

Open
brian123214 opened this issue May 22, 2021 · 1 comment
Open

What is "train_times" and "grid_scales"? #310

brian123214 opened this issue May 22, 2021 · 1 comment

Comments

@brian123214
Copy link

brian123214 commented May 22, 2021

In the config.json, there is a parameter called "train_times", and it is described as "the number of time to cycle through the training set, useful for small dataset". What is the difference between train_times and epoch? Also, in config.json, there is a parameter callled ""grid_scales", and the default is [1, 1, 1]. I'm assuming this is related to how yolov3 has three detection layers? If I wanted it to have 4 detection layers, would I set it to [1, 1, 1, 1] and also manually add in a fourth detection layer in the model?

@brian123214 brian123214 changed the title What is "train_times"? What is "train_times" and "grid_scales"? May 24, 2021
@lexuansanh
Copy link

As I know "grid_scales" is parameter that is added to calculate "Loss" for each grid. In other word, "grid_scales" penalize "Loss" for custom grid. Example:
grid_scales = [1,1,1] mean we penalize "loss" of 3 grid [13,13] [26,26], [52,52] is same and equal "loss" which is calculated
grid_scales = [2,1,1] mean we penalize "loss" of grid [13,13] > grid [26,26] and [52,52]. here we focus more on "loss" of large object.
grid_scales = [1,1,2] mean we penalize "loss" of grid [52,52] > grid [26,26] and [13,13]. here we focus more on "loss" of small object.

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