Thank you for open-sourcing this amazing work. I have tried to train HerdNet for single class detection (i.e. only 1 class for wildlife) but the evaluation results are a bit strange.
patch_size=image_size # 800 in my case
transforms=dict()
transforms["train"] = (
[
A.Resize(width=patch_size, height=patch_size, p=1.0),
A.VerticalFlip(p=0.5),
A.HorizontalFlip(p=0.5),
A.RandomRotate90(p=0.5),
A.RandomBrightnessContrast(
brightness_limit=0.2, contrast_limit=0.2, p=0.2
),
A.Blur(blur_limit=15, p=0.2),
A.Normalize(
normalization=normalization,
p=1.0,
mean=(0.485, 0.456, 0.406),
std=(0.229, 0.224, 0.225),
),
],
[
MultiTransformsWrapper(
[
FIDT(num_classes=num_classes, down_ratio=down_ratio),
PointsToMask(
radius=2,
num_classes=num_classes,
squeeze=True,
down_ratio=int(patch_size // (16 * patch_size / 512)),
),
]
)
],
)
transforms["val"] = (
[
A.Resize(width=patch_size, height=patch_size, p=1.0),
A.Normalize(
normalization=normalization,
p=1.0,
mean=(0.485, 0.456, 0.406),
std=(0.229, 0.224, 0.225),
),
],
[
DownSample(down_ratio=down_ratio, anno_type="point"),
],
)
split='val'
dataset = FolderDataset(
csv_file=df_annotations,
root_dir="",
albu_transforms=transforms[split][0],
end_transforms=transforms[split][1],
images_paths=selected_images, # I am overriding root_dir arguments and assigning directly FolderDataset.folder_images
)
Hello Alexandre,
Thank you for open-sourcing this amazing work. I have tried to train HerdNet for single class detection (i.e. only 1 class for wildlife) but the evaluation results are a bit strange.
I am using the same pipeline as described in the tutorials:
Here is how I'm loading the data:
Thanks,
Fadel