dataset

Fill in a module description here

source

StrokesDataset

 StrokesDataset (dataset:<built-infunctionarray>, max_seq_length:int,
                 scale:Optional[float]=None)

Dataset

This class loads and pre-processes the data.


source

random_scale

 random_scale (data, random_scale_factor=0.15)

Augment data by stretching x and y axis randomly [1-e, 1+e].


source

augment_strokes

 augment_strokes (strokes, prob=0.0)

Perform data augmentation by randomly dropping out strokes.


source

create_dataloaders

 create_dataloaders (hp:singleline_models.utils.CfgNode)