Skip to content

Commit

Permalink
Correct target domain evluation data splits
Browse files Browse the repository at this point in the history
C2F: use all training data since val (500) is not enough for evaluation;
P2C: use all training data since val (500) is not enough for evaluation;
C2B: use val data since it is sufficient
  • Loading branch information
wymanCV authored Feb 29, 2024
1 parent 09808a3 commit 97af7f0
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions datasets/DAOD.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def get_paths(root):
'train_data_list': root / 'Cityscapes/AOOD_Main/train_target.txt',

'val_xml': root / 'Cityscapes/AOOD_Annotations',
'val_data_list': root / 'Cityscapes/AOOD_Main/val_target.txt',

# 'val_data_list': root / 'Cityscapes/AOOD_Main/val_target.txt',
'val_data_list': root / 'Cityscapes/AOOD_Main/train_target.txt',
},
'sim10k': {
'train_img': root / 'sim10k/VOC2012/JPEGImages',
Expand Down Expand Up @@ -152,14 +152,9 @@ def build(image_set, cfg, multi_task_eval_id=4):
if image_set == 'val':
if cfg.DATASET.DA_MODE == 'aood':
return AOODDetection(
# For C2F and P2C
img_folder=paths[target_domain]['train_img'],
ann_folder=paths[target_domain]['train_xml'],
data_list=paths[target_domain]['train_data_list'],
# For C2B
# img_folder=paths[target_domain]['val_img'],
# ann_folder=paths[target_domain]['val_xml'],
# data_list=paths[target_domain]['val_data_list'],
img_folder=paths[target_domain]['val_img'],
ann_folder=paths[target_domain]['val_xml'],
data_list=paths[target_domain]['val_data_list'],
transforms=make_coco_transforms(image_set),
remove_unk=False,
setting= cfg.DATASET.AOOD_SETTING,
Expand Down

0 comments on commit 97af7f0

Please sign in to comment.