depthai-experiments icon indicating copy to clipboard operation
depthai-experiments copied to clipboard

PreviewManager - got an unexpected keyword argument 'scale'

Open dougwatson opened this issue 2 years ago • 1 comments

Do I have a version mismatch- or this was code was written to a newer library than I have?

I'm running dai.version 2.15.4.0 but seems like the PreviewManager function does not know what to do with the scale argument.

$ cd depthai-experiments/gen2-yolo/device-decoding

$ python3 ./main.py -m ~/Downloads/result-yolov5n-640/result_openvino_2021.4_6shave.blob -c ~/Downloads/result-yolov5n-640/result.json Traceback (most recent call last): File "depthai-experiments/gen2-yolo/device-decoding/./main.py", line 33, in pv = PreviewManager(display=[Previews.color.name], scale={"color":0.33}, fpsHandler=fpsHandler) TypeError: init() got an unexpected keyword argument 'scale'

dougwatson avatar May 18 '22 18:05 dougwatson

Sorry about the trouble. All our experiments actually specify their own DepthAI versions such that any old references/etc. will "just work". So I suspect this is it.

In the future we will actually have these in little Docker containers even so completely self-contained.

Pinging @Erol444 in case he can advise here on how to fix and/or update the example to the latest DepthAI.

Luxonis-Brandon avatar May 21 '22 11:05 Luxonis-Brandon