Dr. Uwe Köhler

Results 59 comments of Dr. Uwe Köhler

Hmm, found it and did a speed test. net.enableWinograd(false) makes it faster ???? It returns to the 4.5.2 speed. The first memory test is still running

For the currently running test on a AMD EPIC 7302P virtual machine with AVX2 enabled. It slows down from 1.368 s to 4.351 s. In my recent speed tests I...

net.enableWinograd(false) still leaks memory and uses therefore about twice as much as version 4.5.2. I do not consider this an optimization case, but a serious bug. ``` GB 2.213^ :...

@zihaomu find the code and models in this issue: https://github.com/opencv/opencv/issues/23982 or even better here: https://github.com/opencv/opencv/issues/24041 I am currently checking the YOLO3 model with net.enableWinograd(false), but valgrind takes ages ...

@zihaomu: Here is the RAM graph for the YOLO3 code shown above with net.enableWinograd(false): ``` MB 793.6^ : | :##:::@:::::::::::::::::::::@@:::::::::::::::@:::::::: | @:# :::@::: :: :: :: :: :: ::@ ::...

Hi @zihaomu , I do not think the while loop in necessary. I would only run through that once and see accumulating memory usage. Looks like memory is not cleaned...

As you can see from the graphs, that behaviour changed from version 4.5.2. The drastic increase in memory usage poses a big problem. The memory usage is not increasing when...

@zihaomu , sorry for not specifying here: ``` googlenetNet.setPreferableBackend(cv::dnn::DNN_BACKEND_OPENCV); googlenetNet.setPreferableTarget(cv::dnn::DNN_TARGET_CPU); ``` This is the only platform we target for inference, sorry.

Again, still a bug. Your test is not testing the problem at all. The memory is wasted while running several nets the first time not one net lots of times.