ValueError: Caught ValueError in DataLoader worker process 0.
Traceback (most recent call last):
File "dense_train.py", line 318, in <module>
scheduler=scheduler)
File "/home/wujunxian/data/DEG/moment_localization/../lib/core/", line 29, in train
for sample in state['iterator']:
File "/opt/conda/lib/python3.6/site-packages/torch/utils/data/", line 517, in __next__
data = self._next_data()
File "/opt/conda/lib/python3.6/site-packages/torch/utils/data/", line 1199, in _next_data
return self._process_data(data)
File "/opt/conda/lib/python3.6/site-packages/torch/utils/data/", line 1225, in _process_data
data.reraise()
File "/opt/conda/lib/python3.6/site-packages/torch/_utils.py", line 429, in reraise
raise self.exc_type(msg)
ValueError: Caught ValueError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/opt/conda/lib/python3.6/site-packages/torch/utils/data/_utils/", line 202, in _worker_loop
data = fetcher.fetch(index)
File "/opt/conda/lib/python3.6/site-packages/torch/utils/data/_utils/", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/opt/conda/lib/python3.6/site-packages/torch/utils/data/_utils/", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/wujunxian/data/DEG/moment_localization/../lib/datasets/dense_activitynet.py", line 92, in __getitem__
visual_input, visual_mask = self.get_video_features(video_id)
File "/home/wujunxian/data/DEG/moment_localization/../lib/datasets/dense_activitynet.py", line 146, in get_video_features
features = torch.from_numpy(f[vid]['c3d_features'][:])
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/opt/conda/lib/python3.6/site-packages/h5py/_hl/", line 506, in __getitem__
new_dtype = readtime_dtype(self.id.dtype, names)
File "/opt/conda/lib/python3.6/site-packages/h5py/_hl/", line 48, in readtime_dtype
raise ValueError("Field names only allowed for compound types")
ValueError: Field names only allowed for compound types