You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run train_mass_property.sh I get the following error:
Traceback (most recent call last):
File "train_enc_clevrer.py", line 183, in <module>
train_loader = build_dataloader(args, phase='train', sim_st_idx=args.train_st_idx, sim_ed_idx= args.train_ed_idx)
File "train_enc_clevrer.py", line 218, in train
for batch_idx, data_list in enumerate(train_loader):
File "/home/XX/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 615, in __next__
batch = self.collate_fn([self.dataset[i] for i in indices])
File "/home/XX/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 615, in <listcomp>
batch = self.collate_fn([self.dataset[i] for i in indices])
File "/data/property_learner_predictor/clevrer/clevrer_dataset.py", line 160, in __getitem__
return self.__getitem_render__(index)
File "/data/property_learner_predictor/clevrer/clevrer_dataset.py", line 249, in __getitem_render__
smp_num = random.randint(1, ref_num)
File "/usr/lib/python3.6/random.py", line 221, in randint
return self.randrange(a, b+1)
File "/usr/lib/python3.6/random.py", line 199, in randrange
raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (1,1, 0)
This happens when the dataloader is fetching from the dataset. It seems that when certain indices of the dataset are used, there are some files that do not exist. For example dataset[4052] does not work, since in v16_prp_reference/config there are no sim_06052_X.json files (4052 maps to 6052 file index). Also, files sim_XXXXX_X.json with index 3042-3999 are missing. I manually changed self.sim_list in clevrer/clevrer_dataset.py to a custom list of numbers and it seems to work fine for now.
The text was updated successfully, but these errors were encountered:
AdamIshay
changed the title
Missing Reference Video Files
Missing Reference JSON Files
Jul 2, 2022
When trying to run
train_mass_property.sh
I get the following error:This happens when the dataloader is fetching from the dataset. It seems that when certain indices of the dataset are used, there are some files that do not exist. For example dataset[4052] does not work, since in
v16_prp_reference/config
there are nosim_06052_X.json
files (4052 maps to 6052 file index). Also, filessim_XXXXX_X.json
with index 3042-3999 are missing. I manually changed self.sim_list inclevrer/clevrer_dataset.py
to a custom list of numbers and it seems to work fine for now.The text was updated successfully, but these errors were encountered: