Alexander Alekhin [Tue, 21 Sep 2021 15:27:48 +0000 (15:27 +0000)]
Merge pull request #20713 from SamFC10:unsqueeze-opset13
SamFC10 [Fri, 17 Sep 2021 12:10:57 +0000 (17:40 +0530)]
fix for unsqueeze opset version 13
Alexander Alekhin [Thu, 16 Sep 2021 17:11:32 +0000 (17:11 +0000)]
Merge pull request #20699 from alalek:dnn_perf_update_convolution_tests
rogday [Tue, 14 Sep 2021 17:49:49 +0000 (20:49 +0300)]
Merge pull request #20671 from rogday:yolov4x-mish
Add support for YOLOv4x-mish
* backport to 3.4 for supporting yolov4x-mish
* add YOLOv4x-mish test
* address review comments
Co-authored-by: Guo Xu <guoxu@1school.com.cn>
Alexander Alekhin [Tue, 14 Sep 2021 17:17:53 +0000 (17:17 +0000)]
Merge pull request #20700 from alalek:cmake_fix_handling_ie_version
Alexander Alekhin [Tue, 14 Sep 2021 08:59:35 +0000 (08:59 +0000)]
Merge pull request #20692 from sturkmen72:update_convexhull_cpp
Alexander Alekhin [Tue, 14 Sep 2021 04:15:35 +0000 (04:15 +0000)]
cmake: fix handling of INF_ENGINE_RELEASE
- default value should be handled earlier
Alexander Panov [Mon, 13 Sep 2021 16:27:00 +0000 (19:27 +0300)]
Merge pull request #20676 from AleksandrPanov:delete_createConvexHull_convertTo
* deleted dublicated createConvexHull and convertTo
* replaced checkVector(2) with points.empty()
Alexander Alekhin [Sun, 12 Sep 2021 11:09:51 +0000 (11:09 +0000)]
Merge pull request #20693 from alalek:backport_merge34_fix
Alexander Alekhin [Sat, 11 Sep 2021 22:26:52 +0000 (22:26 +0000)]
dnn(onnx): fix format specifier
Suleyman TURKMEN [Sat, 11 Sep 2021 19:58:45 +0000 (22:58 +0300)]
Update convexhull.cpp
Alexander Alekhin [Sat, 11 Sep 2021 16:26:51 +0000 (16:26 +0000)]
Merge pull request #20690 from alalek:build_opencv_winpack_dldt_2021.4.1
Alexander Alekhin [Sat, 11 Sep 2021 16:26:25 +0000 (16:26 +0000)]
Merge pull request #20687 from alalek:core_ocl_fix_intel_gemm
Alexander Alekhin [Sat, 11 Sep 2021 16:25:04 +0000 (19:25 +0300)]
Merge pull request #20686 from zihaomu:tf_biasadd_bug
DNN: BiasAdd tf_importer.cpp could load Const from First Place
Zihao Mu [Fri, 10 Sep 2021 10:15:22 +0000 (18:15 +0800)]
BiasAdd could load Const from second place.
Alexander Alekhin [Fri, 10 Sep 2021 20:58:37 +0000 (20:58 +0000)]
build: winpack_dldt with dldt 2021.4.1
Alexander Alekhin [Fri, 10 Sep 2021 22:26:36 +0000 (22:26 +0000)]
Merge pull request #20689 from diablodale:fix20613-selectocldevice
Dale Phurrough [Fri, 10 Sep 2021 15:59:56 +0000 (17:59 +0200)]
fix opencv/opencv#20613
* copy 4.x selectOpenCLDevice() -- it is compatible
* filter platforms rather than trying only first matching
* this works on 3.4 and 4.x master
Alexander Alekhin [Fri, 10 Sep 2021 12:42:28 +0000 (12:42 +0000)]
dnn(perf): update convolution tests
Alexander Alekhin [Tue, 7 Sep 2021 04:39:28 +0000 (04:39 +0000)]
core(ocl): buffer bounds in intelblas_gemm_buffer_NT
Alexander Alekhin [Fri, 10 Sep 2021 12:00:11 +0000 (15:00 +0300)]
Merge pull request #20670 from alalek:core_ocl_fix_intel_gpu_gemm_requirements
core(OpenCL): fix intel_gpu_gemm kernel requirements
* core(ocl): fix intel_gpu_gemm integration
- allow bailout to generic OpenCL kernel
* core(ocl): avoid failures of generic OpenCL gemm kernel
* core(ocl): define alignment requirements of intel_gpu_gemm kernels
Alexander Alekhin [Fri, 10 Sep 2021 11:58:52 +0000 (11:58 +0000)]
Merge pull request #20661 from alalek:dnn_ocl_fix_gemm_like_kernel
rogday [Fri, 10 Sep 2021 11:07:16 +0000 (14:07 +0300)]
Merge pull request #20674 from rogday:prelu_slope
Fix PReLU negative slope access pattern
* fix prelu negative slope access pattern
* change begin() to ptr()
Alexander Alekhin [Thu, 9 Sep 2021 21:35:02 +0000 (21:35 +0000)]
Merge pull request #20675 from diablodale:fix2-20544
Dale Phurrough [Thu, 9 Sep 2021 13:20:45 +0000 (15:20 +0200)]
add nodiscard to features2d clone funcs
rogday [Thu, 9 Sep 2021 11:41:40 +0000 (14:41 +0300)]
Merge pull request #20605 from rogday:split_slice_shenanigans
Add Normalize subgraph, fix Slice, Mul and Expand
* Add Normalize subgraph, support for starts<0 and axis<0 in Slice, Mul broadcasting in the middle and fix Expand's unsqueeze
* remove todos
* remove range-based for loop
* address review comments
* change >> to > > in template
* fix indexation
* fix expand that does nothing
Alexander Alekhin [Mon, 6 Sep 2021 02:51:37 +0000 (05:51 +0300)]
dnn(ocl): fix out of bound access in GEMM-like kernels
- dropped usage of CreateSubBuffer() - buffers lifetime management issue
- fixed elementwise offset
- avoid out of bounds read access
Alexander Alekhin [Mon, 6 Sep 2021 17:20:18 +0000 (17:20 +0000)]
Merge pull request #20655 from alalek:dnn_ocl_fix_globalsize
Alexander Alekhin [Mon, 6 Sep 2021 11:31:35 +0000 (11:31 +0000)]
Merge pull request #20657 from zchrissirhcz:upd-doc-for-py_fast
Zhuo Zhang [Mon, 6 Sep 2021 04:03:59 +0000 (12:03 +0800)]
docs: fix image path for py_fast doc
Alexander Alekhin [Sat, 4 Sep 2021 16:27:51 +0000 (16:27 +0000)]
dnn(ocl): fix automatic globalsize adjusting
- if kernel code doesn't support that
Alexander Alekhin [Sat, 4 Sep 2021 18:23:09 +0000 (18:23 +0000)]
Merge pull request #20652 from alalek:ocl_debug
Alexander Alekhin [Sat, 4 Sep 2021 18:22:12 +0000 (18:22 +0000)]
Merge pull request #20651 from alalek:issue_18361
Alexander Alekhin [Sat, 4 Sep 2021 18:21:58 +0000 (18:21 +0000)]
Merge pull request #20648 from alalek:issue_20615
Alexander Alekhin [Fri, 3 Sep 2021 02:38:53 +0000 (02:38 +0000)]
dnn(ocl): avoid out of buffer access in copyWeightsSwizzled
Alexander Alekhin [Sat, 4 Sep 2021 01:34:02 +0000 (01:34 +0000)]
core(ocl): debug capabilities
Alexander Alekhin [Sat, 4 Sep 2021 04:35:00 +0000 (04:35 +0000)]
dnn(ocl): fix buffer offsets in IDLF kernel
- drop CreateSubBuffer
- fix FUSED_CONV_ELTWISE mode
rogday [Fri, 3 Sep 2021 12:32:29 +0000 (15:32 +0300)]
Merge pull request #20647 from rogday:resize_concat_optimization
Fix resize+concat optimization
* fix resize+concat optimization
* add comment and fix indentation
Alexander Alekhin [Thu, 2 Sep 2021 09:30:56 +0000 (09:30 +0000)]
Merge pull request #20646 from VadimLevin:dev/vlevin/fix-vector-conversion
Vadim Levin [Thu, 2 Sep 2021 07:32:17 +0000 (10:32 +0300)]
fix: NumPy array allocation error message in vector conversion
Alexander Alekhin [Wed, 1 Sep 2021 14:09:17 +0000 (14:09 +0000)]
Merge pull request #20573 from rogday:onnx_scale_fix
Alexander Alekhin [Wed, 1 Sep 2021 10:52:37 +0000 (10:52 +0000)]
Merge pull request #20618 from VadimLevin:dev/vlevin/fix-vector-conversion
WJJ1995 [Wed, 1 Sep 2021 10:10:05 +0000 (18:10 +0800)]
Merge pull request #20511 from wjj19950828:add_humanseg_support_0806
* support PPSeg model for dnn module
* fixed README for CI
* add test case
* fixed bug
* deal with comments
* rm dnn_model_runner
* update test case
* fixed bug for testcase
* update testcase
Vadim Levin [Fri, 27 Aug 2021 12:01:09 +0000 (15:01 +0300)]
feat: update conversion logic for `std::vector<T>` in Python bindings
`PyObject*` to `std::vector<T>` conversion logic:
- If user passed Numpy Array
- If array is planar and T is a primitive type (doesn't require
constructor call) that matches with the element type of array, then
copy element one by one with the respect of the step between array
elements. If compiler is lucky (or brave enough) copy loop can be
vectorized.
For classes that require constructor calls this path is not
possible, because we can't begin an object lifetime without hacks.
- Otherwise fall-back to general case
- Otherwise - execute the general case:
If PyObject* corresponds to Sequence protocol - iterate over the
sequence elements and invoke the appropriate `pyopencv_to` function.
`std::vector<T>` to `PyObject*` conversion logic:
- If `std::vector<T>` is empty - return empty tuple.
- If `T` has a corresponding `Mat` `DataType` than return
Numpy array instance of the matching `dtype` e.g.
`std::vector<cv::Rect>` is returned as `np.ndarray` of shape `Nx4` and
`dtype=int`.
This branch helps to optimize further evaluations in user code.
- Otherwise - execute the general case:
Construct a tuple of length N = `std::vector::size` and insert
elements one by one.
Unnecessary functions were removed and code was rearranged to allow
compiler select the appropriate conversion function specialization.
Alexander Alekhin [Tue, 31 Aug 2021 14:42:20 +0000 (14:42 +0000)]
Merge pull request #20635 from alalek:issue_20559
Alexander Alekhin [Mon, 30 Aug 2021 20:40:14 +0000 (20:40 +0000)]
dnn(ocl): drop CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE check
- it is a hint and it should not block kernel execution
Alexander Alekhin [Mon, 30 Aug 2021 18:09:51 +0000 (18:09 +0000)]
Merge pull request #20622 from diablodale:fix20544-nodiscard
Alexander Alekhin [Mon, 30 Aug 2021 13:39:44 +0000 (13:39 +0000)]
Merge pull request #20633 from alalek:ocl_dumpValue_handle_null
Alexander Alekhin [Mon, 30 Aug 2021 11:46:14 +0000 (11:46 +0000)]
core(ocl): handle NULL in dumpValue() debug call
- NULL is used for allocation of workgroup local variables
Alexander Alekhin [Sat, 28 Aug 2021 21:24:02 +0000 (21:24 +0000)]
Merge pull request #20625 from alalek:fix_msvc_warnings
Dale Phurrough [Fri, 27 Aug 2021 23:12:44 +0000 (01:12 +0200)]
fix opencv/opencv#20544 nodiscard for msvc/gcc
- includes workaround for preprocessor non-compliance
- enable attribute syntax checking in msvc
Alexander Alekhin [Sat, 28 Aug 2021 17:11:26 +0000 (17:11 +0000)]
build: eliminate build warnings
Alexander Alekhin [Sat, 28 Aug 2021 13:23:33 +0000 (13:23 +0000)]
Merge pull request #20623 from alalek:fix_java_byte
Alexander Alekhin [Sat, 28 Aug 2021 01:28:34 +0000 (01:28 +0000)]
java(test): avoid deprecation warning
- 'new Byte' => 'Byte.valueOf'
Alexander Alekhin [Fri, 27 Aug 2021 23:42:24 +0000 (23:42 +0000)]
Merge pull request #20609 from vrabaud:3.4
Vincent Rabaud [Thu, 26 Aug 2021 07:46:25 +0000 (09:46 +0200)]
Do not use deprecated ReleaseCleared in protobuf library.
This is to make code work with protobuf arenas for memory
management (ReleaseCleared is incompatible).
The cleaning of the memory is also simpler.
Alexander Alekhin [Wed, 25 Aug 2021 22:13:43 +0000 (22:13 +0000)]
Merge pull request #20602 from diablodale:fix20594-refcounts-wiith-exceptions
Dale Phurrough [Tue, 24 Aug 2021 16:56:25 +0000 (18:56 +0200)]
fix opencv/opencv#20594 - exception handling with refcounts
Dale Phurrough [Tue, 24 Aug 2021 18:06:36 +0000 (20:06 +0200)]
add test case
Alexander Alekhin [Sat, 21 Aug 2021 17:22:58 +0000 (17:22 +0000)]
Merge pull request #20586 from alalek:issue_20585
Alexander Alekhin [Sat, 21 Aug 2021 16:04:13 +0000 (16:04 +0000)]
dnn(ocl): fix top initialization in verifyResult
Alexander Alekhin [Fri, 20 Aug 2021 11:36:38 +0000 (11:36 +0000)]
Merge pull request #20581 from alalek:issue_20571
Alexander Panov [Fri, 20 Aug 2021 10:57:05 +0000 (13:57 +0300)]
Merge pull request #20564 from AleksandrPanov:update_kalman_sample
Update kalman sample
* updated view and comments, fixed dims
* updated view and comments, added statePost
Alexander Alekhin [Fri, 20 Aug 2021 08:10:18 +0000 (08:10 +0000)]
Merge pull request #20556 from rogday:onnx_split_sum_fix
Alexander Alekhin [Thu, 19 Aug 2021 20:06:41 +0000 (20:06 +0000)]
cmake: handle empty CVPY_SUFFIX
Alexander Alekhin [Thu, 19 Aug 2021 14:54:02 +0000 (14:54 +0000)]
Merge pull request #20386 from vrabaud:3.4
Vincent Rabaud [Fri, 9 Jul 2021 22:21:52 +0000 (00:21 +0200)]
Use the one argument version of SetTotalBytesLimit.
The two argument versions has been deprecated, cf
https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream
Smirnov Egor [Wed, 18 Aug 2021 15:37:35 +0000 (18:37 +0300)]
fix hasDynamicShapes for batch_size and fix axis selection in Scale layer
Smirnov Egor [Mon, 16 Aug 2021 12:44:54 +0000 (15:44 +0300)]
fix Split partial sum
Julia Bareeva [Fri, 13 Aug 2021 12:41:00 +0000 (15:41 +0300)]
Merge pull request #20506 from JulieBar:lstm_activations
* Support activations(Sigmoid, Tanh) for LSTM
* fix warning
Alexander Alekhin [Fri, 13 Aug 2021 10:06:55 +0000 (10:06 +0000)]
Merge pull request #20525 from SamFC10:fix-prior-variances
Iyad Ahmed [Thu, 12 Aug 2021 16:51:02 +0000 (16:51 +0000)]
Merge pull request #20541 from iyadahmed:video_capture_timeout_prop
* VideoCapture timeout set/get
* Common formatting for enum values
* Fix enum values wrongly in videoio.hpp
* Define timeout enum values in public api and align with master
Alexander Alekhin [Thu, 12 Aug 2021 15:13:21 +0000 (15:13 +0000)]
Merge pull request #20545 from AleksandrPanov:resize_docummentation
AleksandrPanov [Thu, 12 Aug 2021 11:40:40 +0000 (14:40 +0300)]
add note about Python's dsize to doc
Alexander Alekhin [Thu, 12 Aug 2021 08:12:48 +0000 (08:12 +0000)]
Merge pull request #20515 from utibenkei:fix_java_ml_testSaveLoad
Alexander Alekhin [Wed, 11 Aug 2021 17:56:33 +0000 (17:56 +0000)]
Merge pull request #20533 from AleksandrPanov:minAreaRect_fix_rotatingCalipers
AleksandrPanov [Wed, 11 Aug 2021 16:08:52 +0000 (19:08 +0300)]
fix choose minimum angle in rotatingCalipers
utibenkei [Sat, 7 Aug 2021 16:08:31 +0000 (01:08 +0900)]
fix testSaveLoad
Alexander Alekhin [Tue, 10 Aug 2021 22:18:17 +0000 (22:18 +0000)]
Merge pull request #20466 from rogday:efficientnet_fix_34
Alexander Alekhin [Tue, 10 Aug 2021 17:21:32 +0000 (17:21 +0000)]
Merge pull request #20500 from AleksandrPanov:findContours_documentation
AleksandrPanov [Tue, 10 Aug 2021 15:53:28 +0000 (18:53 +0300)]
add 19769 and 19769_lightweight tests
Smirnov Egor [Mon, 9 Aug 2021 10:28:33 +0000 (13:28 +0300)]
add Max layer to TFImporter
SamFC10 [Mon, 9 Aug 2021 06:38:55 +0000 (12:08 +0530)]
fix bug in prior-box variances
Alexander Alekhin [Fri, 6 Aug 2021 07:09:26 +0000 (07:09 +0000)]
Merge pull request #20505 from AleksandrPanov:contours_tutorial_documentation
Alexander Alekhin [Fri, 6 Aug 2021 07:06:51 +0000 (07:06 +0000)]
Merge pull request #20502 from ddacw:3.4
Julia Bareeva [Thu, 5 Aug 2021 15:13:17 +0000 (18:13 +0300)]
Merge pull request #20480 from JulieBar:lstm_pytest
Add Python's test for LSTM layer
* Add Python's test for LSTM layer
* Set different test threshold for FP16 target
* rename test to test_input_3d
Co-authored-by: Julie Bareeva <julia.bareeva@xperience.ai>
AleksandrPanov [Thu, 5 Aug 2021 11:21:34 +0000 (14:21 +0300)]
add links in python and js contours tutorial
Abhinav Sharma [Wed, 4 Aug 2021 17:28:59 +0000 (22:58 +0530)]
Merge pull request #20493 from abhi-bhatra:patch-1
Fix Broken Link
* Update README.md
Fix broken link
* Update Readme.txt
* Update readme.txt
Add missing link
* Update readme.txt
Fix names
Duong Dac [Wed, 4 Aug 2021 13:17:25 +0000 (15:17 +0200)]
Avoid adding false UMat/GpuMat declaration
AleksandrPanov [Wed, 4 Aug 2021 12:37:20 +0000 (15:37 +0300)]
add note about hierarchy in python version
Alexander Alekhin [Tue, 3 Aug 2021 12:06:46 +0000 (12:06 +0000)]
Merge pull request #20487 from AleksandrPanov:traincascade_documentation
AleksandrPanov [Mon, 2 Aug 2021 15:41:53 +0000 (18:41 +0300)]
add note about using version 3.4 to traincascade documentation
Alexander Alekhin [Mon, 2 Aug 2021 08:09:55 +0000 (08:09 +0000)]
Merge pull request #20485 from VadimLevin:dev/vlevin/fix-reserved-python-keyword-arguments
Alexander Alekhin [Sun, 1 Aug 2021 14:22:09 +0000 (14:22 +0000)]
Merge pull request #20451 from kumar-mahendra:patch-1
Vadim Levin [Sun, 1 Aug 2021 08:59:16 +0000 (11:59 +0300)]
fix: convert arguments names that are keywords reserved by Python
Mahendra Kumar [Fri, 23 Jul 2021 11:14:48 +0000 (16:44 +0530)]
Closing brackets missing
In line 94, closing brackets are added which were missing .
rogday [Wed, 28 Jul 2021 15:06:24 +0000 (18:06 +0300)]
Merge pull request #20453 from rogday:onnx_importer_fix
Split layer dispatch into functions in ONNXImporter
* split layer dispatch into functions
* fixes
* identation and comment fixes
* fix constness
Alexander Alekhin [Mon, 26 Jul 2021 09:57:44 +0000 (09:57 +0000)]
Merge pull request #20459 from xerxesb:bugfix/cuda-cmake-typo
Xerxes Battiwalla [Mon, 26 Jul 2021 04:54:27 +0000 (14:54 +1000)]
Fixed typo in error message in OpenCVDetectCUDA.cmake
There was a minor typo in the FATAL error message when the specified CUDA generation does not match any known generation
Alexander Alekhin [Sat, 24 Jul 2021 15:28:01 +0000 (15:28 +0000)]
Merge pull request #20424 from sbajtl:worker-importscript-bugfix