You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all, first of all thanks for sharing your implementation.
I am trying to run a Yolov5 on a RPI4 using OpenGL backend an I am getting the following error:
Can't open file:/sys/devices/system/cpu/cpufreq/ondemand/affected_cpus
CPU Group: [ 0 1 2 3 ], 600000 - 1600000
The device supports: i8sdot:0, fp16:0, i8mm: 0, sve2: 0
not support half
Segmentation fault
More specifically:
On a headless RPI4, I compiled the MNN with OpenGL support and tried to run a Yolo network (f32 bit)
When running my program I get:
Can't open file:/sys/devices/system/cpu/cpufreq/ondemand/affected_cpus
CPU Group: [ 0 1 2 3 ], 600000 - 1600000
The device supports: i8sdot:0, fp16:0, i8mm: 0, sve2: 0
not support half
Segmentation fault
To enable the GL backend in my code I used the following commands:
MNN::ScheduleConfig config;
config.type = MNN_FORWARD_OPENGL; // Use OpenGL backend
int numThread = 4; // Default number of threads
if (argc > 3) { // Check if the third argument (argv[3]) exists
numThread = atoi(argv[3]);
if (numThread <= 0) {
std::cerr << "Invalid number of threads specified. Using default: 4\n";
numThread = 4;
}
}
config.numThread = numThread;
// Force full precision (FP32)
MNN::BackendConfig backendConfig;
backendConfig.precision = MNN::BackendConfig::Precision_Normal;
config.backendConfig = &backendConfig;
auto session = interpreter->createSession(config);
Dear all, first of all thanks for sharing your implementation.
I am trying to run a Yolov5 on a RPI4 using OpenGL backend an I am getting the following error:
More specifically:
On a headless RPI4, I compiled the MNN with OpenGL support and tried to run a Yolo network (f32 bit)
When running my program I get:
To enable the GL backend in my code I used the following commands:
and I compiled using:
and exported the following env variable:
the LDD command returns:
My model was extracted using the ultralytics python SDK
When running
GetMNNInfo
I get:Please note that with CPU backend the network runs properly.
Any help/support will be highly appreciated!
The text was updated successfully, but these errors were encountered: