Hi, and thank you for making this code available.
I am running it in windows, on a GTX 1080, and using the demo_image.py file with the model from google drive and the time it takes to detect keypoints is more than 6 seconds.
What am i doing wrong? How can i get close to the 38 fps that you mention on the readme?
>python demo_image.py --image input.jpg
0 neck->nose
1 neck->Reye
2 neck->Leye
3 neck->Rear
4 neck->Lear
5 nose->Reye
6 nose->Leye
7 Reye->Rear
8 Leye->Lear
9 neck->Rsho
10 Rsho->Relb
11 Relb->Rwri
12 neck->Lsho
13 Lsho->Lelb
14 Lelb->Lwri
15 neck->Rhip
16 Rhip->Rkne
17 Rkne->Rank
18 neck->Lhip
19 Lhip->Lkne
20 Lkne->Lank
21 nose->Rsho
22 nose->Lsho
23 Rsho->Rhip
24 Rhip->Lkne
25 Lsho->Lhip
26 Lhip->Rkne
27 Rear->Rsho
28 Lear->Lsho
29 Rhip->Lhip
{0: 'neck->nose',
1: 'neck->Reye',
2: 'neck->Leye',
3: 'neck->Rear',
4: 'neck->Lear',
5: 'nose->Reye',
6: 'nose->Leye',
7: 'Reye->Rear',
8: 'Leye->Lear',
9: 'neck->Rsho',
10: 'Rsho->Relb',
11: 'Relb->Rwri',
12: 'neck->Lsho',
13: 'Lsho->Lelb',
14: 'Lelb->Lwri',
15: 'neck->Rhip',
16: 'Rhip->Rkne',
17: 'Rkne->Rank',
18: 'neck->Lhip',
19: 'Lhip->Lkne',
20: 'Lkne->Lank',
21: 'nose->Rsho',
22: 'nose->Lsho',
23: 'Rsho->Rhip',
24: 'Rhip->Lkne',
25: 'Lsho->Lhip',
26: 'Lhip->Rkne',
27: 'Rear->Rsho',
28: 'Lear->Lsho',
29: 'Rhip->Lhip',
30: 'nose',
31: 'neck',
32: 'Rsho',
33: 'Relb',
34: 'Rwri',
35: 'Lsho',
36: 'Lelb',
37: 'Lwri',
38: 'Rhip',
39: 'Rkne',
40: 'Rank',
41: 'Lhip',
42: 'Lkne',
43: 'Lank',
44: 'Reye',
45: 'Leye',
46: 'Rear',
47: 'Lear',
48: 'background',
49: 'reverseKeypoint'}
Resuming from checkpoint ......
Network weights have been resumed from checkpoint...
cuda
Selected optimization level O1: Insert automatic casts around Pytorch functions and Tensor methods.
Defaults for this optimization level are:
enabled : True
opt_level : O1
cast_model_type : None
patch_torch_functions : True
keep_batchnorm_fp32 : None
master_weights : None
loss_scale : dynamic
Processing user overrides (additional kwargs that are not None)...
After processing overrides, optimization options are:
enabled : True
opt_level : O1
cast_model_type : None
patch_torch_functions : True
keep_batchnorm_fp32 : None
master_weights : None
loss_scale : dynamic
start processing...
the 0th keypoint detection result is : ([(384.98810766687865, 156.99848021452428), (392.0089789786089, 140.00016588448665), (372.00392927155144, 141.9994244210869), (396.997404715929, 137.00354114471122), (339.00678492184926, 140.0066329927729), (424.0065017794617, 191.99842561943024), (304.9960763460449, 220.00916854059585), (443.0001489242592, 272.0109579295975), (292.00050351624543, 310.9984260760411), (465.0083100132065, 350.99493035095674), (293.00562399904305, 404.00513994760007), (420.99916662586236, 393.0031377139439), (349.9987046664099, 401.00452761418853), (413.99545615615057, 536.0021693790678), (351.0002542695355, 541.9933765298466), (376.0021593526506, 644.988972815169), (352.00185668667876, 677.9945526718805)], 0.9674948892626798)
processing time is 6.45740