Skip to content

Unknown layer type: "sam" layer #18988

@arnaud-nt2i

Description

@arnaud-nt2i
System information (version)
  • OpenCV => 4.5.0 with DNN and Cuda support
  • Operating System / Platform => Windows 10 64 Bit
  • Compiler => Visual Studio 2017
Detailed description

While trying to use this C++ code : https://gist.github.com/YashasSamaga/e2b19a6807a13046e399f4bc3cca3a49
I got an error :
OpenCV(4.5.0) Error: Parsing error (Unknown layer type: sam) in cv::dnn::darknet::ReadDarknetFromCfgStream, file C:\opencv-4.5.0\modules\dnn\src\darknet\darknet_io.cpp, line 865

There is indeed some SAM layers in my .cfg, is there a way to use OpenCV DNN without retraining the network without sam layers?
Any forks with sam layer support?

Steps to reproduce

Yolov4-sam-mish.cfg

relates: AlexeyAB/darknet#5891

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions