SEQ CROPDISEASE#

Classes#

class datasets.seq_cropdisease.CropDisease(root, train=True, transform=None, target_transform=None, download=False)[source]#

Bases: Dataset

LABELS = ['Apple___Apple_scab', 'Apple___Black_rot', 'Apple___healthy', 'Blueberry___healthy', 'Cherry___Powdery_mildew', 'Cherry___healthy', 'Corn___Cercospora_leaf_spot Gray_leaf_spot', 'Corn___Common_rust', 'Corn___Northern_Leaf_Blight', 'Corn___healthy', 'Grape___Black_rot', 'Grape___Esca_(Black_Measles)', 'Grape___Leaf_blight_(Isariopsis_Leaf_Spot)', 'Grape___healthy', 'Orange___Haunglongbing_(Citrus_greening)', 'Peach___Bacterial_spot', 'Pepper,_bell___Bacterial_spot', 'Pepper,_bell___healthy', 'Potato___Early_blight', 'Potato___Late_blight', 'Raspberry___healthy', 'Soybean___healthy', 'Squash___Powdery_mildew', 'Strawberry___Leaf_scorch', 'Strawberry___healthy', 'Tomato___Bacterial_spot', 'Tomato___Early_blight', 'Tomato___Late_blight', 'Tomato___Leaf_Mold', 'Tomato___Septoria_leaf_spot', 'Tomato___Spider_mites Two-spotted_spider_mite', 'Tomato___Target_Spot', 'Tomato___Tomato_Yellow_Leaf_Curl_Virus', 'Tomato___Tomato_mosaic_virus', 'Tomato___healthy']#
class datasets.seq_cropdisease.SequentialCropDisease(args)[source]#

Bases: ContinualDataset

MEAN = [0.485, 0.456, 0.406]#
NAME: str = 'seq-cropdisease'#
N_CLASSES: int = 35#
N_CLASSES_PER_TASK: int = 5#
N_TASKS: int = 7#
SETTING: str = 'class-il'#
SIZE: Tuple[int] = (224, 224)#
STD = [0.229, 0.224, 0.225]#
TEST_TRANSFORM = Compose(     Resize(size=(224, 224), interpolation=bicubic, max_size=None, antialias=True)     CenterCrop(size=(224, 224))     ToTensor()     Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) )#
TRANSFORM = Compose(     RandomResizedCrop(size=(224, 224), scale=(0.08, 1.0), ratio=(0.75, 1.3333), interpolation=bicubic, antialias=True)     RandomHorizontalFlip(p=0.5)     ToTensor()     Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) )#
get_backbone()[source]#
get_batch_size()[source]#
get_class_names()[source]#
get_data_loaders()[source]#
static get_denormalization_transform()[source]#
get_epochs()[source]#
static get_loss()[source]#
static get_normalization_transform()[source]#
static get_prompt_templates()[source]#
static get_transform()[source]#