Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCV E:\vcpkg\buildtrees\opencv4\src\4.10.0-e5bca385b2.clean\modules\dnn\src\net_impl_fuse.cpp:608: error: (-215:Assertion failed) biasLayerData->outputBlobsWrappers.size() == 1 in function 'cv::dnn::dnn4_v20240521::Net::Impl::fuseLayers'\n" } #647

Open
1mZ1kk4d0 opened this issue Dec 26, 2024 · 0 comments

Comments

@1mZ1kk4d0
Copy link

1mZ1kk4d0 commented Dec 26, 2024

Window not found.
CUDA is enabled!
Loading ONNX model
thread 'main' panicked at src\testes\detect_image.rs:72:43:
called Result::unwrap() on an Err value: Error { code: "StsAssert, -215", message: "OpenCV(4.10.0) E:\vcpkg\buildtrees\opencv4\src\4.10.0-e5bca385b2.clean\modules\dnn\src\net_impl_fuse.cpp:608: error: (-215:Assertion failed) biasLayerData->outputBlobsWrappers.size() == 1 in function 'cv::dnn::dnn4_v20240521::Net::Impl::fuseLayers'\n" }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

    let mut net = get_mutable_model();

    let input_blob = dnn::blob_from_image(
        mat,
        1.0 / 255.0,
        Size::new(640, 640),    
        opencv::core::Scalar::default(),
        false,
        false,                  
        opencv::core::CV_32F
    )?;

    net.set_input(&input_blob, "images", 1.0, Scalar::default())?;

    let out_layers = net.get_unconnected_out_layers_names()?;
    let mut output = Mat::default();
    
    net.forward(&mut output, &out_layers).unwrap();
@1mZ1kk4d0 1mZ1kk4d0 changed the title opencv via vcpkg with cuda support giving switch to cpu. OpenCV E:\vcpkg\buildtrees\opencv4\src\4.10.0-e5bca385b2.clean\modules\dnn\src\net_impl_fuse.cpp:608: error: (-215:Assertion failed) biasLayerData->outputBlobsWrappers.size() == 1 in function 'cv::dnn::dnn4_v20240521::Net::Impl::fuseLayers'\n" } Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant