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

The weight-sharing model will be repeatedly quantified #1117

Open
AddSalt8227 opened this issue Sep 3, 2021 · 0 comments
Open

The weight-sharing model will be repeatedly quantified #1117

AddSalt8227 opened this issue Sep 3, 2021 · 0 comments

Comments

@AddSalt8227
Copy link
Contributor

My model has two inputs, so I modify its quantization code as follows:

get_input_data_cv(imgs1_list[nums].c_str(), input1_data.data(), img1_c, img1_h, img1_w, mean, scale, sw_RGB, center_crop, letterbox_rows, letterbox_cols, focus);
get_input_data_cv(imgs2_list[nums].c_str(), input2_data.data(), img2_c, img2_h, img2_w, mean, scale, sw_RGB, center_crop, letterbox_rows, letterbox_cols, focus);

The weights are shared as follows:
Screenshot from 2021-09-03 16-30-10
Screenshot from 2021-09-03 16-30-21

output:
Screenshot from 2021-09-03 16-33-02

I think that the tensor224\225 is repeatedly quantized, we need check if(weight_tensor->data_type != TENGINE_DT_UINT8) then quantize it. After i do this, it works.

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