-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b543fd4
commit e0f1605
Showing
28 changed files
with
627 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,46 @@ | ||
DEVICE: cpu # device used for training and evaluation (cpu, cuda, cuda0, cuda1, ...) | ||
DEVICE: cpu # device used for training and evaluation (cpu, cuda, cuda0, cuda1, ...) | ||
SAVE_DIR: 'output' # output folder name used for saving the model, logs and inference results | ||
MODEL_PATH: '' # trained model file path | ||
MODEL_PATH: 'checkpoints/pretrained/segformer/segformer.b3.512x512.ade.160k.pth' # trained model file path | ||
|
||
MODEL: | ||
NAME: segformer # name of the model you are using | ||
BACKBONE: | ||
NAME: mit | ||
VARIANT: B3 | ||
PRETRAINED: 'checkpoints/backbone/mit/mit_b3.pth' # backbone model's weight file path if the segmentation model use separate backbone like ResNet | ||
VARIANT: B3 # model variant | ||
PRETRAINED: 'checkpoints/backbone/mit/mit_b3.pth' # backbone model's weight | ||
|
||
DATASET: | ||
NAME: ade20k # dataset name to be trained with (camvid, cityscapes, ade20k) | ||
ROOT: 'C:\\Users\\sithu\\Documents\\Datasets\\ADEChallenge\\ADEChallengedata2016' # dataset root path | ||
ROOT: 'data/ADEChallengedata2016' # dataset root path | ||
|
||
TRAIN: | ||
IMAGE_SIZE: [512, 512] # training image size in (h, w) | ||
EPOCHS: 500 # number of epochs to train | ||
BATCH_SIZE: 8 # batch size used to train | ||
WORKERS: 8 # number of workers used in training dataloader | ||
LR: 0.01 # initial learning rate used in optimizer | ||
DECAY: 0.0005 # decay rate used in optimizer | ||
LOSS: | ||
NAME: ohemce # loss function name (ohemce, ce, dice) | ||
CLS_WEIGHTS: false # use class weights in loss calculation | ||
CLS_WEIGHTS: true # use class weights in loss calculation | ||
THRESH: 0.7 # ohemce threshold or dice delta if you choose ohemce loss or dice loss | ||
OPTIMIZER: | ||
NAME: adamw # optimizer name | ||
LR: 1e-3 # initial learning rate used in optimizer | ||
WEIGHT_DECAY: 0.01 # decay rate used in optimizer | ||
SCHEDULER: | ||
NAME: warmuppolylr | ||
POWER: 0.9 | ||
WARMUP: 10 # warmup epochs used in scheduler | ||
WARMUP_RATIO: 0.1 | ||
EVAL_INTERVAL: 10 # evaluation interval during training | ||
NAME: warmuppolylr # scheduler name | ||
POWER: 0.9 # scheduler power | ||
WARMUP: 10 # warmup epochs used in scheduler | ||
WARMUP_RATIO: 0.1 # warmup ratio | ||
EVAL_INTERVAL: 50 # evaluation interval during training | ||
AMP: false # use AMP in training | ||
DDP: false # use DDP training | ||
|
||
EVAL: | ||
IMAGE_SIZE: [512, 512] # evaluation image size in (h, w) | ||
BATCH_SIZE: 8 # batch size used in evaluation | ||
WORKERS: 4 # number of workers used in evaluation dataloader | ||
IMAGE_SIZE: [512, 512] # evaluation image size in (h, w) | ||
MSF: | ||
ENABLE: false # multi-scale and flip evaluation | ||
FLIP: true # use flip in evaluation | ||
SCALES: [0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0] # scales used in MSF evaluation | ||
ENABLE: false # multi-scale and flip evaluation | ||
FLIP: true # use flip in evaluation | ||
SCALES: [0.5, 0.75, 1.0, 1.25, 1.5, 1.75] # scales used in MSF evaluation | ||
|
||
TEST: | ||
MODE: image # inference mode (image, video, webcam) | ||
FILE: 'test_imgs' # filename or foldername (image mode), video name (video mode), 0 (webcam mode) | ||
IMG_SIZE: [480, 640] # inference image size in (h, w) | ||
FILE: 'assests/ade' # filename or foldername (image mode), video name (video mode), 0 (webcam mode) | ||
IMAGE_SIZE: [512, 512] # inference image size in (h, w) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,46 @@ | ||
DEVICE: cpu # device used for training and evaluation (cpu, cuda, cuda0, cuda1, ...) | ||
DEVICE: cpu # device used for training and evaluation (cpu, cuda, cuda0, cuda1, ...) | ||
SAVE_DIR: 'output' # output folder name used for saving the model, logs and inference results | ||
TRAINED_MODEL: './checkpoints/pretrained/segformer/segformer.b3.1024x1024.city.pth' # trained model file path | ||
MODEL_PATH: '' # trained model file path | ||
|
||
MODEL: | ||
NAME: segformer # name of the model you are using | ||
VARIANT: B3 | ||
PRETRAINED: 'checkpoints/backbone/mit/mit_b3.pth' # backbone model's weight file path if the segmentation model use separate backbone like ResNet | ||
VARIANT: B3 # model variant | ||
PRETRAINED: 'checkpoints/backbone/mit/mit_b3.pth' # backbone model's weight | ||
|
||
DATASET: | ||
NAME: camvid # dataset name to be trained with (camvid, cityscapes, ade20k) | ||
ROOT: 'C:\\Users\\sithu\\Documents\\Datasets\\CamVid' # dataset root path | ||
ROOT: 'data/CamVid' # dataset root path | ||
|
||
TRAIN: | ||
IMG_SIZE: [480, 640] # training image size in (h, w) | ||
EPOCHS: 500 # number of epochs to train | ||
IMAGE_SIZE: [480, 480] # training image size in (h, w) | ||
EPOCHS: 300 # number of epochs to train | ||
BATCH_SIZE: 8 # batch size used to train | ||
WORKERS: 8 # number of workers used in training dataloader | ||
LR: 0.01 # initial learning rate used in optimizer | ||
DECAY: 0.0005 # decay rate used in optimizer | ||
WARMUP: 10 # warmup epochs used in scheduler | ||
SEED: 123 # random seed number | ||
EVAL_INTERVAL: 10 # evaluation interval during training | ||
LOSS: | ||
NAME: ohemce # loss function name (ohemce, ce, dice) | ||
CLS_WEIGHTS: true # use class weights in loss calculation | ||
THRESH: 0.7 # ohemce threshold or dice delta if you choose ohemce loss or dice loss | ||
OPTIMIZER: | ||
NAME: adamw # optimizer name | ||
LR: 1e-3 # initial learning rate used in optimizer | ||
WEIGHT_DECAY: 0.01 # decay rate used in optimizer | ||
SCHEDULER: | ||
NAME: warmuppolylr # shceduler name | ||
POWER: 0.9 # scheduler power | ||
WARMUP: 10 # warmup epochs used in scheduler | ||
WARMUP_RATIO: 0.1 # warmup ratio | ||
EVAL_INTERVAL: 20 # evaluation interval during training | ||
AMP: false # use AMP in training | ||
DDP: false # use DDP training | ||
|
||
EVAL: | ||
IMG_SIZE: [480, 640] # evaluation image size in (h, w) | ||
BATCH_SIZE: 8 # batch size used in evaluation | ||
WORKERS: 4 # number of workers used in evaluation dataloader | ||
MSF: false # multi-scale and flip evaluation | ||
SCALES: [0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0] # scales used in MSF evaluation | ||
IMAGE_SIZE: [480, 480] # evaluation image size in (h, w) | ||
MSF: | ||
ENABLE: false # multi-scale and flip evaluation | ||
FLIP: true # use flip in evaluation | ||
SCALES: [0.5, 0.75, 1.0, 1.25, 1.5, 1.75] # scales used in MSF evaluation | ||
|
||
TEST: | ||
MODE: image # inference mode (image, video, webcam) | ||
FILE: 'test_imgs' # filename or foldername (image mode), video name (video mode), 0 (webcam mode) | ||
IMG_SIZE: [480, 640] # inference image size in (h, w) | ||
FILE: 'assests/camvid' # filename or foldername (image mode), video name (video mode), 0 (webcam mode) | ||
IMAGE_SIZE: [480, 480] # inference image size in (h, w) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,46 @@ | ||
DEVICE: cpu # device used for training and evaluation (cpu, cuda, cuda0, cuda1, ...) | ||
DEVICE: cpu # device used for training and evaluation (cpu, cuda, cuda0, cuda1, ...) | ||
SAVE_DIR: 'output' # output folder name used for saving the model, logs and inference results | ||
TRAINED_MODEL: './checkpoints/pretrained/segformer/segformer.b3.1024x1024.city.pth' # trained model file path | ||
MODEL_PATH: 'checkpoints/pretrained/segformer/segformer.b3.1024x1024.city.160k.pth' # trained model file path | ||
|
||
MODEL: | ||
NAME: segformer # name of the model you are using | ||
VARIANT: B3 | ||
PRETRAINED: 'checkpoints/backbone/mit/mit_b3.pth' # backbone model's weight file path if the segmentation model use separate backbone like ResNet | ||
VARIANT: B3 # model variant | ||
PRETRAINED: 'checkpoints/backbone/mit/mit_b3.pth' # backbone model's weight | ||
|
||
DATASET: | ||
NAME: cityscapes # dataset name to be trained with (camvid, cityscapes, ade20k) | ||
ROOT: 'C:\\Users\\sithu\\Documents\\Datasets\\CityScapes' # dataset root path | ||
NAME: cityscapes # dataset name to be trained with (camvid, cityscapes, ade20k) | ||
ROOT: 'data/CityScapes' # dataset root path | ||
|
||
TRAIN: | ||
IMG_SIZE: [1024, 1024] # training image size in (h, w) | ||
IMAGE_SIZE: [1024, 1024] # training image size in (h, w) | ||
EPOCHS: 500 # number of epochs to train | ||
BATCH_SIZE: 8 # batch size used to train | ||
WORKERS: 8 # number of workers used in training dataloader | ||
LR: 0.01 # initial learning rate used in optimizer | ||
DECAY: 0.0005 # decay rate used in optimizer | ||
WARMUP: 10 # warmup epochs used in scheduler | ||
SEED: 123 # random seed number | ||
EVAL_INTERVAL: 10 # evaluation interval during training | ||
LOSS: | ||
NAME: ohemce # loss function name (ohemce, ce, dice) | ||
CLS_WEIGHTS: true # use class weights in loss calculation | ||
THRESH: 0.7 # ohemce threshold or dice delta if you choose ohemce loss or dice loss | ||
OPTIMIZER: | ||
NAME: adamw # optimizer name | ||
LR: 1e-3 # initial learning rate used in optimizer | ||
WEIGHT_DECAY: 0.01 # decay rate used in optimizer | ||
SCHEDULER: | ||
NAME: warmuppolylr # scheduler name | ||
POWER: 0.9 # scheduler power | ||
WARMUP: 10 # warmup epochs used in scheduler | ||
WARMUP_RATIO: 0.1 # warmup ratio | ||
EVAL_INTERVAL: 50 # evaluation interval during training | ||
AMP: false # use AMP in training | ||
DDP: false # use DDP training | ||
|
||
EVAL: | ||
IMG_SIZE: [1024, 1024] # evaluation image size in (h, w) | ||
BATCH_SIZE: 8 # batch size used in evaluation | ||
WORKERS: 4 # number of workers used in evaluation dataloader | ||
MSF: false # multi-scale and flip evaluation | ||
SCALES: [0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0] # scales used in MSF evaluation | ||
IMAGE_SIZE: [1024, 1024] # evaluation image size in (h, w) | ||
MSF: | ||
ENABLE: false # multi-scale and flip evaluation | ||
FLIP: true # use flip in evaluation | ||
SCALES: [0.5, 0.75, 1.0, 1.25, 1.5, 1.75] # scales used in MSF evaluation | ||
|
||
TEST: | ||
MODE: image # inference mode (image, video, webcam) | ||
FILE: 'test_imgs' # filename or foldername (image mode), video name (video mode), 0 (webcam mode) | ||
IMG_SIZE: [1024, 1024] # inference image size in (h, w) | ||
FILE: 'assests/cityscapes' # filename or foldername (image mode), video name (video mode), 0 (webcam mode) | ||
IMAGE_SIZE: [1024, 1024] # inference image size in (h, w) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.