Skip to content

Running with error for can't read ONNX file #5

@yunlianwangluo

Description

@yunlianwangluo

After following steps for setting up project. every thing just looks fine, but when I try to run it, error happened:
dnn::readNet_12() : OpenCV(4.10.0-dev) C:\Users\satoo\Desktop\opencv\modules\dnn\src\onnx\onnx_importer.cpp:277: error: (-5:Bad argument) Can't read ONNX file: C:/Users/David/YOLOv8WithOpenCVForUnityExample/Assets/StreamingAssets\YOLOv8WithOpenCVForUnityExample/yolov8n-seg.onnx in function 'cv::dnn::dnn4_v20240521::ONNXImporter::ONNXImporter'

And I had checked with the directory path, the file do exist and the file attributes are all good for anyone accessing.

Any idea for solving this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions