You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'd like to run the inference model at embed device. Due to the limitation of computing resources, I have some questions as followed:
I've tried to convert the float computing int integer computing. That is to say, after parsing the cascade binary file, the luts and thresholds matrix will be converted to integer.
However, I've met some problems in the "run_cascade" function. The index of vppixels array is out of range.
So I'd like to know the structure of cascade file. The declarations of these matrixs are not fully used during the inference stage.
I cant understand the parsing of following code, especially the tcodes and lut
`offset = ((1<<tdepth)-1)sizeof(int32_t) + (1<<tdepth)sizeof(float) + 1sizeof(float);
ptree = (int8_t)cascade + 2sizeof(float) + 2sizeof(int);
I think you have a problem in the following line: int_luts[i][j] = (int)(*(&luts[0][0]+i*1024+j)*PERCISON);. Why not simply use int_luts[i][j] = (int)(luts[i][j]*PRECISION);? (I didn't put too much thought into this so I might be wrong.)
The offset variable tells us how much memory we have to skip in order to get to the next tree (ptree is a pointer to its beginning).
We use the line tcodes = ptree - 4; because idx starts from 1, as you can see from the code. This simplifies the j-based for loop that iteratesd over the individual binary tests contained in the tree.
thanks.
I'd like to know more about the meaning of matrix "tcodes ,lut ,thr" and their space relationship with pixel matrix.
What will happen if the pixel matri I fed into the function is smaller than the trainning period?
Hi,
I'd like to run the inference model at embed device. Due to the limitation of computing resources, I have some questions as followed:
I've tried to convert the float computing int integer computing. That is to say, after parsing the cascade binary file, the luts and thresholds matrix will be converted to integer.
`int i,j;
FILE* file;
file = fopen("jst_headcascade", "rb");
if(!file)
return 0;
However, I've met some problems in the "run_cascade" function. The index of vppixels array is out of range.
So I'd like to know the structure of cascade file. The declarations of these matrixs are not fully used during the inference stage.
`int32_t version = 3;
int tdepth;
int ntrees=0;
int8_t bbox[4]; // (r_min, r_max, c_min, c_max)
int32_t tcodes[4096][1024];
float luts[4096][1024];
float thresholds[4096];`
I cant understand the parsing of following code, especially the tcodes and lut
`offset = ((1<<tdepth)-1)sizeof(int32_t) + (1<<tdepth)sizeof(float) + 1sizeof(float);
ptree = (int8_t)cascade + 2sizeof(float) + 2sizeof(int);
Any response is helpful.
Thanks
The text was updated successfully, but these errors were encountered: