saksham-s / SparseDet

Official Repository for the ICCV 2023 paper, SparseDet: Improving Sparsely Annotated Object Detection with Pseudo-positive Mining
6 stars 0 forks source link

ShapeSpec object is not subscriptable #1

Open epistimi22 opened 9 months ago

epistimi22 commented 9 months ago

hi, I'm running your codes, and an error occurs. model.py line 118, _output_shape = {'p2': ShapeSpec(channels=2*outputshape['p2'][0], height=None, width=None, stride=4), \ We know that output_shape['p2'] is a ShapeSpec class and it has four attributes, so, if you want to get its value of 'channels', it should be output_shape['p2'].channels rather than output_shape['p2'][0]. Anyway, I'm not sure whether I'm right. Maybe you can check it, thanks for your work!

saksham-s commented 1 month ago

Hi, I do not face this error, have you used the same versions as mentioned in the repo. Also attaching my current environment pip list which helped me reproduce the repos results in case that helps. requirements.txt