unet_pet.yaml 1.4 KB
Newer Older
W
wuzewu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
TRAIN_CROP_SIZE: (512, 512) # (width, height), for unpadding rangescaling and stepscaling
EVAL_CROP_SIZE: (512, 512) # (width, height), for unpadding rangescaling and stepscaling
AUG:
    AUG_METHOD: "unpadding" # choice unpadding rangescaling and stepscaling
    FIX_RESIZE_SIZE: (512, 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: 1.25  # for stepscaling
    MIN_SCALE_FACTOR: 0.75  # for stepscaling
    SCALE_STEP_SIZE: 0.25  # for stepscaling
    MIRROR: True
L
LutaoChu 已提交
15
BATCH_SIZE: 4
W
wuzewu 已提交
16
DATASET:
C
chulutao 已提交
17
    DATA_DIR: "./dataset/mini_pet/"
W
wuzewu 已提交
18
    IMAGE_TYPE: "rgb"  # choice rgb or rgba
L
LutaoChu 已提交
19
    NUM_CLASSES: 3
C
chulutao 已提交
20 21 22
    TEST_FILE_LIST: "./dataset/mini_pet/file_list/test_list.txt"
    TRAIN_FILE_LIST: "./dataset/mini_pet/file_list/train_list.txt"
    VAL_FILE_LIST: "./dataset/mini_pet/file_list/val_list.txt"
L
LutaoChu 已提交
23
    VIS_FILE_LIST: "./dataset/mini_pet/file_list/test_list.txt"
W
wuzewu 已提交
24 25 26 27 28 29 30 31 32
    IGNORE_INDEX: 255
    SEPARATOR: " "
FREEZE:
    MODEL_FILENAME: "__model__"
    PARAMS_FILENAME: "__params__"
MODEL:
    MODEL_NAME: "unet"
    DEFAULT_NORM_TYPE: "bn"
TEST:
L
LutaoChu 已提交
33
    TEST_MODEL: "./saved_model/unet_pet/final/"
W
wuzewu 已提交
34
TRAIN:
L
LutaoChu 已提交
35 36
    MODEL_SAVE_DIR: "./saved_model/unet_pet/"
    PRETRAINED_MODEL_DIR: "./test/models/unet_coco_init/"
W
wuzewu 已提交
37 38
    SNAPSHOT_EPOCH: 10
SOLVER:
L
LutaoChu 已提交
39
    NUM_EPOCHS: 100
W
wuzewu 已提交
40 41 42
    LR: 0.005
    LR_POLICY: "poly"
    OPTIMIZER: "adam"