@@ -54,6 +54,7 @@ target_link_libraries(tkDNN ${tkdnn_LIBS})
54
54
#add_library(tkDNN_static STATIC ${tkdnn_SRC})
55
55
#target_link_libraries(tkDNN_static ${tkdnn_LIBS})
56
56
57
+ # SMALL NETS
57
58
add_executable (test_simple tests/simple/test_simple.cpp )
58
59
target_link_libraries (test_simple tkDNN )
59
60
@@ -63,91 +64,43 @@ target_link_libraries(test_mnist tkDNN)
63
64
add_executable (test_mnistRT tests/mnist/test_mnistRT.cpp )
64
65
target_link_libraries (test_mnistRT tkDNN )
65
66
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 )
118
69
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 )
120
81
target_link_libraries (test_mobilenetv2ssd tkDNN )
121
82
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 )
123
84
target_link_libraries (test_bdd-mobilenetv2ssd tkDNN )
124
85
125
- add_executable (test_mobilenetv2ssd512 tests/mobilenetv2ssd512/mobilenetv2ssd512.cpp )
86
+ add_executable (test_mobilenetv2ssd512 tests/mobilenet/ mobilenetv2ssd512/mobilenetv2ssd512.cpp )
126
87
target_link_libraries (test_mobilenetv2ssd512 tkDNN )
127
88
128
- add_executable (test_resnet101 tests/resnet101/resnet101.cpp )
89
+ # BACKBONES
90
+ add_executable (test_resnet101 tests/backbones/resnet101/resnet101.cpp )
129
91
target_link_libraries (test_resnet101 tkDNN )
130
92
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 )
136
95
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 )
138
98
target_link_libraries (test_resnet101_cnet tkDNN )
139
99
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 )
144
101
target_link_libraries (test_dla34_cnet tkDNN )
145
102
146
- add_executable (test_imuodom tests/imuodom/imuodom.cpp )
147
- target_link_libraries (test_imuodom tkDNN )
148
- ################################################################################
149
-
150
-
103
+ # DEMOS
151
104
add_executable (test_rtinference tests/test_rtinference/rtinference.cpp )
152
105
target_link_libraries (test_rtinference tkDNN )
153
106
@@ -171,18 +124,3 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/cmake/" # source directory
171
124
DESTINATION "share/tkDNN/cmake/" # target directory
172
125
)
173
126
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