Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When is CocoKeypoints called #54

Open
liudadan opened this issue Jan 31, 2023 · 0 comments
Open

When is CocoKeypoints called #54

liudadan opened this issue Jan 31, 2023 · 0 comments

Comments

@liudadan
Copy link

I used the program to read the coco dataset and found that the code did not call the code of the cocoKeypoints class. But in fact, the program does call the CocoKeypoints class. When did the program call the CocoKeypoints class.
class CocoKeypoints(CocoDataset):
def __ init__ (self, cfg, dataset, heatmap_generator=None, offset_generator=None, transforms=None):
super().__ init__ (cfg, dataset)
self.num_ joints = cfg.DATASET.NUM_ JOINTS
self.num_ joints_ with_ center = self.num_ joints+1
self.sigma = cfg.DATASET.SIGMA
self.center_ sigma = cfg.DATASET.CENTER_ SIGMA
self.bg_ weight = cfg.DATASET.BG_ WEIGHT
self.heatmap_ generator = heatmap_ generator
self.offset_ generator = offset_ generator
self.transforms = transforms
self.ids = [
img_ id
for img_ id in self.ids
if len(self.coco.getAnnIds(imgIds=img_id, iscrowd=None)) > 0
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant