Skip to content
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

Skip Non-Skeleton File during data import #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AlexanderMelde
Copy link

When parsing all content of the data/nturgbd_raw data/nturgbd120_raw directories, the following files are found as well:

  • NTU_RGBD_samples_with_missing_skeletons.txt
  • NTU_RGBD120_samples_with_missing_skeletons.txt

In code, the line action_class = int(filename[filename.find('A') + 1:filename.find('A') + 4]) will fail for these files.
This is because those are not named in the NTU dataset scheme and contain no letter A.
The expression will be resolved to int(filename[0:3]) which equals int('NTU').
NTU cannot be converted to an int, which is why the code execution gets stopped.

The fix is to skip these two files during parsing of NTU dataset files.

When parsing all content of the `data/nturgbd_raw` directory, the `NTU_RGBD_samples_with_missing_skeletons.txt` file is found as well.
The line `action_class = int(filename[filename.find('A') + 1:filename.find('A') + 4])` will fail for this file, as no letter `A` can be found and `int(filename[0:3])` which equals `int('NTU')` cannot be calculated.
When parsing all content of the `data/nturgbd_raw` directory, the `NTU_RGBD_samples_with_missing_skeletons.txt` file is found as well.
The line `action_class = int(filename[filename.find('A') + 1:filename.find('A') + 4])` will fail for this file, as no letter `A` can be found and `int(filename[0:3])` which equals `int('NTU')` cannot be calculated.
When parsing all content of the `data/nturgbd120_raw` directory, the `NTU_RGBD120_samples_with_missing_skeletons.txt` file is found as well.
The line `action_class = int(filename[filename.find('A') + 1:filename.find('A') + 4])` will fail for this file, as no letter `A` can be found and `int(filename[0:3])` which equals `int('NTU')` cannot be calculated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant