GithubHelp home page GithubHelp logo

about the test data about pytorch-cpn HOT 7 CLOSED

gengdavid avatar gengdavid commented on June 1, 2024
about the test data

from pytorch-cpn.

Comments (7)

GengDavid avatar GengDavid commented on June 1, 2024

Hi @genius9527
I also used COCO 2017 Keypoint data for training and test.
Sorry I don't know where your problem actually is. Have you modified any code?
Maybe you can make sure you have downloaded the full validation dataset and delete COCO_2017_val.json file(in annotations folder) and run label_transform.py(in ROOT_DIR) again to regenerate it.

from pytorch-cpn.

genius9527 avatar genius9527 commented on June 1, 2024

ok,I will try. Can you pass your pre-training model to Baidu Cloud? I can't download anything on Google Cloud Drive.Thanks

from pytorch-cpn.

GengDavid avatar GengDavid commented on June 1, 2024

@genius9527 Sorry to tell that I cannot upload the model to Baidu Cloud due to some limitations. If you still have the problem on downloading the pre-trained model, I can provide you the pre-trained model by Tencent weiyun: COCO.res50.256x192.CPN

from pytorch-cpn.

genius9527 avatar genius9527 commented on June 1, 2024

@GengDavid thank you,I used the pre-training model you provided and found that the current test results are normal. The AP exceeded 0.7.But now I have a new problem, I try to use COCO2017/test2017 as the test data, and image_info_test-dev2017.json as the annotations. When I use test.py to test, the following problem occurs:
=> loaded checkpoint 'checkpoint/CPN256x192.pth.tar' (epoch 29)
testing...
0it [00:00, ?it/s]
loading annotations into memory...
Done (t=0.05s)
creating index...
index created!
Loading and preparing results...
Traceback (most recent call last):
File "test.py", line 159, in
main(parser.parse_args())
File "test.py", line 137, in main
eval_dt = eval_gt.loadRes(result_file)
File "/media/uestc/4T_1/pytorch-cpn-master/256.192.model/../cocoapi/PythonAPI/pycocotools/coco.py", line 318, in loadRes
if 'caption' in anns[0]:
IndexError: list index out of range
Have you ever encountered such a problem? Thanks.

from pytorch-cpn.

GengDavid avatar GengDavid commented on June 1, 2024

I have not met this problem before. But it seems that there was something wrong in testing process since the test time was 00:00.

from pytorch-cpn.

genius9527 avatar genius9527 commented on June 1, 2024

@GengDavid emmmm,So, have you tested it on the test dataset, how is it tested?

from pytorch-cpn.

GengDavid avatar GengDavid commented on June 1, 2024

The test codes provided are not suit for evaluation on COCO test dataset. If you want to test it on test-dev, you may need to prepare the human detection results on test-dev and save it as the format shown in #2 first. And then you need to comment out line 136-141(which use coco tool to evaluate the results)in test.py. Finally, you can submit the results to COCO submission platform to get the evaluation result.

This is a pipeline for testing on test-dev. Some other changes are also needed. For example, you need to modify test_config to load the right dataset and detection bbox.

from pytorch-cpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.