Skip to content

Commit

Permalink
added choices for domain
Browse files Browse the repository at this point in the history
  • Loading branch information
awkrail committed Oct 7, 2024
1 parent 5e4de26 commit e2cc675
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ def check_valid_combination(dataset, feature, domain):
help='feature name. select from [resnet_glove, clip, clip_slowfast, clip_slowfast_pann, i3d_clip, clap].'
'NOTE: i3d_clip and clip_slowfast_pann are only for TVSum and QVHighlight, respectively.')
parser.add_argument('--resume', '-r', type=str, help='specify model path for fine-tuning. If None, train the model from scratch.')
parser.add_argument('--domain', '-dm', type=str, help='domain for highlight detection dataset (e.g., BK for TVSum, dog for YouTube Highlight).')
parser.add_argument('--domain', '-dm', type=str,
choices=['BK', 'BT', 'DS', 'FM', 'GA', 'MS', 'PK', 'PR', 'VT', 'VU',
'dog', 'gymnastics', 'parkour', 'skating', 'skiing', 'surfing'],
help='domain for highlight detection dataset (e.g., BK for TVSum, dog for YouTube Highlight).')
args = parser.parse_args()

is_valid = check_valid_combination(args.dataset, args.feature, args.domain)
Expand Down

0 comments on commit e2cc675

Please sign in to comment.