Hello @jakaskerl and @Matija
I am still getting errors
I created two new models one at 640x480 and another at 640x640.
I resized my training images to the model size before running train.py
for the 640x640 I used this command
!python train.py --epochs 300 --workers 8 --device 0 --batch-size 32 --data /content/yolov7/data/custom.yaml --img 640 640 --cfg cfg/training/custom_yolov7-tiny.yaml --weights 'yolov7-tiny.pt' --hyp data/hyp.scratch.tiny.yaml
to create the blob file I did a Yolov7(detection only) at RCS2 and made the input image 640 640.
For the 640x480 I used this command
!python train.py --epochs 300 --workers 8 --device 0 --batch-size 32 --data /content/yolov7/data/custom.yaml --img 640 480 --cfg cfg/training/custom_yolov7-tiny.yaml --weights 'yolov7-tiny.pt' --hyp data/hyp.scratch.tiny.yaml
When I create the this blob file I did a Yolov7(detection only) at RCS2 and made the input image 640 480
I copied both of my new blob files into depthai-python/examples/models and nnBlobPath variable in Spatial_tiny_yolo.py
for instance for my 640x640
nnBlobPath = str((Path(file).parent / Path('../models/yolo-v7-tiny tf_640x640_openvino_2022.1_6shave.blob')).resolve().absolute())
then I sent the preview size to camRgb.setPreviewSize(640, 640)
when I ran Spatial_tiny_yolo.py with either model I get the same errors
[18443010D1F3660E00] [1.2.1] [55.890] [SpatialDetectionNetwork(1)] [error] Mask is not defined for output layer with width '20'. Define at pipeline build time using: 'setAnchorMasks' for 'side20'.
[18443010D1F3660E00] [1.2.1] [56.000] [SpatialDetectionNetwork(1)] [error] Mask is not defined for output layer with width '80'. Define at pipeline build time using: 'setAnchorMasks' for 'side80'.
[18443010D1F3660E00] [1.2.1] [56.000] [SpatialDetectionNetwork(1)] [error] Mask is not defined for output layer with width '40'. Define at pipeline build time using: 'setAnchorMasks' for 'side40'
but this time the RGB and the depth outputs are show, but I see no object detection nor Spatial data.
thank you,