配置文件中的reader的改写
Created by: xiaolifeimianbao
TrainReader: inputs_def: fields: ['image', 'im_info', 'im_id', 'gt_bbox', 'gt_class', 'is_crowd'] dataset: !COCODataSet image_dir: train2017 anno_path: annotations/instances_train2017.json dataset_dir: dataset/coco sample_transforms:
- !DecodeImage to_rgb: true
- !RandomFlipImage prob: 0.5
- !NormalizeImage is_channel_first: false is_scale: true mean: [0.485,0.456,0.406] std: [0.229, 0.224,0.225]
- !ResizeImage target_size: 800 max_size: 1333 interp: 1 use_cv2: true
- !Permute to_bgr: false channel_first: true batch_transforms:
- !PadBatch pad_to_stride: 32 use_padded_im_info: false batch_size: 1 shuffle: true worker_num: 2 use_process: false 以上是一个单独的配置文件中写的TrainReader 而我在模型配置文件中TrainReader改写为 TrainReader: dataset: !VOCDataSet dataset_dir: dataset anno_path: trainval.txt use_default_label: false batch_size: 2
是覆盖前者TrainReader下的的全部,还是只覆盖模型配置文件中TrainReader下改写的部分