Sunyouteng / Darknet_weights_pruningv2

Based on https://github.com/AlexeyAB, a tool to prune Darkent weights
Other
3 stars 3 forks source link

Can you give out the steps to prune yoloV2 and yoloV3 in ubuntu 18.04 #2

Open Abrahamma97 opened 4 years ago

Abrahamma97 commented 4 years ago

Can you give out the steps to prune yoloV2 and yoloV3 in ubuntu 18.04 #2

Abrahamma97 commented 4 years ago

gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/crop_layer.c -o obj/crop_layer.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/dropout_layer.c -o obj/dropout_layer.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/maxpool_layer.c -o obj/maxpool_layer.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/softmax_layer.c -o obj/softmax_layer.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/data.c -o obj/data.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/matrix.c -o obj/matrix.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/network.c -o obj/network.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/connected_layer.c -o obj/connected_layer.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/cost_layer.c -o obj/cost_layer.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/parser.c -o obj/parser.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/option_list.c -o obj/option_list.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/darknet.c -o obj/darknet.o ./src/option_list.c: In function ‘get_metadata’: ./src/option_list.c:46:19: warning: implicit declaration of function ‘get_labels’ [-Wimplicit-function-declaration] m.names = get_labels(name_list); ^ ./src/option_list.c:46:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion] m.names = get_labels(name_list); ^ gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/detection_layer.c -o obj/detection_layer.o gcc -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -Ofast -c ./src/captcha.c -o obj/captcha.o ./src/darknet.c: In function ‘main’: ./src/darknet.c:361:2: error: too many arguments to function ‘test_detector’ test_detector("cfg/coco.data", CONFGFILE, WEIGHTFILE, FILENAME, thresh, .5, 0, 1); ^ compilation terminated due to -Wfatal-errors. Makefile:130: recipe for target 'obj/darknet.o' failed make: [obj/darknet.o] Error 1 make: Waiting for unfinished jobs....

I am getting this error while making