-
Notifications
You must be signed in to change notification settings - Fork 22
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
IndexError #10
Comments
This is mostly caused by a wrong dataset link. You could check the dataset path. To ensure you correctly load the images, you can print the size of input_data in line 50 in dataset_loader.py to see whether it is a null tensor. |
I created a soft link to dataset PHOENIX14-T as README said. I don't konw if it is correct, in the file system, I can access the dataset normally by the soft link. But after printing I find that the length of |
This means you don't correctly create links to the dataset, and read null data. You may check the path to the dataset.
…---Original---
From: ***@***.***>
Date: Tue, Aug 1, 2023 10:06 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [hulianyuyy/CorrNet] IndexError (Issue #10)
I created a soft link to dataset PHOENIX14-T as README said. I don't konw if it is correct, in the file system, I can access the dataset normally by a soft link. But after printing I find that the length of input_data is 0 in line 50 in dataset_loader.py
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sorry, but I don't understand where the soft link went wrong, I followed the |
You should create the soft link to the downloaded phoenix2014-T dataset. Under this folder, there are four subfolders "annotations, evaluation, features, models". You can check your path. |
Hi, I had the exact same error. Through debugging I found that the video paths in I moved the files in the features folders into a new "1" subdirectory by executing following script for dev, train and test-folders: import os
import shutil
dir_path = "/home/user/Documents/CorrNet/dataset/phoenix2014-T/features/fullFrame-210x260px/dev"
subfolders = [x for x in os.listdir(dir_path) if os.path.isdir(os.path.join(dir_path, x))]
for dir in subfolders:
if "1" in os.listdir(os.path.join(dir_path, dir)):
continue # 1 dir already exists, assume files are in correct dir
files = [x for x in os.listdir(os.path.join(dir_path, dir)) if os.path.isfile(os.path.join(dir_path, dir, x))]
goal_dir = os.path.join(dir_path, dir, "1")
os.makedirs(goal_dir)
for f in files:
shutil.move(os.path.join(dir_path, dir, f), goal_dir) Then I ran |
Thank you, I solved the problem. |
Hi !
I tried to run
python main.py --device 0 --load-weights /weitghts/dev_18.90_PHOENIX14-T.pt --phase test
, but I got an IndexError.The detailed error message is as follows:
I'm sure my dataset path is correct.
The complete error message is as follows:
All errors occur after the dataset has finished loading.
The text was updated successfully, but these errors were encountered: