import os from yolox.exp import Exp as MyExp # type: ignore #from yolox.data import COCODataset # type: ignore class Exp(MyExp): def __init__(self): super(Exp, self).__init__() self.exp_name = os.path.split(os.path.realpath(__file__))[1].split(".")[0] self.num_classes = 7 self.class_names=["Angular Leafspot", "Leaf Spot", "Anthracnose Fruit Rot", "Blossom Blight", "Gray Mold", "Powdery Mildew Fruit", "Powdery Mildew Leaf"] # small # self.depth = 0.33 # self.width = 0.50 # tiny self.depth = 0.33 self.width = 0.375 self.input_size = (416, 416) self.mosaic_scale = (0.5, 1.5) self.random_size = (10, 20) self.test_size = (416, 416) self.enable_mixup = False self.data_dir = "coco_dataset" self.train_ann = "instances_train.json" self.val_ann = "instances_val.json" self.test_ann = "instances_test.json"