Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

What's the meaning of mean and norm when use AWNN converter #14

Open
diazGT94 opened this issue Apr 29, 2021 · 1 comment
Open

What's the meaning of mean and norm when use AWNN converter #14

diazGT94 opened this issue Apr 29, 2021 · 1 comment

Comments

@diazGT94
Copy link

Hello, I trained an object detector with Yolo and I would like to know how to convert it to AWNN. I was able to convert the .cfg and .weights files to .bin a .para files that belongs to a NCNN. However, I'm confused of the values that I should use for the NCNN to AWNN online converter tool. The input of the images on my yolo network are 320x240 however I don't know how to get the mean and normalization factor.

@Neutree
Copy link
Member

Neutree commented Jun 1, 2021

mean and norm describe how input data be normalized( (input_data - mean) * norm )

e.g.

if you want normalized input data ∈ [-1, 1] , and input pixel data ∈ [0, 255], your mean and norm can be: mean = 127.5, norm=0.0078125 (that is 1/128)

the first pixel: (255, 0, 150)

then after nomalize, the pixel data is ( (255 - 127.5)/128, (0 - 127.5)/128, (150 - 127.5)/128)

@Neutree Neutree changed the title Convert a Transfer Learning Yolo Model to AWNN What's the meaning of mean and norm when use AWNN converter Jun 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants