SEQ CHESTX#
Classes#
- class datasets.seq_chestx.ChestX(root, train=True, transform=None, target_transform=None, download=False)[source]#
- Bases: - Dataset- LABELS = ['Cardiomegaly', 'Consolidation', 'Edema', 'Fibrosis', 'Pleural Thickening', 'Pneumothorax']#
- Overrides the ChestX dataset to change the getitem function. 
 - N_CLASSES = 6#
- To reduce the effect of the severe imbalance in the dataset, we drop the two classes with the smallest and largest amount of samples. 
 
- class datasets.seq_chestx.SequentialChestX(args)[source]#
- Bases: - ContinualDataset- MEAN = [0.485, 0.456, 0.406]#
 - STD = [0.229, 0.224, 0.225]#
 - TEST_TRANSFORM = Compose( Resize(size=(224, 224), interpolation=bicubic, max_size=None, antialias=True) ToTensor() Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) )#
 - TRANSFORM = Compose( Resize(size=(224, 224), interpolation=bicubic, max_size=None, antialias=True) ToTensor() Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) )#
 - normalize = Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])#