pritamqu commited on
Commit
bd4f334
·
verified ·
1 Parent(s): f3e6839

fixed names

Browse files
Files changed (1) hide show
  1. dataset.py +3 -3
dataset.py CHANGED
@@ -13,11 +13,11 @@ The final output should be in this format:
13
  Correct order: <mention the Clip numbers separated by a comma>
14
  '''
15
 
16
- pp_prompts=dict(
17
  default=PROMPT,
18
  rrd="",
19
  )
20
- valid_modes=list(pp_prompts.keys())
21
 
22
  class VCRBench(torch.utils.data.Dataset):
23
  """basic dataset for inference"""
@@ -36,7 +36,7 @@ class VCRBench(torch.utils.data.Dataset):
36
  self.load_video_kwargs = load_video_kwargs
37
  assert mode in valid_modes, print(f"choose from: {valid_modes}")
38
  self.mode = mode
39
- self.prompt = pp_prompts[mode]
40
  self.video_root = os.path.join(video_root, 'videos')
41
 
42
  def __len__(self) -> int:
 
13
  Correct order: <mention the Clip numbers separated by a comma>
14
  '''
15
 
16
+ prompts=dict(
17
  default=PROMPT,
18
  rrd="",
19
  )
20
+ valid_modes=list(prompts.keys())
21
 
22
  class VCRBench(torch.utils.data.Dataset):
23
  """basic dataset for inference"""
 
36
  self.load_video_kwargs = load_video_kwargs
37
  assert mode in valid_modes, print(f"choose from: {valid_modes}")
38
  self.mode = mode
39
+ self.prompt = prompts[mode]
40
  self.video_root = os.path.join(video_root, 'videos')
41
 
42
  def __len__(self) -> int: