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

Defined names in weights.h different from ds_cnn_weights.h #128

Open
arvoelke opened this issue Apr 8, 2020 · 1 comment
Open

Defined names in weights.h different from ds_cnn_weights.h #128

arvoelke opened this issue Apr 8, 2020 · 1 comment

Comments

@arvoelke
Copy link

arvoelke commented Apr 8, 2020

I tried to create a new header file for the DS-CNN by running:

python train.py --model_architecture ds_cnn ...

python fold_batchnorm.py --model_architecture ds_cnn ...

python quant_test.py --model_architecture ds_cnn ...

but the resulting weights.h file uses different #define names than those in Deployment/Source/NN/DS_CNN/ds_cnn_weights.h.

Specifically, weights.h contains definitions for:

DS-CNN_conv_1_weights_0
DS-CNN_conv_1_biases_0
DS-CNN_conv_ds_1_dw_conv_depthwise_weights_0
DS-CNN_conv_ds_1_dw_conv_biases_0
DS-CNN_conv_ds_1_pw_conv_weights_0
DS-CNN_conv_ds_1_pw_conv_biases_0
DS-CNN_conv_ds_2_dw_conv_depthwise_weights_0
DS-CNN_conv_ds_2_dw_conv_biases_0
DS-CNN_conv_ds_2_pw_conv_weights_0
DS-CNN_conv_ds_2_pw_conv_biases_0
DS-CNN_conv_ds_3_dw_conv_depthwise_weights_0
DS-CNN_conv_ds_3_dw_conv_biases_0
DS-CNN_conv_ds_3_pw_conv_weights_0
DS-CNN_conv_ds_3_pw_conv_biases_0
DS-CNN_conv_ds_4_dw_conv_depthwise_weights_0
DS-CNN_conv_ds_4_dw_conv_biases_0
DS-CNN_conv_ds_4_pw_conv_weights_0
DS-CNN_conv_ds_4_pw_conv_biases_0
DS-CNN_fc1_weights_0
DS-CNN_fc1_biases_0

whereas the original ds_cnn_weights.h contains definitions for:

CONV1_WT
CONV1_BIAS
CONV2_DS_WT
CONV2_DS_BIAS
CONV2_PW_WT
CONV2_PW_BIAS
CONV3_DS_WT
CONV3_DS_BIAS
CONV3_PW_WT
CONV3_PW_BIAS
CONV4_DS_WT
CONV4_DS_BIAS
CONV4_PW_WT
CONV4_PW_BIAS
CONV5_DS_WT
CONV5_DS_BIAS
CONV5_PW_WT
CONV5_PW_BIAS
FINAL_FC_WT
FINAL_FC_BIAS

Am I missing some step for generating weights.h? Or am I supposed to go through and modify all these names to be the same as before?

@arvoelke
Copy link
Author

arvoelke commented Apr 8, 2020

Update: I went through and changed all the names accordingly, and that appeared to work. However, I'm still wondering if I missed a step, or did something incorrectly to end up with all of the wrong variable names in weights.h.

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