I'm trying to add a connected layer to a darknet model. I'm using OpenCV 4.4.0 installed with Anaconda.
The same cfg runs on the pjreddie C++/CUDA implementation.
This is the error I get:

A relevant excerpt from the cfg file:

Without the connected layer everything works as expected.