Skip to content

Commit d2e2669

Browse files
committed
darknet parse all net to be tested
1 parent d8fbee5 commit d2e2669

File tree

74 files changed

+550
-4930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+550
-4930
lines changed

CMakeLists.txt

+24-86
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ target_link_libraries(tkDNN ${tkdnn_LIBS})
5454
#add_library(tkDNN_static STATIC ${tkdnn_SRC})
5555
#target_link_libraries(tkDNN_static ${tkdnn_LIBS})
5656

57+
# SMALL NETS
5758
add_executable(test_simple tests/simple/test_simple.cpp)
5859
target_link_libraries(test_simple tkDNN)
5960

@@ -63,91 +64,43 @@ target_link_libraries(test_mnist tkDNN)
6364
add_executable(test_mnistRT tests/mnist/test_mnistRT.cpp)
6465
target_link_libraries(test_mnistRT tkDNN)
6566

66-
## YOLO NETS
67-
add_executable(test_yolo tests/yolo/yolo.cpp)
68-
target_link_libraries(test_yolo tkDNN)
69-
70-
add_executable(test_yolo_voc tests/yolo_voc/yolo_voc.cpp)
71-
target_link_libraries(test_yolo_voc tkDNN)
72-
73-
add_executable(test_yolo_tiny tests/yolo_tiny/yolo_tiny.cpp)
74-
target_link_libraries(test_yolo_tiny tkDNN)
75-
76-
add_executable(test_yolo_relu tests/yolo_relu/yolo_relu.cpp)
77-
target_link_libraries(test_yolo_relu tkDNN)
78-
79-
80-
add_executable(test_yolo_224 tests/yolo_224/yolo_224.cpp)
81-
target_link_libraries(test_yolo_224 tkDNN)
82-
83-
add_executable(test_yolo_berkeley tests/yolo_berkeley/yolo_berkeley.cpp)
84-
target_link_libraries(test_yolo_berkeley tkDNN)
85-
86-
add_executable(test_yolo3_coco4 tests/yolo3_coco4/yolo3_coco4.cpp)
87-
target_link_libraries(test_yolo3_coco4 tkDNN)
88-
89-
add_executable(test_yolo3 tests/yolo3/yolo3.cpp)
90-
target_link_libraries(test_yolo3 tkDNN)
91-
92-
add_executable(test_yolo3_512 tests/yolo3_512/yolo3_512.cpp)
93-
target_link_libraries(test_yolo3_512 tkDNN)
94-
95-
add_executable(test_yolo3_512tp tests/yolo3_512tp/yolo3_512tp.cpp)
96-
target_link_libraries(test_yolo3_512tp tkDNN)
97-
98-
add_executable(test_yolo3_tiny tests/yolo3_tiny/yolo3_tiny.cpp)
99-
target_link_libraries(test_yolo3_tiny tkDNN)
100-
101-
add_executable(test_yolo3_tiny512 tests/yolo3_tiny512/yolo3_tiny512.cpp)
102-
target_link_libraries(test_yolo3_tiny512 tkDNN)
103-
104-
add_executable(test_yolo3_tinyNM512 tests/yolo3_tinyNM512/yolo3_tinyNM512.cpp)
105-
target_link_libraries(test_yolo3_tinyNM512 tkDNN)
106-
107-
add_executable(test_yolo3_tiny512tp tests/yolo3_tiny512tp/yolo3_tiny512tp.cpp)
108-
target_link_libraries(test_yolo3_tiny512tp tkDNN)
109-
110-
add_executable(test_yolo3_berkeley tests/yolo3_berkeley/yolo3_berkeley.cpp)
111-
target_link_libraries(test_yolo3_berkeley tkDNN)
112-
113-
add_executable(test_yolo3_flir tests/yolo3_flir/yolo3_flir.cpp)
114-
target_link_libraries(test_yolo3_flir tkDNN)
115-
116-
add_executable(test_yolo4 tests/yolo4/yolo4.cpp)
117-
target_link_libraries(test_yolo4 tkDNN)
67+
add_executable(test_imuodom tests/imuodom/imuodom.cpp)
68+
target_link_libraries(test_imuodom tkDNN)
11869

119-
add_executable(test_mobilenetv2ssd tests/mobilenetv2ssd/mobilenetv2ssd.cpp)
70+
# DARKNET
71+
file(GLOB darknet_SRC "tests/darknet/*.cpp")
72+
foreach(test_SRC ${darknet_SRC})
73+
get_filename_component(test_NAME "${test_SRC}" NAME_WE)
74+
set(test_NAME test_${test_NAME})
75+
add_executable(${test_NAME} ${test_SRC})
76+
target_link_libraries(${test_NAME} tkDNN)
77+
endforeach()
78+
79+
# MOBILENET
80+
add_executable(test_mobilenetv2ssd tests/mobilenet/mobilenetv2ssd/mobilenetv2ssd.cpp)
12081
target_link_libraries(test_mobilenetv2ssd tkDNN)
12182

122-
add_executable(test_bdd-mobilenetv2ssd tests/bdd-mobilenetv2ssd/bdd-mobilenetv2ssd.cpp)
83+
add_executable(test_bdd-mobilenetv2ssd tests/mobilenet/bdd-mobilenetv2ssd/bdd-mobilenetv2ssd.cpp)
12384
target_link_libraries(test_bdd-mobilenetv2ssd tkDNN)
12485

125-
add_executable(test_mobilenetv2ssd512 tests/mobilenetv2ssd512/mobilenetv2ssd512.cpp)
86+
add_executable(test_mobilenetv2ssd512 tests/mobilenet/mobilenetv2ssd512/mobilenetv2ssd512.cpp)
12687
target_link_libraries(test_mobilenetv2ssd512 tkDNN)
12788

128-
add_executable(test_resnet101 tests/resnet101/resnet101.cpp)
89+
# BACKBONES
90+
add_executable(test_resnet101 tests/backbones/resnet101/resnet101.cpp)
12991
target_link_libraries(test_resnet101 tkDNN)
13092

131-
add_executable(test_csresnext50-panet-spp tests/csresnext50-panet-spp/csresnext50-panet-spp.cpp)
132-
target_link_libraries(test_csresnext50-panet-spp tkDNN)
133-
134-
add_executable(test_bdd-csresnext50-panet-spp tests/bdd-csresnext50-panet-spp/bdd-csresnext50-panet-spp.cpp)
135-
target_link_libraries(test_bdd-csresnext50-panet-spp tkDNN)
93+
add_executable(test_dla34 tests/backbones/dla34/dla34.cpp)
94+
target_link_libraries(test_dla34 tkDNN)
13695

137-
add_executable(test_resnet101_cnet tests/resnet101_cnet/resnet101_cnet.cpp)
96+
# CENTERNET
97+
add_executable(test_resnet101_cnet tests/centernet/resnet101_cnet/resnet101_cnet.cpp)
13898
target_link_libraries(test_resnet101_cnet tkDNN)
13999

140-
add_executable(test_dla34 tests/dla34/dla34.cpp)
141-
target_link_libraries(test_dla34 tkDNN)
142-
143-
add_executable(test_dla34_cnet tests/dla34_cnet/dla34_cnet.cpp)
100+
add_executable(test_dla34_cnet tests/centernet/dla34_cnet/dla34_cnet.cpp)
144101
target_link_libraries(test_dla34_cnet tkDNN)
145102

146-
add_executable(test_imuodom tests/imuodom/imuodom.cpp)
147-
target_link_libraries(test_imuodom tkDNN)
148-
################################################################################
149-
150-
103+
# DEMOS
151104
add_executable(test_rtinference tests/test_rtinference/rtinference.cpp)
152105
target_link_libraries(test_rtinference tkDNN)
153106

@@ -171,18 +124,3 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/cmake/" # source directory
171124
DESTINATION "share/tkDNN/cmake/" # target directory
172125
)
173126

174-
175-
#-------------------------------------------------------------------------------
176-
# Prepare for test (not needed anymore)
177-
#-------------------------------------------------------------------------------
178-
#set(TEST_DATA true CACHE BOOL "If true download deps")
179-
#if( ${TEST_DATA} )
180-
# message("Launching pre-build dependency installer script...")
181-
#
182-
# execute_process (COMMAND bash -c "bash build_models.sh download"
183-
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests)
184-
#
185-
# set(TEST_DATA false CACHE BOOL "If true download deps" FORCE)
186-
# message("Finished dowloading test weights")
187-
#endif()
188-

0 commit comments

Comments
 (0)