TypeError: Caught TypeError in DataLoader worker process 6.
File "/video_llama/datasets/datasets/webvid_datasets.py", line 70, in __getitem__
video_path = self._get_video_path(sample_dict)
File "/video_llama/datasets/datasets/webvid_datasets.py", line 50, in _get_video_path
rel_video_fp = os.path.join(sample['page_dir'], str(sample['videoid']) + '.mp4')
File "/opt/conda/lib/python3.10/posixpath.py", line 76, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not float
After repair:
Train: data epoch: [1] [ 150/2500] eta: 0:10:20 lr: 0.000098 loss: 2.7766 time: 0.2573 data: 0.0000 max mem: 53623
[15:49:40]ERROR opening: /alluxio/multi-data/webvid/val_file/nan/24205120.mp4, No such file or directory
Failed to load examples with video: /alluxio/multi-data/webvid/val_file/nan/24205120.mp4. Will randomly sample an example as a replacement.
Train: data epoch: [1] [ 200/2500] eta: 0:10:04 lr: 0.000098 loss: 2.3127 time: 0.2587 data: 0.0000 max mem: 53623
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before repair:
After repair: