Update InternVideo2_6B_V5_ACT75_eval.py
Browse files
InternVideo2_6B_V5_ACT75_eval.py
CHANGED
|
@@ -126,6 +126,12 @@ def main():
|
|
| 126 |
parser = argparse.ArgumentParser(
|
| 127 |
description="Evaluate InternVideo2 sliding-window retrieval."
|
| 128 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
parser.add_argument(
|
| 130 |
"--num_frames",
|
| 131 |
type=int,
|
|
@@ -144,7 +150,7 @@ def main():
|
|
| 144 |
|
| 145 |
os.chdir(iv2_path / 'InternVideo2' / 'multi_modality')
|
| 146 |
sys.path.append(os.getcwd())
|
| 147 |
-
run_command('git checkout
|
| 148 |
|
| 149 |
MODEL_NAME = '6B'
|
| 150 |
vision_ckpt = download_checkpoint(
|
|
|
|
| 126 |
parser = argparse.ArgumentParser(
|
| 127 |
description="Evaluate InternVideo2 sliding-window retrieval."
|
| 128 |
)
|
| 129 |
+
parser.add_argument(
|
| 130 |
+
"--branch",
|
| 131 |
+
type=str,
|
| 132 |
+
default="main",
|
| 133 |
+
help="Branch to use for evaluation."
|
| 134 |
+
)
|
| 135 |
parser.add_argument(
|
| 136 |
"--num_frames",
|
| 137 |
type=int,
|
|
|
|
| 150 |
|
| 151 |
os.chdir(iv2_path / 'InternVideo2' / 'multi_modality')
|
| 152 |
sys.path.append(os.getcwd())
|
| 153 |
+
run_command(f'git checkout {args.branch}', cwd=os.getcwd())
|
| 154 |
|
| 155 |
MODEL_NAME = '6B'
|
| 156 |
vision_ckpt = download_checkpoint(
|