Giter Site home page Giter Site logo

Comments (7)

wine3603 avatar wine3603 commented on June 15, 2024

I have the same problem.
I got 18 keypoints using Openpose and output to coco_json format using openpose write_coco_json flag, and modify it to the coco keypoint json file follow coco dataset introductions.
I edited the test.py to use my own images and the openpose json file, but it got the error:

   assert type(dataset)==dict, 'annotation file format {} not supported'.format(type(dataset))
AssertionError: annotation file format <class 'list'> not supported

I want to use Pose2Seg to test 1 single image, do I need to provide the Bbox in the json file?
How to generate the workful coco style json file for a single test image?
Can anyone provide an example of a simple json format for testing a single image ?

from pose2seg.

liruilong940607 avatar liruilong940607 commented on June 15, 2024

Please refer our dataset api on how to generate a usable coco-format json file:
https://github.com/liruilong940607/OCHumanApi/blob/master/ochumanApi/ochuman.py

And if you do not need evaluation (only need inference), you can leave those fields blank:
'area', 'iscrowd', 'segmentation', 'bbox', because we don't use them for inference.

Also, I need to mention that if you use pose-ae to generate pose, their are some tricks in their codes to introduce redundant keypoint for better performance. You need to get rid of those tricks for useable keypoint results:
e.g. L.198 and L.128 in their test.py

from pose2seg.

manansaxena avatar manansaxena commented on June 15, 2024

I have the same problem.
I got 18 keypoints using Openpose and output to coco_json format using openpose write_coco_json flag, and modify it to the coco keypoint json file follow coco dataset introductions.
I edited the test.py to use my own images and the openpose json file, but it got the error:

   assert type(dataset)==dict, 'annotation file format {} not supported'.format(type(dataset))
AssertionError: annotation file format <class 'list'> not supported

I want to use Pose2Seg to test 1 single image, do I need to provide the Bbox in the json file?
How to generate the workful coco style json file for a single test image?
Can anyone provide an example of a simple json format for testing a single image ?

Hey,
Were you able to solve this problem of converting openpose keypoints to coco format ?

from pose2seg.

wine3603 avatar wine3603 commented on June 15, 2024

I have the same problem.
I got 18 keypoints using Openpose and output to coco_json format using openpose write_coco_json flag, and modify it to the coco keypoint json file follow coco dataset introductions.
I edited the test.py to use my own images and the openpose json file, but it got the error:

   assert type(dataset)==dict, 'annotation file format {} not supported'.format(type(dataset))
AssertionError: annotation file format <class 'list'> not supported

I want to use Pose2Seg to test 1 single image, do I need to provide the Bbox in the json file?
How to generate the workful coco style json file for a single test image?
Can anyone provide an example of a simple json format for testing a single image ?

Hey,
Were you able to solve this problem of converting openpose keypoints to coco format ?

not yet, still I am struggling.......

from pose2seg.

ZORAN666 avatar ZORAN666 commented on June 15, 2024

I have the same problem.
I got 18 keypoints using Openpose and output to coco_json format using openpose write_coco_json flag, and modify it to the coco keypoint json file follow coco dataset introductions.
I edited the test.py to use my own images and the openpose json file, but it got the error:

   assert type(dataset)==dict, 'annotation file format {} not supported'.format(type(dataset))
AssertionError: annotation file format <class 'list'> not supported

I want to use Pose2Seg to test 1 single image, do I need to provide the Bbox in the json file?
How to generate the workful coco style json file for a single test image?
Can anyone provide an example of a simple json format for testing a single image ?

Hey,
Were you able to solve this problem of converting openpose keypoints to coco format ?

not yet, still I am struggling.......

Did you solve that?

from pose2seg.

wine3603 avatar wine3603 commented on June 15, 2024

@ZORAN666 no, I gave up, turned to another crowds segmentation method.

from pose2seg.

manansaxena avatar manansaxena commented on June 15, 2024

@wine3603 Which one are you using now ? Because this isn't working for me and I have spent ample amount of time in trying to make it work

from pose2seg.

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.