Hi!
@david2611 I know I still have the PR to conclude, but in the meantime I've been hitting my head on the keyboard with a bug which I was still not able to solve. I isolated one bounding box in which this problem happens to be easier to explain here.
The error is being thrown in gen_single_heatmap() from data_holders.py when my input to that function is:
img_size = (333, 500)
mean = [-1.0, 47.51200000000006]
cov = array([[0. , 0. ], [0. , 0.00176]])
The calculations in these function will make positions to be completely empty and with shape (0, 1, 2), which when passed to g.cdf throws the following exception:
ValueError: Cannot apply_along_axis when any iteration dimensions are 0
I'm not sure what is the objective of this function, so I'd appreciate if you could give me at least some pointers on what you are trying to do here and what this matches in the PDQ paper?
If it helps, the PBoxDetInst on which the calculations are being done before calling gen_single_heatmap() has the following attributes:
covs:
array([[[1.76000001e-03, 2.52979994e-01],
[2.52979994e-01, 1.28846497e+02]],
[[1.76000001e-03, 0.00000000e+00],
[0.00000000e+00, 0.00000000e+00]]])
box:
[337.292, 302.658, 451.48799999999994, 333.0]
Initially I thought that the bounding box I was trying to predict had the coordinate x1 over the limits of the image (box[0] > img_size[0]) but I was wrong, as img_size is (height, width).
So, I'm really lost here and I don't seem to be able to solve this, any help would be really very much appreciated, for example helping me understanding what is being calculated here and what it is for.
In any case, do you have any idea why this might be happening or where the issue might be? :/ The code before was working perfectly fine when I had a deterministic model without any covariates, but after trying to change it to have mcdropout, this started to happen.
Hi!
@david2611 I know I still have the PR to conclude, but in the meantime I've been hitting my head on the keyboard with a bug which I was still not able to solve. I isolated one bounding box in which this problem happens to be easier to explain here.
The error is being thrown in
gen_single_heatmap()from data_holders.py when my input to that function is:img_size = (333, 500)
mean = [-1.0, 47.51200000000006]
cov = array([[0. , 0. ], [0. , 0.00176]])
The calculations in these function will make
positionsto be completely empty and with shape (0, 1, 2), which when passed tog.cdfthrows the following exception:ValueError: Cannot apply_along_axis when any iteration dimensions are 0I'm not sure what is the objective of this function, so I'd appreciate if you could give me at least some pointers on what you are trying to do here and what this matches in the PDQ paper?
If it helps, the
PBoxDetInston which the calculations are being done before callinggen_single_heatmap()has the following attributes:covs:
array([[[1.76000001e-03, 2.52979994e-01],
[2.52979994e-01, 1.28846497e+02]],
[[1.76000001e-03, 0.00000000e+00],
[0.00000000e+00, 0.00000000e+00]]])
box:
[337.292, 302.658, 451.48799999999994, 333.0]
Initially I thought that the bounding box I was trying to predict had the coordinate x1 over the limits of the image (
box[0]>img_size[0]) but I was wrong, as img_size is (height, width).So, I'm really lost here and I don't seem to be able to solve this, any help would be really very much appreciated, for example helping me understanding what is being calculated here and what it is for.
In any case, do you have any idea why this might be happening or where the issue might be? :/ The code before was working perfectly fine when I had a deterministic model without any covariates, but after trying to change it to have mcdropout, this started to happen.