generated from cavalleria/pytorch-template
-
Notifications
You must be signed in to change notification settings - Fork 11
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
f68aaf3
commit 253ab9e
Showing
12 changed files
with
767 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ | |
} | ||
}, | ||
|
||
"loss": "bce_loss", | ||
"loss": "ce_loss", | ||
"metrics": [ | ||
"miou" | ||
], | ||
|
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 |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"name": "HumanSeg", | ||
"n_gpu": 1, | ||
|
||
"arch": { | ||
"type": "HighResolutionNet", | ||
"args": { | ||
"backbone": null, | ||
"num_classes": 2, | ||
"pretrained_backbone": "./pretrained/hrnet_w18_small_v2.pth" | ||
} | ||
}, | ||
|
||
"train_loader": { | ||
"type": "SegmentationDataLoader", | ||
"args":{ | ||
"prefix": "/workspace/data", | ||
"pairs_file": "../data/train_mask.txt", | ||
"color_channel": "RGB", | ||
"resize": 320, | ||
"padding_value": 0, | ||
"is_training": true, | ||
"noise_std": 3, | ||
"crop_range": [0.90, 1.0], | ||
"flip_hor": 0.5, | ||
"rotate": 0.0, | ||
"angle": 10, | ||
"normalize": true, | ||
"one_hot": false, | ||
"shuffle": true, | ||
"batch_size": 16, | ||
"n_workers": 24, | ||
"pin_memory": true | ||
} | ||
}, | ||
|
||
"valid_loader": { | ||
"type": "SegmentationDataLoader", | ||
"args":{ | ||
"prefix": "/workspace/data", | ||
"pairs_file": "../data/valid_mask.txt", | ||
"color_channel": "RGB", | ||
"resize": 320, | ||
"padding_value": 0, | ||
"is_training": false, | ||
"normalize": true, | ||
"one_hot": false, | ||
"shuffle": false, | ||
"batch_size": 16, | ||
"n_workers": 24, | ||
"pin_memory": true | ||
} | ||
}, | ||
|
||
"optimizer": { | ||
"type": "SGD", | ||
"args":{ | ||
"lr": 1e-2, | ||
"momentum": 0.9, | ||
"weight_decay": 1e-8 | ||
} | ||
}, | ||
|
||
"loss": "custom_hrnet_loss", | ||
"metrics": [ | ||
"custom_hrnet_miou" | ||
], | ||
|
||
"lr_scheduler": { | ||
"type":"StepLR", | ||
"args":{ | ||
"step_size": 100, | ||
"gamma": 1.0 | ||
} | ||
}, | ||
|
||
"trainer": { | ||
"epochs": 80, | ||
"save_dir": "/workspace/models/", | ||
"save_freq": 1, | ||
"verbosity": 2, | ||
"monitor": "valid_loss", | ||
"monitor_mode": "min" | ||
}, | ||
|
||
"visualization":{ | ||
"tensorboardX": true, | ||
"log_dir": "/workspace/models/" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -61,7 +61,7 @@ | |
} | ||
}, | ||
|
||
"loss": "lovasz_softmax", | ||
"loss": "bce_loss", | ||
"metrics": [ | ||
"miou" | ||
], | ||
|
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,2 +1,3 @@ | ||
from models.unet import UNet | ||
from models.deeplabv3_plus import DeepLabV3Plus | ||
from models.deeplabv3_plus import DeepLabV3Plus | ||
from models.hrnet import HighResolutionNet |
Oops, something went wrong.