diff --git a/CNNDemo/ResNet50Weight.bin b/CNNDemo/ResNet50Weight.bin index f60947c..b4126fd 100644 Binary files a/CNNDemo/ResNet50Weight.bin and b/CNNDemo/ResNet50Weight.bin differ diff --git a/CNNDemo/ResNet50Weight.cc b/CNNDemo/ResNet50Weight.cc index 1c0122d..7321c2a 100644 --- a/CNNDemo/ResNet50Weight.cc +++ b/CNNDemo/ResNet50Weight.cc @@ -23,246 +23,276 @@ int RN50_layer1__modules_0_downsample__modules_1_running_mean[] = { 339712,34073 int RN50_layer1__modules_0_downsample__modules_1_running_var[] = { 340736,341759 }; int RN50_layer1__modules_0_downsample__modules_1_weight[] = { 341760,342783 }; int RN50_layer1__modules_0_downsample__modules_1_bias[] = { 342784,343807 }; -int RN50_layer2__modules_0_conv1_weight[] = { 343808,474879 }; -int RN50_layer2__modules_0_bn1_running_mean[] = { 474880,475391 }; -int RN50_layer2__modules_0_bn1_running_var[] = { 475392,475903 }; -int RN50_layer2__modules_0_bn1_weight[] = { 475904,476415 }; -int RN50_layer2__modules_0_bn1_bias[] = { 476416,476927 }; -int RN50_layer2__modules_0_conv2_weight[] = { 476928,1066751 }; -int RN50_layer2__modules_0_bn2_running_mean[] = { 1066752,1067263 }; -int RN50_layer2__modules_0_bn2_running_var[] = { 1067264,1067775 }; -int RN50_layer2__modules_0_bn2_weight[] = { 1067776,1068287 }; -int RN50_layer2__modules_0_bn2_bias[] = { 1068288,1068799 }; -int RN50_layer2__modules_0_conv3_weight[] = { 1068800,1330943 }; -int RN50_layer2__modules_0_bn3_running_mean[] = { 1330944,1332991 }; -int RN50_layer2__modules_0_bn3_running_var[] = { 1332992,1335039 }; -int RN50_layer2__modules_0_bn3_weight[] = { 1335040,1337087 }; -int RN50_layer2__modules_0_bn3_bias[] = { 1337088,1339135 }; -int RN50_layer2__modules_0_downsample__modules_0_weight[] = { 1339136,1863423 }; -int RN50_layer2__modules_0_downsample__modules_1_running_mean[] = { 1863424,1865471 }; -int RN50_layer2__modules_0_downsample__modules_1_running_var[] = { 1865472,1867519 }; -int RN50_layer2__modules_0_downsample__modules_1_weight[] = { 1867520,1869567 }; -int RN50_layer2__modules_0_downsample__modules_1_bias[] = { 1869568,1871615 }; -int RN50_layer2__modules_1_conv1_weight[] = { 1871616,2133759 }; -int RN50_layer2__modules_1_bn1_running_mean[] = { 2133760,2134271 }; -int RN50_layer2__modules_1_bn1_running_var[] = { 2134272,2134783 }; -int RN50_layer2__modules_1_bn1_weight[] = { 2134784,2135295 }; -int RN50_layer2__modules_1_bn1_bias[] = { 2135296,2135807 }; -int RN50_layer2__modules_1_conv2_weight[] = { 2135808,2725631 }; -int RN50_layer2__modules_1_bn2_running_mean[] = { 2725632,2726143 }; -int RN50_layer2__modules_1_bn2_running_var[] = { 2726144,2726655 }; -int RN50_layer2__modules_1_bn2_weight[] = { 2726656,2727167 }; -int RN50_layer2__modules_1_bn2_bias[] = { 2727168,2727679 }; -int RN50_layer2__modules_1_conv3_weight[] = { 2727680,2989823 }; -int RN50_layer2__modules_1_bn3_running_mean[] = { 2989824,2991871 }; -int RN50_layer2__modules_1_bn3_running_var[] = { 2991872,2993919 }; -int RN50_layer2__modules_1_bn3_weight[] = { 2993920,2995967 }; -int RN50_layer2__modules_1_bn3_bias[] = { 2995968,2998015 }; -int RN50_layer2__modules_2_conv1_weight[] = { 2998016,3260159 }; -int RN50_layer2__modules_2_bn1_running_mean[] = { 3260160,3260671 }; -int RN50_layer2__modules_2_bn1_running_var[] = { 3260672,3261183 }; -int RN50_layer2__modules_2_bn1_weight[] = { 3261184,3261695 }; -int RN50_layer2__modules_2_bn1_bias[] = { 3261696,3262207 }; -int RN50_layer2__modules_2_conv2_weight[] = { 3262208,3852031 }; -int RN50_layer2__modules_2_bn2_running_mean[] = { 3852032,3852543 }; -int RN50_layer2__modules_2_bn2_running_var[] = { 3852544,3853055 }; -int RN50_layer2__modules_2_bn2_weight[] = { 3853056,3853567 }; -int RN50_layer2__modules_2_bn2_bias[] = { 3853568,3854079 }; -int RN50_layer2__modules_2_conv3_weight[] = { 3854080,4116223 }; -int RN50_layer2__modules_2_bn3_running_mean[] = { 4116224,4118271 }; -int RN50_layer2__modules_2_bn3_running_var[] = { 4118272,4120319 }; -int RN50_layer2__modules_2_bn3_weight[] = { 4120320,4122367 }; -int RN50_layer2__modules_2_bn3_bias[] = { 4122368,4124415 }; -int RN50_layer2__modules_3_conv1_weight[] = { 4124416,4386559 }; -int RN50_layer2__modules_3_bn1_running_mean[] = { 4386560,4387071 }; -int RN50_layer2__modules_3_bn1_running_var[] = { 4387072,4387583 }; -int RN50_layer2__modules_3_bn1_weight[] = { 4387584,4388095 }; -int RN50_layer2__modules_3_bn1_bias[] = { 4388096,4388607 }; -int RN50_layer2__modules_3_conv2_weight[] = { 4388608,4978431 }; -int RN50_layer2__modules_3_bn2_running_mean[] = { 4978432,4978943 }; -int RN50_layer2__modules_3_bn2_running_var[] = { 4978944,4979455 }; -int RN50_layer2__modules_3_bn2_weight[] = { 4979456,4979967 }; -int RN50_layer2__modules_3_bn2_bias[] = { 4979968,4980479 }; -int RN50_layer2__modules_3_conv3_weight[] = { 4980480,5242623 }; -int RN50_layer2__modules_3_bn3_running_mean[] = { 5242624,5244671 }; -int RN50_layer2__modules_3_bn3_running_var[] = { 5244672,5246719 }; -int RN50_layer2__modules_3_bn3_weight[] = { 5246720,5248767 }; -int RN50_layer2__modules_3_bn3_bias[] = { 5248768,5250815 }; -int RN50_layer3__modules_0_conv1_weight[] = { 5250816,5775103 }; -int RN50_layer3__modules_0_bn1_running_mean[] = { 5775104,5776127 }; -int RN50_layer3__modules_0_bn1_running_var[] = { 5776128,5777151 }; -int RN50_layer3__modules_0_bn1_weight[] = { 5777152,5778175 }; -int RN50_layer3__modules_0_bn1_bias[] = { 5778176,5779199 }; -int RN50_layer3__modules_0_conv2_weight[] = { 5779200,8138495 }; -int RN50_layer3__modules_0_bn2_running_mean[] = { 8138496,8139519 }; -int RN50_layer3__modules_0_bn2_running_var[] = { 8139520,8140543 }; -int RN50_layer3__modules_0_bn2_weight[] = { 8140544,8141567 }; -int RN50_layer3__modules_0_bn2_bias[] = { 8141568,8142591 }; -int RN50_layer3__modules_0_conv3_weight[] = { 8142592,9191167 }; -int RN50_layer3__modules_0_bn3_running_mean[] = { 9191168,9195263 }; -int RN50_layer3__modules_0_bn3_running_var[] = { 9195264,9199359 }; -int RN50_layer3__modules_0_bn3_weight[] = { 9199360,9203455 }; -int RN50_layer3__modules_0_bn3_bias[] = { 9203456,9207551 }; -int RN50_layer3__modules_0_downsample__modules_0_weight[] = { 9207552,11304703 }; -int RN50_layer3__modules_0_downsample__modules_1_running_mean[] = { 11304704,11308799 }; -int RN50_layer3__modules_0_downsample__modules_1_running_var[] = { 11308800,11312895 }; -int RN50_layer3__modules_0_downsample__modules_1_weight[] = { 11312896,11316991 }; -int RN50_layer3__modules_0_downsample__modules_1_bias[] = { 11316992,11321087 }; -int RN50_layer3__modules_1_conv1_weight[] = { 11321088,12369663 }; -int RN50_layer3__modules_1_bn1_running_mean[] = { 12369664,12370687 }; -int RN50_layer3__modules_1_bn1_running_var[] = { 12370688,12371711 }; -int RN50_layer3__modules_1_bn1_weight[] = { 12371712,12372735 }; -int RN50_layer3__modules_1_bn1_bias[] = { 12372736,12373759 }; -int RN50_layer3__modules_1_conv2_weight[] = { 12373760,14733055 }; -int RN50_layer3__modules_1_bn2_running_mean[] = { 14733056,14734079 }; -int RN50_layer3__modules_1_bn2_running_var[] = { 14734080,14735103 }; -int RN50_layer3__modules_1_bn2_weight[] = { 14735104,14736127 }; -int RN50_layer3__modules_1_bn2_bias[] = { 14736128,14737151 }; -int RN50_layer3__modules_1_conv3_weight[] = { 14737152,15785727 }; -int RN50_layer3__modules_1_bn3_running_mean[] = { 15785728,15789823 }; -int RN50_layer3__modules_1_bn3_running_var[] = { 15789824,15793919 }; -int RN50_layer3__modules_1_bn3_weight[] = { 15793920,15798015 }; -int RN50_layer3__modules_1_bn3_bias[] = { 15798016,15802111 }; -int RN50_layer3__modules_2_conv1_weight[] = { 15802112,16850687 }; -int RN50_layer3__modules_2_bn1_running_mean[] = { 16850688,16851711 }; -int RN50_layer3__modules_2_bn1_running_var[] = { 16851712,16852735 }; -int RN50_layer3__modules_2_bn1_weight[] = { 16852736,16853759 }; -int RN50_layer3__modules_2_bn1_bias[] = { 16853760,16854783 }; -int RN50_layer3__modules_2_conv2_weight[] = { 16854784,19214079 }; -int RN50_layer3__modules_2_bn2_running_mean[] = { 19214080,19215103 }; -int RN50_layer3__modules_2_bn2_running_var[] = { 19215104,19216127 }; -int RN50_layer3__modules_2_bn2_weight[] = { 19216128,19217151 }; -int RN50_layer3__modules_2_bn2_bias[] = { 19217152,19218175 }; -int RN50_layer3__modules_2_conv3_weight[] = { 19218176,20266751 }; -int RN50_layer3__modules_2_bn3_running_mean[] = { 20266752,20270847 }; -int RN50_layer3__modules_2_bn3_running_var[] = { 20270848,20274943 }; -int RN50_layer3__modules_2_bn3_weight[] = { 20274944,20279039 }; -int RN50_layer3__modules_2_bn3_bias[] = { 20279040,20283135 }; -int RN50_layer3__modules_3_conv1_weight[] = { 20283136,21331711 }; -int RN50_layer3__modules_3_bn1_running_mean[] = { 21331712,21332735 }; -int RN50_layer3__modules_3_bn1_running_var[] = { 21332736,21333759 }; -int RN50_layer3__modules_3_bn1_weight[] = { 21333760,21334783 }; -int RN50_layer3__modules_3_bn1_bias[] = { 21334784,21335807 }; -int RN50_layer3__modules_3_conv2_weight[] = { 21335808,23695103 }; -int RN50_layer3__modules_3_bn2_running_mean[] = { 23695104,23696127 }; -int RN50_layer3__modules_3_bn2_running_var[] = { 23696128,23697151 }; -int RN50_layer3__modules_3_bn2_weight[] = { 23697152,23698175 }; -int RN50_layer3__modules_3_bn2_bias[] = { 23698176,23699199 }; -int RN50_layer3__modules_3_conv3_weight[] = { 23699200,24747775 }; -int RN50_layer3__modules_3_bn3_running_mean[] = { 24747776,24751871 }; -int RN50_layer3__modules_3_bn3_running_var[] = { 24751872,24755967 }; -int RN50_layer3__modules_3_bn3_weight[] = { 24755968,24760063 }; -int RN50_layer3__modules_3_bn3_bias[] = { 24760064,24764159 }; -int RN50_layer3__modules_4_conv1_weight[] = { 24764160,25812735 }; -int RN50_layer3__modules_4_bn1_running_mean[] = { 25812736,25813759 }; -int RN50_layer3__modules_4_bn1_running_var[] = { 25813760,25814783 }; -int RN50_layer3__modules_4_bn1_weight[] = { 25814784,25815807 }; -int RN50_layer3__modules_4_bn1_bias[] = { 25815808,25816831 }; -int RN50_layer3__modules_4_conv2_weight[] = { 25816832,28176127 }; -int RN50_layer3__modules_4_bn2_running_mean[] = { 28176128,28177151 }; -int RN50_layer3__modules_4_bn2_running_var[] = { 28177152,28178175 }; -int RN50_layer3__modules_4_bn2_weight[] = { 28178176,28179199 }; -int RN50_layer3__modules_4_bn2_bias[] = { 28179200,28180223 }; -int RN50_layer3__modules_4_conv3_weight[] = { 28180224,29228799 }; -int RN50_layer3__modules_4_bn3_running_mean[] = { 29228800,29232895 }; -int RN50_layer3__modules_4_bn3_running_var[] = { 29232896,29236991 }; -int RN50_layer3__modules_4_bn3_weight[] = { 29236992,29241087 }; -int RN50_layer3__modules_4_bn3_bias[] = { 29241088,29245183 }; -int RN50_layer3__modules_5_conv1_weight[] = { 29245184,30293759 }; -int RN50_layer3__modules_5_bn1_running_mean[] = { 30293760,30294783 }; -int RN50_layer3__modules_5_bn1_running_var[] = { 30294784,30295807 }; -int RN50_layer3__modules_5_bn1_weight[] = { 30295808,30296831 }; -int RN50_layer3__modules_5_bn1_bias[] = { 30296832,30297855 }; -int RN50_layer3__modules_5_conv2_weight[] = { 30297856,32657151 }; -int RN50_layer3__modules_5_bn2_running_mean[] = { 32657152,32658175 }; -int RN50_layer3__modules_5_bn2_running_var[] = { 32658176,32659199 }; -int RN50_layer3__modules_5_bn2_weight[] = { 32659200,32660223 }; -int RN50_layer3__modules_5_bn2_bias[] = { 32660224,32661247 }; -int RN50_layer3__modules_5_conv3_weight[] = { 32661248,33709823 }; -int RN50_layer3__modules_5_bn3_running_mean[] = { 33709824,33713919 }; -int RN50_layer3__modules_5_bn3_running_var[] = { 33713920,33718015 }; -int RN50_layer3__modules_5_bn3_weight[] = { 33718016,33722111 }; -int RN50_layer3__modules_5_bn3_bias[] = { 33722112,33726207 }; -int RN50_layer4__modules_0_conv1_weight[] = { 33726208,35823359 }; -int RN50_layer4__modules_0_bn1_running_mean[] = { 35823360,35825407 }; -int RN50_layer4__modules_0_bn1_running_var[] = { 35825408,35827455 }; -int RN50_layer4__modules_0_bn1_weight[] = { 35827456,35829503 }; -int RN50_layer4__modules_0_bn1_bias[] = { 35829504,35831551 }; -int RN50_layer4__modules_0_conv2_weight[] = { 35831552,45268735 }; -int RN50_layer4__modules_0_bn2_running_mean[] = { 45268736,45270783 }; -int RN50_layer4__modules_0_bn2_running_var[] = { 45270784,45272831 }; -int RN50_layer4__modules_0_bn2_weight[] = { 45272832,45274879 }; -int RN50_layer4__modules_0_bn2_bias[] = { 45274880,45276927 }; -int RN50_layer4__modules_0_conv3_weight[] = { 45276928,49471231 }; -int RN50_layer4__modules_0_bn3_running_mean[] = { 49471232,49479423 }; -int RN50_layer4__modules_0_bn3_running_var[] = { 49479424,49487615 }; -int RN50_layer4__modules_0_bn3_weight[] = { 49487616,49495807 }; -int RN50_layer4__modules_0_bn3_bias[] = { 49495808,49503999 }; -int RN50_layer4__modules_0_downsample__modules_0_weight[] = { 49504000,57892607 }; -int RN50_layer4__modules_0_downsample__modules_1_running_mean[] = { 57892608,57900799 }; -int RN50_layer4__modules_0_downsample__modules_1_running_var[] = { 57900800,57908991 }; -int RN50_layer4__modules_0_downsample__modules_1_weight[] = { 57908992,57917183 }; -int RN50_layer4__modules_0_downsample__modules_1_bias[] = { 57917184,57925375 }; -int RN50_layer4__modules_1_conv1_weight[] = { 57925376,62119679 }; -int RN50_layer4__modules_1_bn1_running_mean[] = { 62119680,62121727 }; -int RN50_layer4__modules_1_bn1_running_var[] = { 62121728,62123775 }; -int RN50_layer4__modules_1_bn1_weight[] = { 62123776,62125823 }; -int RN50_layer4__modules_1_bn1_bias[] = { 62125824,62127871 }; -int RN50_layer4__modules_1_conv2_weight[] = { 62127872,71565055 }; -int RN50_layer4__modules_1_bn2_running_mean[] = { 71565056,71567103 }; -int RN50_layer4__modules_1_bn2_running_var[] = { 71567104,71569151 }; -int RN50_layer4__modules_1_bn2_weight[] = { 71569152,71571199 }; -int RN50_layer4__modules_1_bn2_bias[] = { 71571200,71573247 }; -int RN50_layer4__modules_1_conv3_weight[] = { 71573248,75767551 }; -int RN50_layer4__modules_1_bn3_running_mean[] = { 75767552,75775743 }; -int RN50_layer4__modules_1_bn3_running_var[] = { 75775744,75783935 }; -int RN50_layer4__modules_1_bn3_weight[] = { 75783936,75792127 }; -int RN50_layer4__modules_1_bn3_bias[] = { 75792128,75800319 }; -int RN50_layer4__modules_2_conv1_weight[] = { 75800320,79994623 }; -int RN50_layer4__modules_2_bn1_running_mean[] = { 79994624,79996671 }; -int RN50_layer4__modules_2_bn1_running_var[] = { 79996672,79998719 }; -int RN50_layer4__modules_2_bn1_weight[] = { 79998720,80000767 }; -int RN50_layer4__modules_2_bn1_bias[] = { 80000768,80002815 }; -int RN50_layer4__modules_2_conv2_weight[] = { 80002816,89439999 }; -int RN50_layer4__modules_2_bn2_running_mean[] = { 89440000,89442047 }; -int RN50_layer4__modules_2_bn2_running_var[] = { 89442048,89444095 }; -int RN50_layer4__modules_2_bn2_weight[] = { 89444096,89446143 }; -int RN50_layer4__modules_2_bn2_bias[] = { 89446144,89448191 }; -int RN50_layer4__modules_2_conv3_weight[] = { 89448192,93642495 }; -int RN50_layer4__modules_2_bn3_running_mean[] = { 93642496,93650687 }; -int RN50_layer4__modules_2_bn3_running_var[] = { 93650688,93658879 }; -int RN50_layer4__modules_2_bn3_weight[] = { 93658880,93667071 }; -int RN50_layer4__modules_2_bn3_bias[] = { 93667072,93675263 }; -int RN50_fc_weight[] = { 93675264,101867263 }; -int RN50_fc_bias[] = { 101867264,101871263 }; -int verify_input[] = { 101871264,102473375 }; -int verify_conv1[] = { 102473376,105684639 }; -int verify_bn1[] = { 105684640,108895903 }; -int verify_relu[] = { 108895904,112107167 }; -int verify_maxpool[] = { 112107168,112909983 }; -int verify_layer1[] = { 112909984,116121247 }; -int verify_layer2[] = { 116121248,117726879 }; -int verify_layer3[] = { 117726880,118529695 }; -int verify_layer4[] = { 118529696,118931103 }; -int verify_avgpool[] = { 118931104,118939295 }; -int verify_fc[] = { 118939296,118943295 }; -int input_0[] = { 118943296,119545407 }; -int output_0[] = { 119545408,119549407 }; -int input_1[] = { 119549408,120151519 }; -int output_1[] = { 120151520,120155519 }; -int input_2[] = { 120155520,120757631 }; -int output_2[] = { 120757632,120761631 }; -int input_3[] = { 120761632,121363743 }; -int output_3[] = { 121363744,121367743 }; -int input_4[] = { 121367744,121969855 }; -int output_4[] = { 121969856,121973855 }; -int input_5[] = { 121973856,122575967 }; -int output_5[] = { 122575968,122579967 }; -int input_6[] = { 122579968,123182079 }; -int output_6[] = { 123182080,123186079 }; -int input_7[] = { 123186080,123788191 }; -int output_7[] = { 123788192,123792191 }; -int input_8[] = { 123792192,124394303 }; -int output_8[] = { 124394304,124398303 }; -int input_9[] = { 124398304,125000415 }; -int output_9[] = { 125000416,125004415 }; +int RN50_layer1__modules_1_conv1_weight[] = { 343808,409343 }; +int RN50_layer1__modules_1_bn1_running_mean[] = { 409344,409599 }; +int RN50_layer1__modules_1_bn1_running_var[] = { 409600,409855 }; +int RN50_layer1__modules_1_bn1_weight[] = { 409856,410111 }; +int RN50_layer1__modules_1_bn1_bias[] = { 410112,410367 }; +int RN50_layer1__modules_1_conv2_weight[] = { 410368,557823 }; +int RN50_layer1__modules_1_bn2_running_mean[] = { 557824,558079 }; +int RN50_layer1__modules_1_bn2_running_var[] = { 558080,558335 }; +int RN50_layer1__modules_1_bn2_weight[] = { 558336,558591 }; +int RN50_layer1__modules_1_bn2_bias[] = { 558592,558847 }; +int RN50_layer1__modules_1_conv3_weight[] = { 558848,624383 }; +int RN50_layer1__modules_1_bn3_running_mean[] = { 624384,625407 }; +int RN50_layer1__modules_1_bn3_running_var[] = { 625408,626431 }; +int RN50_layer1__modules_1_bn3_weight[] = { 626432,627455 }; +int RN50_layer1__modules_1_bn3_bias[] = { 627456,628479 }; +int RN50_layer1__modules_2_conv1_weight[] = { 628480,694015 }; +int RN50_layer1__modules_2_bn1_running_mean[] = { 694016,694271 }; +int RN50_layer1__modules_2_bn1_running_var[] = { 694272,694527 }; +int RN50_layer1__modules_2_bn1_weight[] = { 694528,694783 }; +int RN50_layer1__modules_2_bn1_bias[] = { 694784,695039 }; +int RN50_layer1__modules_2_conv2_weight[] = { 695040,842495 }; +int RN50_layer1__modules_2_bn2_running_mean[] = { 842496,842751 }; +int RN50_layer1__modules_2_bn2_running_var[] = { 842752,843007 }; +int RN50_layer1__modules_2_bn2_weight[] = { 843008,843263 }; +int RN50_layer1__modules_2_bn2_bias[] = { 843264,843519 }; +int RN50_layer1__modules_2_conv3_weight[] = { 843520,909055 }; +int RN50_layer1__modules_2_bn3_running_mean[] = { 909056,910079 }; +int RN50_layer1__modules_2_bn3_running_var[] = { 910080,911103 }; +int RN50_layer1__modules_2_bn3_weight[] = { 911104,912127 }; +int RN50_layer1__modules_2_bn3_bias[] = { 912128,913151 }; +int RN50_layer2__modules_0_conv1_weight[] = { 913152,1044223 }; +int RN50_layer2__modules_0_bn1_running_mean[] = { 1044224,1044735 }; +int RN50_layer2__modules_0_bn1_running_var[] = { 1044736,1045247 }; +int RN50_layer2__modules_0_bn1_weight[] = { 1045248,1045759 }; +int RN50_layer2__modules_0_bn1_bias[] = { 1045760,1046271 }; +int RN50_layer2__modules_0_conv2_weight[] = { 1046272,1636095 }; +int RN50_layer2__modules_0_bn2_running_mean[] = { 1636096,1636607 }; +int RN50_layer2__modules_0_bn2_running_var[] = { 1636608,1637119 }; +int RN50_layer2__modules_0_bn2_weight[] = { 1637120,1637631 }; +int RN50_layer2__modules_0_bn2_bias[] = { 1637632,1638143 }; +int RN50_layer2__modules_0_conv3_weight[] = { 1638144,1900287 }; +int RN50_layer2__modules_0_bn3_running_mean[] = { 1900288,1902335 }; +int RN50_layer2__modules_0_bn3_running_var[] = { 1902336,1904383 }; +int RN50_layer2__modules_0_bn3_weight[] = { 1904384,1906431 }; +int RN50_layer2__modules_0_bn3_bias[] = { 1906432,1908479 }; +int RN50_layer2__modules_0_downsample__modules_0_weight[] = { 1908480,2432767 }; +int RN50_layer2__modules_0_downsample__modules_1_running_mean[] = { 2432768,2434815 }; +int RN50_layer2__modules_0_downsample__modules_1_running_var[] = { 2434816,2436863 }; +int RN50_layer2__modules_0_downsample__modules_1_weight[] = { 2436864,2438911 }; +int RN50_layer2__modules_0_downsample__modules_1_bias[] = { 2438912,2440959 }; +int RN50_layer2__modules_1_conv1_weight[] = { 2440960,2703103 }; +int RN50_layer2__modules_1_bn1_running_mean[] = { 2703104,2703615 }; +int RN50_layer2__modules_1_bn1_running_var[] = { 2703616,2704127 }; +int RN50_layer2__modules_1_bn1_weight[] = { 2704128,2704639 }; +int RN50_layer2__modules_1_bn1_bias[] = { 2704640,2705151 }; +int RN50_layer2__modules_1_conv2_weight[] = { 2705152,3294975 }; +int RN50_layer2__modules_1_bn2_running_mean[] = { 3294976,3295487 }; +int RN50_layer2__modules_1_bn2_running_var[] = { 3295488,3295999 }; +int RN50_layer2__modules_1_bn2_weight[] = { 3296000,3296511 }; +int RN50_layer2__modules_1_bn2_bias[] = { 3296512,3297023 }; +int RN50_layer2__modules_1_conv3_weight[] = { 3297024,3559167 }; +int RN50_layer2__modules_1_bn3_running_mean[] = { 3559168,3561215 }; +int RN50_layer2__modules_1_bn3_running_var[] = { 3561216,3563263 }; +int RN50_layer2__modules_1_bn3_weight[] = { 3563264,3565311 }; +int RN50_layer2__modules_1_bn3_bias[] = { 3565312,3567359 }; +int RN50_layer2__modules_2_conv1_weight[] = { 3567360,3829503 }; +int RN50_layer2__modules_2_bn1_running_mean[] = { 3829504,3830015 }; +int RN50_layer2__modules_2_bn1_running_var[] = { 3830016,3830527 }; +int RN50_layer2__modules_2_bn1_weight[] = { 3830528,3831039 }; +int RN50_layer2__modules_2_bn1_bias[] = { 3831040,3831551 }; +int RN50_layer2__modules_2_conv2_weight[] = { 3831552,4421375 }; +int RN50_layer2__modules_2_bn2_running_mean[] = { 4421376,4421887 }; +int RN50_layer2__modules_2_bn2_running_var[] = { 4421888,4422399 }; +int RN50_layer2__modules_2_bn2_weight[] = { 4422400,4422911 }; +int RN50_layer2__modules_2_bn2_bias[] = { 4422912,4423423 }; +int RN50_layer2__modules_2_conv3_weight[] = { 4423424,4685567 }; +int RN50_layer2__modules_2_bn3_running_mean[] = { 4685568,4687615 }; +int RN50_layer2__modules_2_bn3_running_var[] = { 4687616,4689663 }; +int RN50_layer2__modules_2_bn3_weight[] = { 4689664,4691711 }; +int RN50_layer2__modules_2_bn3_bias[] = { 4691712,4693759 }; +int RN50_layer2__modules_3_conv1_weight[] = { 4693760,4955903 }; +int RN50_layer2__modules_3_bn1_running_mean[] = { 4955904,4956415 }; +int RN50_layer2__modules_3_bn1_running_var[] = { 4956416,4956927 }; +int RN50_layer2__modules_3_bn1_weight[] = { 4956928,4957439 }; +int RN50_layer2__modules_3_bn1_bias[] = { 4957440,4957951 }; +int RN50_layer2__modules_3_conv2_weight[] = { 4957952,5547775 }; +int RN50_layer2__modules_3_bn2_running_mean[] = { 5547776,5548287 }; +int RN50_layer2__modules_3_bn2_running_var[] = { 5548288,5548799 }; +int RN50_layer2__modules_3_bn2_weight[] = { 5548800,5549311 }; +int RN50_layer2__modules_3_bn2_bias[] = { 5549312,5549823 }; +int RN50_layer2__modules_3_conv3_weight[] = { 5549824,5811967 }; +int RN50_layer2__modules_3_bn3_running_mean[] = { 5811968,5814015 }; +int RN50_layer2__modules_3_bn3_running_var[] = { 5814016,5816063 }; +int RN50_layer2__modules_3_bn3_weight[] = { 5816064,5818111 }; +int RN50_layer2__modules_3_bn3_bias[] = { 5818112,5820159 }; +int RN50_layer3__modules_0_conv1_weight[] = { 5820160,6344447 }; +int RN50_layer3__modules_0_bn1_running_mean[] = { 6344448,6345471 }; +int RN50_layer3__modules_0_bn1_running_var[] = { 6345472,6346495 }; +int RN50_layer3__modules_0_bn1_weight[] = { 6346496,6347519 }; +int RN50_layer3__modules_0_bn1_bias[] = { 6347520,6348543 }; +int RN50_layer3__modules_0_conv2_weight[] = { 6348544,8707839 }; +int RN50_layer3__modules_0_bn2_running_mean[] = { 8707840,8708863 }; +int RN50_layer3__modules_0_bn2_running_var[] = { 8708864,8709887 }; +int RN50_layer3__modules_0_bn2_weight[] = { 8709888,8710911 }; +int RN50_layer3__modules_0_bn2_bias[] = { 8710912,8711935 }; +int RN50_layer3__modules_0_conv3_weight[] = { 8711936,9760511 }; +int RN50_layer3__modules_0_bn3_running_mean[] = { 9760512,9764607 }; +int RN50_layer3__modules_0_bn3_running_var[] = { 9764608,9768703 }; +int RN50_layer3__modules_0_bn3_weight[] = { 9768704,9772799 }; +int RN50_layer3__modules_0_bn3_bias[] = { 9772800,9776895 }; +int RN50_layer3__modules_0_downsample__modules_0_weight[] = { 9776896,11874047 }; +int RN50_layer3__modules_0_downsample__modules_1_running_mean[] = { 11874048,11878143 }; +int RN50_layer3__modules_0_downsample__modules_1_running_var[] = { 11878144,11882239 }; +int RN50_layer3__modules_0_downsample__modules_1_weight[] = { 11882240,11886335 }; +int RN50_layer3__modules_0_downsample__modules_1_bias[] = { 11886336,11890431 }; +int RN50_layer3__modules_1_conv1_weight[] = { 11890432,12939007 }; +int RN50_layer3__modules_1_bn1_running_mean[] = { 12939008,12940031 }; +int RN50_layer3__modules_1_bn1_running_var[] = { 12940032,12941055 }; +int RN50_layer3__modules_1_bn1_weight[] = { 12941056,12942079 }; +int RN50_layer3__modules_1_bn1_bias[] = { 12942080,12943103 }; +int RN50_layer3__modules_1_conv2_weight[] = { 12943104,15302399 }; +int RN50_layer3__modules_1_bn2_running_mean[] = { 15302400,15303423 }; +int RN50_layer3__modules_1_bn2_running_var[] = { 15303424,15304447 }; +int RN50_layer3__modules_1_bn2_weight[] = { 15304448,15305471 }; +int RN50_layer3__modules_1_bn2_bias[] = { 15305472,15306495 }; +int RN50_layer3__modules_1_conv3_weight[] = { 15306496,16355071 }; +int RN50_layer3__modules_1_bn3_running_mean[] = { 16355072,16359167 }; +int RN50_layer3__modules_1_bn3_running_var[] = { 16359168,16363263 }; +int RN50_layer3__modules_1_bn3_weight[] = { 16363264,16367359 }; +int RN50_layer3__modules_1_bn3_bias[] = { 16367360,16371455 }; +int RN50_layer3__modules_2_conv1_weight[] = { 16371456,17420031 }; +int RN50_layer3__modules_2_bn1_running_mean[] = { 17420032,17421055 }; +int RN50_layer3__modules_2_bn1_running_var[] = { 17421056,17422079 }; +int RN50_layer3__modules_2_bn1_weight[] = { 17422080,17423103 }; +int RN50_layer3__modules_2_bn1_bias[] = { 17423104,17424127 }; +int RN50_layer3__modules_2_conv2_weight[] = { 17424128,19783423 }; +int RN50_layer3__modules_2_bn2_running_mean[] = { 19783424,19784447 }; +int RN50_layer3__modules_2_bn2_running_var[] = { 19784448,19785471 }; +int RN50_layer3__modules_2_bn2_weight[] = { 19785472,19786495 }; +int RN50_layer3__modules_2_bn2_bias[] = { 19786496,19787519 }; +int RN50_layer3__modules_2_conv3_weight[] = { 19787520,20836095 }; +int RN50_layer3__modules_2_bn3_running_mean[] = { 20836096,20840191 }; +int RN50_layer3__modules_2_bn3_running_var[] = { 20840192,20844287 }; +int RN50_layer3__modules_2_bn3_weight[] = { 20844288,20848383 }; +int RN50_layer3__modules_2_bn3_bias[] = { 20848384,20852479 }; +int RN50_layer3__modules_3_conv1_weight[] = { 20852480,21901055 }; +int RN50_layer3__modules_3_bn1_running_mean[] = { 21901056,21902079 }; +int RN50_layer3__modules_3_bn1_running_var[] = { 21902080,21903103 }; +int RN50_layer3__modules_3_bn1_weight[] = { 21903104,21904127 }; +int RN50_layer3__modules_3_bn1_bias[] = { 21904128,21905151 }; +int RN50_layer3__modules_3_conv2_weight[] = { 21905152,24264447 }; +int RN50_layer3__modules_3_bn2_running_mean[] = { 24264448,24265471 }; +int RN50_layer3__modules_3_bn2_running_var[] = { 24265472,24266495 }; +int RN50_layer3__modules_3_bn2_weight[] = { 24266496,24267519 }; +int RN50_layer3__modules_3_bn2_bias[] = { 24267520,24268543 }; +int RN50_layer3__modules_3_conv3_weight[] = { 24268544,25317119 }; +int RN50_layer3__modules_3_bn3_running_mean[] = { 25317120,25321215 }; +int RN50_layer3__modules_3_bn3_running_var[] = { 25321216,25325311 }; +int RN50_layer3__modules_3_bn3_weight[] = { 25325312,25329407 }; +int RN50_layer3__modules_3_bn3_bias[] = { 25329408,25333503 }; +int RN50_layer3__modules_4_conv1_weight[] = { 25333504,26382079 }; +int RN50_layer3__modules_4_bn1_running_mean[] = { 26382080,26383103 }; +int RN50_layer3__modules_4_bn1_running_var[] = { 26383104,26384127 }; +int RN50_layer3__modules_4_bn1_weight[] = { 26384128,26385151 }; +int RN50_layer3__modules_4_bn1_bias[] = { 26385152,26386175 }; +int RN50_layer3__modules_4_conv2_weight[] = { 26386176,28745471 }; +int RN50_layer3__modules_4_bn2_running_mean[] = { 28745472,28746495 }; +int RN50_layer3__modules_4_bn2_running_var[] = { 28746496,28747519 }; +int RN50_layer3__modules_4_bn2_weight[] = { 28747520,28748543 }; +int RN50_layer3__modules_4_bn2_bias[] = { 28748544,28749567 }; +int RN50_layer3__modules_4_conv3_weight[] = { 28749568,29798143 }; +int RN50_layer3__modules_4_bn3_running_mean[] = { 29798144,29802239 }; +int RN50_layer3__modules_4_bn3_running_var[] = { 29802240,29806335 }; +int RN50_layer3__modules_4_bn3_weight[] = { 29806336,29810431 }; +int RN50_layer3__modules_4_bn3_bias[] = { 29810432,29814527 }; +int RN50_layer3__modules_5_conv1_weight[] = { 29814528,30863103 }; +int RN50_layer3__modules_5_bn1_running_mean[] = { 30863104,30864127 }; +int RN50_layer3__modules_5_bn1_running_var[] = { 30864128,30865151 }; +int RN50_layer3__modules_5_bn1_weight[] = { 30865152,30866175 }; +int RN50_layer3__modules_5_bn1_bias[] = { 30866176,30867199 }; +int RN50_layer3__modules_5_conv2_weight[] = { 30867200,33226495 }; +int RN50_layer3__modules_5_bn2_running_mean[] = { 33226496,33227519 }; +int RN50_layer3__modules_5_bn2_running_var[] = { 33227520,33228543 }; +int RN50_layer3__modules_5_bn2_weight[] = { 33228544,33229567 }; +int RN50_layer3__modules_5_bn2_bias[] = { 33229568,33230591 }; +int RN50_layer3__modules_5_conv3_weight[] = { 33230592,34279167 }; +int RN50_layer3__modules_5_bn3_running_mean[] = { 34279168,34283263 }; +int RN50_layer3__modules_5_bn3_running_var[] = { 34283264,34287359 }; +int RN50_layer3__modules_5_bn3_weight[] = { 34287360,34291455 }; +int RN50_layer3__modules_5_bn3_bias[] = { 34291456,34295551 }; +int RN50_layer4__modules_0_conv1_weight[] = { 34295552,36392703 }; +int RN50_layer4__modules_0_bn1_running_mean[] = { 36392704,36394751 }; +int RN50_layer4__modules_0_bn1_running_var[] = { 36394752,36396799 }; +int RN50_layer4__modules_0_bn1_weight[] = { 36396800,36398847 }; +int RN50_layer4__modules_0_bn1_bias[] = { 36398848,36400895 }; +int RN50_layer4__modules_0_conv2_weight[] = { 36400896,45838079 }; +int RN50_layer4__modules_0_bn2_running_mean[] = { 45838080,45840127 }; +int RN50_layer4__modules_0_bn2_running_var[] = { 45840128,45842175 }; +int RN50_layer4__modules_0_bn2_weight[] = { 45842176,45844223 }; +int RN50_layer4__modules_0_bn2_bias[] = { 45844224,45846271 }; +int RN50_layer4__modules_0_conv3_weight[] = { 45846272,50040575 }; +int RN50_layer4__modules_0_bn3_running_mean[] = { 50040576,50048767 }; +int RN50_layer4__modules_0_bn3_running_var[] = { 50048768,50056959 }; +int RN50_layer4__modules_0_bn3_weight[] = { 50056960,50065151 }; +int RN50_layer4__modules_0_bn3_bias[] = { 50065152,50073343 }; +int RN50_layer4__modules_0_downsample__modules_0_weight[] = { 50073344,58461951 }; +int RN50_layer4__modules_0_downsample__modules_1_running_mean[] = { 58461952,58470143 }; +int RN50_layer4__modules_0_downsample__modules_1_running_var[] = { 58470144,58478335 }; +int RN50_layer4__modules_0_downsample__modules_1_weight[] = { 58478336,58486527 }; +int RN50_layer4__modules_0_downsample__modules_1_bias[] = { 58486528,58494719 }; +int RN50_layer4__modules_1_conv1_weight[] = { 58494720,62689023 }; +int RN50_layer4__modules_1_bn1_running_mean[] = { 62689024,62691071 }; +int RN50_layer4__modules_1_bn1_running_var[] = { 62691072,62693119 }; +int RN50_layer4__modules_1_bn1_weight[] = { 62693120,62695167 }; +int RN50_layer4__modules_1_bn1_bias[] = { 62695168,62697215 }; +int RN50_layer4__modules_1_conv2_weight[] = { 62697216,72134399 }; +int RN50_layer4__modules_1_bn2_running_mean[] = { 72134400,72136447 }; +int RN50_layer4__modules_1_bn2_running_var[] = { 72136448,72138495 }; +int RN50_layer4__modules_1_bn2_weight[] = { 72138496,72140543 }; +int RN50_layer4__modules_1_bn2_bias[] = { 72140544,72142591 }; +int RN50_layer4__modules_1_conv3_weight[] = { 72142592,76336895 }; +int RN50_layer4__modules_1_bn3_running_mean[] = { 76336896,76345087 }; +int RN50_layer4__modules_1_bn3_running_var[] = { 76345088,76353279 }; +int RN50_layer4__modules_1_bn3_weight[] = { 76353280,76361471 }; +int RN50_layer4__modules_1_bn3_bias[] = { 76361472,76369663 }; +int RN50_layer4__modules_2_conv1_weight[] = { 76369664,80563967 }; +int RN50_layer4__modules_2_bn1_running_mean[] = { 80563968,80566015 }; +int RN50_layer4__modules_2_bn1_running_var[] = { 80566016,80568063 }; +int RN50_layer4__modules_2_bn1_weight[] = { 80568064,80570111 }; +int RN50_layer4__modules_2_bn1_bias[] = { 80570112,80572159 }; +int RN50_layer4__modules_2_conv2_weight[] = { 80572160,90009343 }; +int RN50_layer4__modules_2_bn2_running_mean[] = { 90009344,90011391 }; +int RN50_layer4__modules_2_bn2_running_var[] = { 90011392,90013439 }; +int RN50_layer4__modules_2_bn2_weight[] = { 90013440,90015487 }; +int RN50_layer4__modules_2_bn2_bias[] = { 90015488,90017535 }; +int RN50_layer4__modules_2_conv3_weight[] = { 90017536,94211839 }; +int RN50_layer4__modules_2_bn3_running_mean[] = { 94211840,94220031 }; +int RN50_layer4__modules_2_bn3_running_var[] = { 94220032,94228223 }; +int RN50_layer4__modules_2_bn3_weight[] = { 94228224,94236415 }; +int RN50_layer4__modules_2_bn3_bias[] = { 94236416,94244607 }; +int RN50_fc_weight[] = { 94244608,102436607 }; +int RN50_fc_bias[] = { 102436608,102440607 }; +int verify_input[] = { 102440608,103042719 }; +int verify_conv1[] = { 103042720,106253983 }; +int verify_bn1[] = { 106253984,109465247 }; +int verify_relu[] = { 109465248,112676511 }; +int verify_maxpool[] = { 112676512,113479327 }; +int verify_layer1[] = { 113479328,116690591 }; +int verify_layer2[] = { 116690592,118296223 }; +int verify_layer3[] = { 118296224,119099039 }; +int verify_layer4[] = { 119099040,119500447 }; +int verify_avgpool[] = { 119500448,119508639 }; +int verify_fc[] = { 119508640,119512639 }; +int input_0[] = { 119512640,120114751 }; +int output_0[] = { 120114752,120118751 }; +int input_1[] = { 120118752,120720863 }; +int output_1[] = { 120720864,120724863 }; +int input_2[] = { 120724864,121326975 }; +int output_2[] = { 121326976,121330975 }; +int input_3[] = { 121330976,121933087 }; +int output_3[] = { 121933088,121937087 }; +int input_4[] = { 121937088,122539199 }; +int output_4[] = { 122539200,122543199 }; +int input_5[] = { 122543200,123145311 }; +int output_5[] = { 123145312,123149311 }; +int input_6[] = { 123149312,123751423 }; +int output_6[] = { 123751424,123755423 }; +int input_7[] = { 123755424,124357535 }; +int output_7[] = { 124357536,124361535 }; +int input_8[] = { 124361536,124963647 }; +int output_8[] = { 124963648,124967647 }; +int input_9[] = { 124967648,125569759 }; +int output_9[] = { 125569760,125573759 }; diff --git a/CNNDemo/Resnet50.py b/CNNDemo/Resnet50.py index 8743007..1880393 100644 --- a/CNNDemo/Resnet50.py +++ b/CNNDemo/Resnet50.py @@ -69,7 +69,25 @@ ResNet50 = { "1": "BatchNorm2d", } } - } + }, + "1": { + "conv1": "Conv2d", + "bn1": "BatchNorm2d", + "conv2": "Conv2d", + "bn2": "BatchNorm2d", + "conv3": "Conv2d", + "bn3": "BatchNorm2d", + "relu": "ReLU", + }, + "2": { + "conv1": "Conv2d", + "bn1": "BatchNorm2d", + "conv2": "Conv2d", + "bn2": "BatchNorm2d", + "conv3": "Conv2d", + "bn3": "BatchNorm2d", + "relu": "ReLU", + }, } }, "layer2": {