mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Improved speed of yolo_console_dll.cpp - 40 FPS on 4K using GeForce GTX 960
This commit is contained in:
@ -109,11 +109,11 @@ YOLODLL_API Detector::~Detector()
|
||||
#endif
|
||||
}
|
||||
|
||||
YOLODLL_API int Detector::get_net_width() {
|
||||
YOLODLL_API int Detector::get_net_width() const {
|
||||
detector_gpu_t &detector_gpu = *reinterpret_cast<detector_gpu_t *>(detector_gpu_ptr.get());
|
||||
return detector_gpu.net.w;
|
||||
}
|
||||
YOLODLL_API int Detector::get_net_height() {
|
||||
YOLODLL_API int Detector::get_net_height() const {
|
||||
detector_gpu_t &detector_gpu = *reinterpret_cast<detector_gpu_t *>(detector_gpu_ptr.get());
|
||||
return detector_gpu.net.h;
|
||||
}
|
||||
|
Reference in New Issue
Block a user