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

Tackling the error message mentioned in #1 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions data_pipeline/ntu_rgbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def make_dataset(root, has_skel, evaluation, split, subsample):
vid_names = os.listdir(os.path.join(root, rgb_folder_name))
vid_names = sorted(vid_names)

if len(vid_names) == 0:
raise BaseException('No files found. Make sure dataset is in: "{}"'.format(
root))

if evaluation == 'cross-subject' and split != 'test':
vid_names = [n for n in vid_names if int(n[9:12]) in train_cross_subject]
elif evaluation == 'cross-subject' and split == 'test':
Expand Down
4 changes: 4 additions & 0 deletions data_pipeline/pku_mmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def make_dataset(root, evaluation, mode, folder_name=rgb_folder_name, subsample_
vid_names_split = f[idx].split(', ')[:-1]
vid_names = sorted(list(set(vid_names).intersection(set(vid_names_split))))

if len(vid_names) == 0:
raise BaseException('No files found. Make sure dataset is in: "{}"'.format(
root))

if mode == 0 and subsample_rate:
# Subsample for training
vid_names = vid_names[::subsample_rate]
Expand Down