Closed Fluxionsdx closed 2 years ago
@Fluxionsdx Here is a blog post that describes the architecture, if you need more help then @ronnyvotel and @lina128 have written the blog post
There were mistakes in my code. Please delete this issue. Sorry for wasting your time.
Thank you
I have the official TFJS MoveNet, modelType=SINGLEPOSE_THUNDER, and a custom TFJS model running simultaneously in the browser (chrome) on a 2021 MacBook M1. When running only one model at a time, both models run around 50 frames per second. However, when I run them together, the performance of Movenet only drops to 43 fps while the custom model drops to 15 fps. I'm wondering if there's some kind of optimization or clever design techniques that went into MoveNet that I'm not familiar with as I have no idea why this is happening. I would expect that both models would suffer a similar performance drop. The code for my custom model is written in python and then converted to TFJS and loaded into the Angular application with the loadGraphModel() function. It's a UNet style architecture which has a keras mobileNet for the downsampling pathway and simple Upsampling2D and depthwise separable convolutions for the upsampling pathway. I have pasted the model definition code below.
`
def mobile_uNet(num_classes, mn_size, pretrained, input_shape, layer_specs):