SMOKE
SMOKE copied to clipboard
Different imagesize
Hi,
I have dataset with different image size. And its larger so I an resizing to smaller image. WHat changes needs to be done to make the code work correctly. I have changed the intrinsic matrix when resizing image accordingly. But results are bad. What other changes are needed?
@chinnikrishna55 How did you re-calculate the intrinsic matrix with the new custom image size? Any other changes you needed to do to get it working?
Hi @chinnikrishna55, I tried with a custom dataset and did some resizing on the image. The number of classes are also different. The training starts but then I get the following error. Did you also face the same issue:
/opt/conda/conda-bld/pytorch_1573049306803/work/aten/src/ATen/native/cuda/IndexKernel.cu:60: lambda ->auto::operator()(int)->auto: block: [0,0,0], thread: [9,0,0] Asserti on index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
/opt/conda/conda-bld/pytorch_1573049306803/work/aten/src/ATen/native/cuda/IndexKernel.cu:60: lambda ->auto::operator()(int)->auto: block: [0,0,0], thread: [10,0,0] Assert ion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
/opt/conda/conda-bld/pytorch_1573049306803/work/aten/src/ATen/native/cuda/IndexKernel.cu:60: lambda ->auto::operator()(int)->auto: block: [0,0,0], thread: [11,0,0] Assert ion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
Traceback (most recent call last):
File "tools/plain_train_net.py", line 100, in
hi have you resolved this problem? I am facing similar issues.
Hey! Yes I have resolved this. There is a matrix in one of the config files that has the approximate sizes of different class of objects. If you have more classes than 3, It throws an error.
Hey, do you mind sharing how you resolve it then?
Hey, do you mind sharing how you resolve it then?
change _C.MODEL.SMOKE_HEAD.DIMENSION_REFERENCE in defaults.py