djghosh13 / geneval

GenEval: An object-focused framework for evaluating text-to-image alignment
https://arxiv.org/abs/2310.11513
MIT License
120 stars 6 forks source link

TypeError: 'DetDataSample' object is not subscriptable #4

Open ApolloRay opened 7 months ago

ApolloRay commented 7 months ago

python evaluation/evaluate_images.py During evaluation, I meet this question.

ApolloRay commented 7 months ago

ordering = np.argsort(bbox[index][:, 4])[::-1] TypeError: 'DetDataSample' object is not subscriptable

djghosh13 commented 6 months ago

Hm it seems like there might have been some changes to the MMDetection library. Can you check that you have the version of mmdet specified in the readme? You should have version 2.27.0 installed:

>>> import mmdet
>>> mmdet.__version__
'2.27.0'