"tests/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "d13b0d63c0208f2c4c078c4261caf8bf587beb3b"
Commit b1cc435c authored by Davis King's avatar Davis King
Browse files

merged

parents 1cff4030 d21927bc
...@@ -360,7 +360,8 @@ namespace dlib ...@@ -360,7 +360,8 @@ namespace dlib
{ {
const unsigned long num_separable_filters = w.num_separable_filters(); const unsigned long num_separable_filters = w.num_separable_filters();
rectangle area; rectangle area;
if (num_separable_filters > 31*3) // use the separable filters if they would be faster than running the regular filters.
if (num_separable_filters > 31*std::min(w.filters[0].nr(),w.filters[0].nc())/3.0)
{ {
area = spatially_filter_image(feats[0], saliency_image, w.filters[0]); area = spatially_filter_image(feats[0], saliency_image, w.filters[0]);
for (unsigned long i = 1; i < w.filters.size(); ++i) for (unsigned long i = 1; i < w.filters.size(); ++i)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment