Skip to content

error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\layers\convolution_layer.cpp:396: error: (-2:Unspecified error) Number of input channels should be multiple of 3 but got 4 in function 'cv::dnn::ConvolutionLayerImpl::getMemoryShapes' #1011

@XZH2024

Description

@XZH2024

(Translated using DeepL)

Expected behaviour

Normal output.

Actual behaviour

After Auto Focus Cropping is enabled
Click the "Generate" button
error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\layers\convolution_layer.cpp:396: error: (-2:Unspecified error) Number of input channels should be multiple of 3 but got 4 in function 'cv::dnn::ConvolutionLayerImpl::getMemoryShapes'
image

Steps to reproduce

  • Windows 10
  • x86
  • 4.9.0.80
Issue submission checklist
  • [√] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • [ √] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • [?] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • [×] I'm using the latest version of opencv-python
    Version 4.10.0.84 also doesn't work and doesn't report any error messages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions