Jingkang50 / OpenPSG

Benchmarking Panoptic Scene Graph Generation (PSG), ECCV'22
https://psgdataset.org
MIT License
407 stars 68 forks source link

Error running the test for configs/psgtr/psgtr_r50_psg.py #83

Closed Chandu-4444 closed 1 year ago

Chandu-4444 commented 1 year ago

I tried to run the following on (tiny_psg.json dataset):

(/home/openpsg_env) root@c6747fffa95c:/home/BTP/OpenPSG# python tools/test.py --config configs/psgtr/psgtr_r50_psg.py --checkpoint epoch_60_psgr.pth --eval sgdet

I ran into the following error:

load checkpoint from local path: epoch_60_psgr.pth
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 2186/2186, 3.2 task/s, elapsed: 678s, ETA:     0s
Loading testing groundtruth...

[>>>>>                                             ] 231/2186, 121.5 task/s, elapsed: 2s, ETA:    16sTraceback (most recent call last):
  File "tools/test.py", line 245, in <module>
    main()
  File "tools/test.py", line 237, in main
    metric = dataset.evaluate(outputs, **eval_kwargs)
  File "/home/openpsg_env/lib/python3.7/site-packages/cog-0.0.1-py3.7.egg/openpsg/datasets/psg.py", line 383, in evaluate
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
Mikeworld-git commented 1 year ago

Hi,i meet the same problem。Have you solved the problem

Chandu-4444 commented 1 year ago

Nope. I'm still trying.

Mikeworld-git commented 1 year ago

Nope. I'm still trying.

I download full datases and use "psg_val_test.json" for test.but i meet the same problem. image

Jingkang50 commented 1 year ago

Sorry, I was on vacation in the past few days. You could check this part. Also, please use our full-released dataset in the README News.

Mikeworld-git commented 1 year ago

Sorry, I was on vacation in the past few days. You could check this part. Also, please use our full-released dataset in the README News.

Thanks,i will try this way!