google-coral / project-bodypix

BodyPix model demo application for Google Coral
Apache License 2.0
275 stars 52 forks source link

How to obtain fine detailed rgb-heatmap? #5

Closed laibilly closed 4 years ago

laibilly commented 4 years ago

Hi

When I am debugging the bodypix.py, I see the result obtain from rgb_heatmap is at size of [31,41,3]

image

it will generate result similar to following

https://github.com/iwatake2222/Become_Dhalsim image

but I look at the project page image

the rgb_heatmap seem much higher resolution.

I am using default_model = 'models/bodypix_mobilenet_v1_075_640_480_16_quant_edgetpu_decoder.tflite'

what should I do to obtain such result resolution like in the project page

-Thanks Billy

mtyka commented 4 years ago

The heatmap resolution you are getting from the model is the highest resolution that that model can do. The demo that appears to have higher resolution uses the same heatmap but uses interpolation to make the edges smooth.

On Sun, Jul 5, 2020 at 4:06 AM laibilly notifications@github.com wrote:

Hi

When I am debugging the bodypix.py, I see the result obtain from rgb_heatmap is at size of [31,41,3]

[image: image] https://user-images.githubusercontent.com/1932192/86531209-e06f2e80-bef1-11ea-9b49-c1e984240495.png

it will generate result similar to following

https://github.com/iwatake2222/Become_Dhalsim [image: image] https://user-images.githubusercontent.com/1932192/86531243-20361600-bef2-11ea-8c06-7cd8547ed689.png

but I look at the project page [image: image] https://user-images.githubusercontent.com/1932192/86531257-43f95c00-bef2-11ea-8e10-124161aae24a.png

the rgb_heatmap seem much higher resolution.

I am using default_model = 'models/bodypix_mobilenet_v1_075_640_480_16_quant_edgetpu_decoder.tflite'

what should I do to obtain such result resolution like in the project page

-Thanks Billy

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google-coral/project-bodypix/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI4ZJLK2ZGQCKASTLNTQ3DR2BNCBANCNFSM4OQ2JPRQ .

-- [ www.miketyka.com Twitter: @mtyka http://www.twitter.com/mtyka Instagram: @miketyka https://www.instagram.com/miketyka/]

laibilly commented 4 years ago

Thanks a lot for your information. I was thinking I am missing something here. Thanks