-
Notifications
You must be signed in to change notification settings - Fork 12
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
d3e8a7b
commit 866f0e7
Showing
3 changed files
with
90 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -544,4 +544,4 @@ def process(i): | |
|
||
if __name__ == "__main__": | ||
|
||
main() | ||
main() |
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,20 +1,20 @@ | ||
# Training DeepLab-V2 using pseudo segmentation labels | ||
|
||
#DATASET=voc12_2gpu | ||
#LOG_DIR=Deeplabv2_pseudo_segmentation_labels_2gpu | ||
#GT_DIR=refined_pseudo_segmentation_labels | ||
#CUDA_VISIBLE_DEVICES=1,2 python main.py train -c configs/${DATASET}.yaml --gt_path=${GT_DIR} --log_dir=${LOG_DIR} | ||
DATASET=voc12 | ||
CONFIG=configs/voc12_2gpu.yaml | ||
LOG_DIR=Deeplabv2_pseudo_segmentation_labels_2gpu | ||
GT_DIR=refined_pseudo_segmentation_labels | ||
|
||
#--------------------------------------------------------------------------------------------------------------------- | ||
# Training DeepLab-V2 using pseudo segmentation labels | ||
CUDA_VISIBLE_DEVICES=0,1 python train.py --config_path ${CONFIG} --gt_path ${GT_DIR} --log_dir ${LOG_DIR} | ||
|
||
#DATASET=voc12_4gpu | ||
#LOG_DIR=Deeplabv2_pseudo_segmentation_labels_4gpu | ||
#GT_DIR=refined_pseudo_segmentation_labels | ||
#CUDA_VISIBLE_DEVICES=0,1,2,3 python main.py train -c configs/${DATASET}.yaml --gt_path=${GT_DIR} --log_dir=${LOG_DIR} | ||
|
||
# evaluation | ||
CUDA_VISIBLE_DEVICES=0 python main.py test \ | ||
-c configs/${DATASET}.yaml \ | ||
-m data/models/${LOG_DIR}/deeplabv2_resnet101_msc/*/checkpoint_final.pth \ | ||
--log_dir=${LOG_DIR} | ||
|
||
CONFIG=configs/voc12_2gpu.yaml | ||
LOG_DIR=Deeplabv2_new | ||
GT_DIR=refined_pseudo_segmentation_labels | ||
|
||
CUDA_VISIBLE_DEVICES=0 python main_v2.py --config_path ${CONFIG} --gt_path ${GT_DIR} --log_dir ${LOG_DIR} | ||
# evaluate the model with CRF post-processing | ||
CUDA_VISIBLE_DEVICES=0 python main.py crf \ | ||
-c configs/${DATASET}.yaml \ | ||
--log_dir=${LOG_DIR} |