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

Output scale factor #4

Open
thohemp opened this issue Sep 29, 2021 · 5 comments
Open

Output scale factor #4

thohemp opened this issue Sep 29, 2021 · 5 comments

Comments

@thohemp
Copy link

thohemp commented Sep 29, 2021

There is a scale factor used to scale the outputs back for gt comparison:

self.pose_std = np.array([0.13, 0.13, 0.13, 0.013, 0.013, 0.013], dtype=np.float32)

Can you tell what these numbers are and why are they used?

@aartykov
Copy link

aartykov commented Dec 7, 2021

@thohemp could you figure out the aim of these numbers?

@Amigoshan
Copy link
Contributor

Those are just approximate std values of the GT motion. We used these values to normalize the motion output during training. So we need to normalize the values in the same way when testing.

@aartykov
Copy link

@Amigoshan So do we need to change these numbers according to our dataset? For example, I am trying to test the trained model with Euroc_V102_Medium, do I need to calculate these numbers for Euroc?

@Amigoshan
Copy link
Contributor

@artykov1511 Yes, we do. It's like the mean std values people use to normalize the image data from the ImageNet. Once the network is trained, all input and output values need to be normalized using the same value, no matter what dataset the data is from.

@Zilong-L
Copy link

Normalizing data is helpful for training a network. It helps with numeric stability. These numbers are different if datasets are different.

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