This is probably a newbie issue, I'm sorry if the solution is obvious!
The code works fine with the network bodypix_resnet50_float_model-stride16
In that network, segmentationMask.shape has the following value: (76, 101, 1)
However, the code fails with the networks bodypix_mobilenet_quant2_075_model-stride16 and bodypix_mobilenet_float_075_model-stride16, with the following error: ValueError: cannot reshape array of size 245632 into shape (76,101)
In that network, segmentationMask.shape has the following value: (76, 101, 32)
This is probably a newbie issue, I'm sorry if the solution is obvious!
The code works fine with the network
bodypix_resnet50_float_model-stride16
In that network,
segmentationMask.shape
has the following value:(76, 101, 1)
However, the code fails with the networks
bodypix_mobilenet_quant2_075_model-stride16
andbodypix_mobilenet_float_075_model-stride16
, with the following error:ValueError: cannot reshape array of size 245632 into shape (76,101)
In that network,
segmentationMask.shape
has the following value:(76, 101, 32)