Skip to content

using UCF101 dataset in Avalanche for Continual Learning #1470

@askrinihad

Description

@askrinihad

Hello,

I am attempting to build a continual learning model using the Avalanche library, specifically using the UCF101 dataset. However, I have encountered an issue while trying to execute the provided code. Here's the code snippet:
train_dataset = UCF101(ucf_data_dir, ucf_label_dir, frames_per_clip=frames_per_clip,
step_between_clips=step_between_clips, train=True, transform=torchvision.transforms.ToTensor())
test_dataset = UCF101(ucf_data_dir, ucf_label_dir, frames_per_clip=frames_per_clip,
step_between_clips=step_between_clips, train=False, transform=torchvision.transforms.ToTensor())

scenario = nc_benchmark(
train_dataset, test_dataset, n_experiences=60, shuffle=True, seed=1234, task_labels=True
)
The error message I encountered is as follows: Unsupported dataset: must have a valid targets field or has to be a Tensor Dataset with at least 2 Tensors
I have tried various methods in Avalanche to address the issue, but none have worked. If you can offer any insight on how to solve this problem or provide an alternative approach to using UCF101 with Avalanche for continual learning, I would greatly appreciate it.
Thank you for your assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions