pose_demo_01 / easy_ViTPose /configs /ViTPose_wholebody.py
Maksym-Lysyi's picture
initial commit
e3641b1
raw
history blame contribute delete
657 Bytes
from .ViTPose_common import *
# Channel configuration
channel_cfg = dict(
num_output_channels=133,
dataset_joints=133,
dataset_channel=[
list(range(133)),
],
inference_channel=list(range(133)))
# Set models channels
data_cfg['num_output_channels'] = channel_cfg['num_output_channels']
data_cfg['num_joints']= channel_cfg['dataset_joints']
data_cfg['dataset_channel']= channel_cfg['dataset_channel']
data_cfg['inference_channel']= channel_cfg['inference_channel']
names = ['small', 'base', 'large', 'huge']
for name in names:
globals()[f'model_{name}']['keypoint_head']['out_channels'] = channel_cfg['num_output_channels']