sipeed / libmaix

New MaixCDK will replace this repo: https://github.com/sipeed/MaixCDK
https://github.com/sipeed/MaixCDK
MIT License
68 stars 31 forks source link

ISP errors occurring when set input_size with 416*416 in C++ code #24

Open STRIVESS opened 10 months ago

STRIVESS commented 10 months ago

Hello! I follow these instructions in dianjixz/v831_yolo and set both train_size and val_size parameters are 416*416 and to train in my computer, and then I convert my mode into onnx mode and ncnn mode, finally I upload them on the toolbox website to convert into awnn mode. `

if args.multi_scale:
    print('use the multi-scale trick ...')
    train_size = [640, 640]
    val_size = [416, 416]
else:
    train_size = [416, 416]
    val_size = [416, 416]

` 2023-12-25_15-14

I am sure that my training and modes are correct, and I modify below these codes and replace my trained mode, I try my best to run many time on V831 with C++ code, however there are some ISP errors occurring and the screen is full green(I upload the yolov2_camera_error.log and you can check it), how do I sovle it?
However I follow the same setting in Python code, it can run normally with low frame rate. *Does the V831 not support the input_size with 416416 in C++ code?** I am urgent to apply these into my projects recently, thank you for your help! image 2023-12-25_15-27

These errors below: image image

https://github.com/sipeed/libmaix/blob/0aa6d18c2850b4c9a447e1a05eab96193109ab64/examples/nn_yolo_20class_mdsc/main/src/main.c#L109 https://github.com/sipeed/libmaix/blob/0aa6d18c2850b4c9a447e1a05eab96193109ab64/examples/nn_yolo_20class_mdsc/main/src/main.c#L111 https://github.com/sipeed/libmaix/blob/0aa6d18c2850b4c9a447e1a05eab96193109ab64/examples/nn_yolo_20class_mdsc/main/src/main.c#L112 https://github.com/sipeed/libmaix/blob/0aa6d18c2850b4c9a447e1a05eab96193109ab64/examples/nn_yolo_20class_mdsc/main/src/main.c#L113 https://github.com/sipeed/libmaix/blob/0aa6d18c2850b4c9a447e1a05eab96193109ab64/examples/nn_yolo_20class_mdsc/main/src/main.c#L115