ocrnet_w18_cityscapes.yaml 1.8 KB
Newer Older
T
tianlanshidai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
EVAL_CROP_SIZE: (2048, 1024) # (width, height), for unpadding rangescaling and stepscaling
TRAIN_CROP_SIZE: (1024, 512) # (width, height), for unpadding rangescaling and stepscaling
AUG:
#    AUG_METHOD: "unpadding" # choice unpadding rangescaling and stepscaling
    AUG_METHOD: "stepscaling" # choice unpadding rangescaling and stepscaling
    FIX_RESIZE_SIZE: (1024, 512) # (width, height), for unpadding
    INF_RESIZE_VALUE: 500  # for rangescaling
    MAX_RESIZE_VALUE: 600  # for rangescaling
    MIN_RESIZE_VALUE: 400  # for rangescaling
    MAX_SCALE_FACTOR: 2.0  # for stepscaling
    MIN_SCALE_FACTOR: 0.5  # for stepscaling
    SCALE_STEP_SIZE: 0.25  # for stepscaling
    MIRROR: True
BATCH_SIZE: 4
#BATCH_SIZE: 4
DATASET:
T
tianlanshidai 已提交
17
    DATA_DIR: "./dataset/cityscapes/"
T
tianlanshidai 已提交
18 19
    IMAGE_TYPE: "rgb"  # choice rgb or rgba
    NUM_CLASSES: 19
T
tianlanshidai 已提交
20 21 22 23
    TEST_FILE_LIST: "./dataset/cityscapes/val.list"
    TRAIN_FILE_LIST: "./dataset/cityscapes/train.list"
    VAL_FILE_LIST: "./dataset/cityscapes/val.list"
    VIS_FILE_LIST: "./dataset/cityscapes/val.list"
T
tianlanshidai 已提交
24 25 26 27 28 29
    IGNORE_INDEX: 255
    SEPARATOR: " "
FREEZE:
    MODEL_FILENAME: "model"
    PARAMS_FILENAME: "params"
MODEL:
W
wuzewu 已提交
30
    MODEL_NAME: "ocrnet"
T
tianlanshidai 已提交
31 32 33 34 35 36 37 38 39 40 41 42 43
    DEFAULT_NORM_TYPE: "bn"
    HRNET:
        STAGE2:
            NUM_CHANNELS: [18, 36]
        STAGE3:
            NUM_CHANNELS: [18, 36, 72]
        STAGE4:
            NUM_CHANNELS: [18, 36, 72, 144]
    OCR:
        OCR_MID_CHANNELS: 512
        OCR_KEY_CHANNELS: 256
    MULTI_LOSS_WEIGHT: [1.0, 1.0]
TRAIN:
W
wuzewu 已提交
44 45
    PRETRAINED_MODEL_DIR: u"./pretrained_model/ocrnet_w18_cityscape/best_model"
    MODEL_SAVE_DIR: "output/ocrnet_w18_bn_cityscapes"
T
tianlanshidai 已提交
46 47 48
    SNAPSHOT_EPOCH: 1
    SYNC_BATCH_NORM: True
TEST:
W
wuzewu 已提交
49
    TEST_MODEL: "output/ocrnet_w18_bn_cityscapes/first"
T
tianlanshidai 已提交
50 51 52 53 54
SOLVER:
    LR: 0.01
    LR_POLICY: "poly"
    OPTIMIZER: "sgd"
    NUM_EPOCHS: 500