henghuiding/Vision-Language-Transformer

How to train on the custom data set?

YunLongPan opened this issue · 2 comments

How to train on the custom data set?

Hi Yunlong,

Briefly speaking, you need to prepare a dataset annotation JSON file, then specify the path to the image folder and target mask folder in the config file. For details please check:

def prepare_dataset(dataset, splits, output_dir, generate_mask=False):

def get_random_data(ref, input_shape, embed, config, train_mode=True, max_boxes=1):