-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to slove the datalaoder problem when training the model? #7
Comments
Thanks for your reply, It may be something wrong with my local train_info files, we will check it carefuly. Thanks again! |
It seems that some files in |
Maybe you can pull the latest code in the hub to your local directory. If this doesn't work, please let me know and I will clone the codes myself and go through the whole process again. |
Yes, we are using the latest code, and we don't make any changes. |
When I try to use the officile code to train the mdoel, I got the problem when laoding the training data:
Original Traceback (most recent call last):
File "/home/mayue/miniconda3/envs/ADAPT/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 302, in worker_loop
data = fetcher.fetch(index)
File "/home/mayue/miniconda3/envs/ADAPT/lib/python3.8/site-packages/torch/utils/data/utils/fetch.py", line 58, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/mayue/miniconda3/envs/ADAPT/lib/python3.8/site-packages/torch/utils/data/utils/fetch.py", line 58, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/csr/ADAPT/src/datasets/vision_language_tsv.py", line 395, in getitem
raw_frames, is_video = self.get_visual_data(img_idx, start, end)
File "/home/csr/ADAPT/src/datasets/vision_language_tsv.py", line 322, in get_visual_data
row = self.get_row_from_tsv(self.visual_tsv, idx)
File "/home/csr/ADAPT/src/datasets/vision_language_tsv.py", line 171, in get_row_from_tsv
assert row[0].split('/')[0] == self.image_keys[img_idx].split('')[-1] or row[0].split('')[-1] == self.image_keys[img_idx].split('')[-1]
AssertionError
I have seen the original code and I guess you have faced with the same problem, could you tell me how to fix it, thank you very much!
The text was updated successfully, but these errors were encountered: