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

Regression error problem #667

Closed
bilalkah opened this issue Jul 5, 2021 · 1 comment
Closed

Regression error problem #667

bilalkah opened this issue Jul 5, 2021 · 1 comment

Comments

@bilalkah
Copy link

bilalkah commented Jul 5, 2021

I try to train efficientDet-D0 pre-trained with custom dataset. Dataset name is uyz so I create a project file called uyz.yml in projects folder. I copied .yml file from logo.yml and changed project name and obj_list. When I train the model I get 0 Reg Loss. What do I wrong. I suspect the problem is anchor boxes. How can I calculate new scales and ratios. Also, should I change mean and std for my dataset? Or is there any problem which I did not see?
image
Here is my custom dataset: https://drive.google.com/drive/folders/19FsxgEGOsgVnH50C2B2ay0b1RYXsgbnv?usp=sharing

Here is the uyz.yml. I changed anchors with some value to try.

project_name: uyz  # also the folder name of the dataset that under data_path folder
train_set: train
val_set: val
num_gpus: 1

# mean and std in RGB order, actually this part should remain unchanged as long as your dataset is similar to coco.
mean: [ 0.485, 0.456, 0.406 ]
std: [ 0.229, 0.224, 0.225 ]

# this anchor is adapted to the dataset
anchors_scales: '[2 ** 0, 2 ** (1.0 / 3.0), 2 ** (2.0 / 3.0)]'
anchors_ratios: '[(0.7, 1.4), (1.0, 1.0), (1.2, 1.0)]'

obj_list: [ 'car', 'human']
@bilalkah
Copy link
Author

bilalkah commented Jul 5, 2021

The problem was category ids. Solved.
#386 (comment)
Question 4

@bilalkah bilalkah closed this as completed Jul 5, 2021
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