The following arguments are used when running the retrieval training task via main_task_retrieval.py.
#!/bin/bash
# Note: These are descriptions of the flags used in the training commands
--features_path: The video root path
--linear_patch: Set to `2d` or `3d`
--sim_header: Similarity calculation approach. Options: `meanP`, `seqLSTM`, `seqTransf`, or `tightTransf`
--pretrained_clip_name: CLIP model name. Options: `ViT-B/32` or `ViT-B/16`
--resume_model: Reload saved optimizer state to continue training. Requires setting `--init_model` simultaneously.
--do_train: Flag to enable training mode
--num_thread_reader: Number of reader threads
--epochs: Number of training epochs
--batch_size: Training batch size
--n_display: Number of items to display
--train_csv: Path to training CSV file
--val_csv: Path to validation CSV file
--data_path: Path to data JSON file
--output_dir: Directory to save checkpoints
--lr: Learning rate
--max_words: Maximum number of words
--max_frames: Maximum number of frames
--batch_size_val: Validation batch size
--datatype: Dataset type (e.g., `msrvtt`, `msvd`, `lsmdc`, `activity`, `didemo`)
--expand_msrvtt_sentences: Flag for MSRVTT specific sentence expansion
--feature_framerate: Feature framerate
--coef_lr: Learning rate coefficient
--freeze_layer_num: Number of layers to freeze
--slice_framepos: Frame slicing position
--loose_type: Flag for loose type similarity