Home

Awesome

utilsCIL

Utility functions for CIL.

In this repository, we provide the following utility classes:

from MyImageFolder import ImagesListFileFolder
train_dataset = ImagesListFileFolder(train_list, transform=transform_train, random_seed=args.random_seed, range_classes=args.range_classes)
train_loader = torch.utils.data.DataLoader(
    train_dataset, batch_size=args.batch_size,
    shuffle=True, num_workers=args.workers,
    pin_memory=True)
from MyFeatureFolder import L4FeaturesDataset
train_dataset = L4FeaturesDataset(train_dir, range_classes=args.range_classes)
train_loader = torch.utils.data.DataLoader(
    train_dataset, batch_size=args.batch_size,
    shuffle=True, num_workers=args.workers,
    pin_memory=True)