Open kprastey opened 8 months ago
Tried using variations of the posenet model namely:
Need some help reducing the inference time and the CPU usage.
` mendel@purple-calf:~/project-posenet$ python3 simple_pose.py --2024-03-20 06:33:22-- https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Hindu_marriage_ceremony_offering.jpg/640px-Hindu_marriage_ceremony_offering.jpg Resolving upload.wikimedia.org (upload.wikimedia.org)... 103.102.166.240, 2001:df2:e500:ed1a::2:b Connecting to upload.wikimedia.org (upload.wikimedia.org)|103.102.166.240|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 83328 (81K) [image/jpeg] Saving to: '/tmp/couple.jpg'
/tmp/couple.jpg 100%[===========================================================================================================>] 81.38K --.-KB/s in 0.1s
2024-03-20 06:33:23 (554 KB/s) - '/tmp/couple.jpg' saved [83328/83328]
Inference time: 21 ms
Pose Score: 0.60673916 NOSE x=210 y=152 score=1.0 LEFT_EYE x=223 y=138 score=1.0 RIGHT_EYE x=199 y=137 score=1.0 LEFT_EAR x=244 y=135 score=1.0 RIGHT_EAR x=183 y=129 score=0.8 LEFT_SHOULDER x=269 y=169 score=0.8 RIGHT_SHOULDER x=160 y=174 score=1.0 LEFT_ELBOW x=281 y=255 score=0.6 RIGHT_ELBOW x=153 y=253 score=0.9 LEFT_WRIST x=237 y=332 score=0.6 RIGHT_WRIST x=163 y=304 score=0.5 LEFT_HIP x=261 y=317 score=0.1 RIGHT_HIP x=173 y=309 score=0.1 LEFT_KNEE x=223 y=339 score=0.3 RIGHT_KNEE x=200 y=342 score=0.3 LEFT_ANKLE x=186 y=407 score=0.1 RIGHT_ANKLE x=188 y=410 score=0.2
Pose Score: 0.54908466 NOSE x=400 y=145 score=1.0 LEFT_EYE x=418 y=129 score=1.0 RIGHT_EYE x=383 y=127 score=1.0 LEFT_EAR x=458 y=110 score=0.9 RIGHT_EAR x=371 y=121 score=0.2 LEFT_SHOULDER x=496 y=168 score=1.0 RIGHT_SHOULDER x=361 y=150 score=0.8 LEFT_ELBOW x=463 y=291 score=1.0 RIGHT_ELBOW x=331 y=245 score=0.8 LEFT_WRIST x=340 y=305 score=0.9 RIGHT_WRIST x=234 y=332 score=0.5 LEFT_HIP x=485 y=312 score=0.1 RIGHT_HIP x=364 y=327 score=0.1 LEFT_KNEE x=470 y=336 score=0.0 RIGHT_KNEE x=245 y=329 score=0.1 LEFT_ANKLE x=444 y=381 score=0.0 RIGHT_ANKLE x=188 y=410 score=0.2 `
Description
Tried using variations of the posenet model namely:
Need some help reducing the inference time and the CPU usage.
` mendel@purple-calf:~/project-posenet$ python3 simple_pose.py --2024-03-20 06:33:22-- https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Hindu_marriage_ceremony_offering.jpg/640px-Hindu_marriage_ceremony_offering.jpg Resolving upload.wikimedia.org (upload.wikimedia.org)... 103.102.166.240, 2001:df2:e500:ed1a::2:b Connecting to upload.wikimedia.org (upload.wikimedia.org)|103.102.166.240|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 83328 (81K) [image/jpeg] Saving to: '/tmp/couple.jpg'
/tmp/couple.jpg 100%[===========================================================================================================>] 81.38K --.-KB/s in 0.1s
2024-03-20 06:33:23 (554 KB/s) - '/tmp/couple.jpg' saved [83328/83328]
Inference time: 21 ms
Pose Score: 0.60673916 NOSE x=210 y=152 score=1.0 LEFT_EYE x=223 y=138 score=1.0 RIGHT_EYE x=199 y=137 score=1.0 LEFT_EAR x=244 y=135 score=1.0 RIGHT_EAR x=183 y=129 score=0.8 LEFT_SHOULDER x=269 y=169 score=0.8 RIGHT_SHOULDER x=160 y=174 score=1.0 LEFT_ELBOW x=281 y=255 score=0.6 RIGHT_ELBOW x=153 y=253 score=0.9 LEFT_WRIST x=237 y=332 score=0.6 RIGHT_WRIST x=163 y=304 score=0.5 LEFT_HIP x=261 y=317 score=0.1 RIGHT_HIP x=173 y=309 score=0.1 LEFT_KNEE x=223 y=339 score=0.3 RIGHT_KNEE x=200 y=342 score=0.3 LEFT_ANKLE x=186 y=407 score=0.1 RIGHT_ANKLE x=188 y=410 score=0.2
Pose Score: 0.54908466 NOSE x=400 y=145 score=1.0 LEFT_EYE x=418 y=129 score=1.0 RIGHT_EYE x=383 y=127 score=1.0 LEFT_EAR x=458 y=110 score=0.9 RIGHT_EAR x=371 y=121 score=0.2 LEFT_SHOULDER x=496 y=168 score=1.0 RIGHT_SHOULDER x=361 y=150 score=0.8 LEFT_ELBOW x=463 y=291 score=1.0 RIGHT_ELBOW x=331 y=245 score=0.8 LEFT_WRIST x=340 y=305 score=0.9 RIGHT_WRIST x=234 y=332 score=0.5 LEFT_HIP x=485 y=312 score=0.1 RIGHT_HIP x=364 y=327 score=0.1 LEFT_KNEE x=470 y=336 score=0.0 RIGHT_KNEE x=245 y=329 score=0.1 LEFT_ANKLE x=444 y=381 score=0.0 RIGHT_ANKLE x=188 y=410 score=0.2 `
Click to expand!
### Issue Type Performance, Support, Others ### Operating System Mendel Linux ### Coral Device Dev Board ### Other Devices _No response_ ### Programming Language _No response_ ### Relevant Log Output _No response_