mediapipe_model_maker.gesture_recognizer.HParams

The hyperparameters for training gesture recognizer.

Inherits From: BaseHParams

learning_rate Learning rate to use for gradient descent training.
batch_size Batch size for training.
epochs Number of training iterations over the dataset.
lr_decay Learning rate decay to use for gradient descent training.
gamma Gamma parameter for focal loss.
steps_per_epoch Dataclass field
class_weights Dataclass field
shuffle Dataclass field
repeat Dataclass field
export_dir Dataclass field
distribution_strategy Dataclass field
num_gpus Dataclass field
tpu Dataclass field

Methods

get_strategy

View source

__eq__

batch_size 2
class_weights None
distribution_strategy 'off'
epochs 10
export_dir '/tmpfs/tmp/tmpnt_h4p9w'
gamma 2
learning_rate 0.001
lr_decay 0.99
num_gpus 0
repeat False
shuffle False
steps_per_epoch None
tpu ''