ajaichemmanam / simple_bodypix_python

A simple and minimal bodypix inference in python
76 stars 19 forks source link

Mask resolution #19

Open baesek opened 3 years ago

baesek commented 3 years ago

Hi there, thanks for offering your code. I could get it working, but i wonder if it is possible to get a higher resolution mask. I changed the code like this

targetWidth = imgWidth +1
targetHeight = imgHeight +1

but it had no effect on the masks resolution.

I am trying to get mask like this one here but i want to stay on tensorflow version 1.15: https://github.com/google-coral/project-bodypix Do you know how it is possible how to get such a map with your code? At the moment I can only get this 121 x 91 (LOW resolution) mask.

Best, baesek

benschlueter commented 3 years ago

Stay with the LOW resolution mask, the higher the resolution gets the worse the results. Use interpolation and low pass filters if you like to upscale