MCPcopy Create free account
hub / github.com/aidlearning/AidLearning-FrameWork / valid_resolution

Function valid_resolution

src/mutilpose/posenet/utils.py:10–13  ·  view source on GitHub ↗
(width, height, output_stride=16)

Source from the content-addressed store, hash-verified

8 scale_factor=0.7125
9
10def valid_resolution(width, height, output_stride=16):
11 target_width = (int(width) // output_stride) * output_stride + 1
12 target_height = (int(height) // output_stride) * output_stride + 1
13 return target_width, target_height
14
15
16def _process_input(source_img, scale_factor=1.0, output_stride=16):

Callers 1

_process_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected