This can be marked static

This commit is contained in:
henryruhs
2025-02-21 08:39:08 +01:00
parent 9bd68c3d14
commit da51c5336d
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ class DataLoaderRecognition(Dataset[torch.Tensor]):
def __len__(self) -> int:
return len(self.image_paths)
def compose_transforms(self) -> transforms:
@staticmethod
def compose_transforms() -> transforms:
return transforms.Compose(
[
transforms.ToPILImage(),
+2 -1
View File
@@ -39,7 +39,8 @@ class DataLoader(TensorDataset):
image_path_set[directory_path] = image_paths
return image_paths, image_path_set
def compose_transforms(self) -> transforms:
@staticmethod
def compose_transforms() -> transforms:
return transforms.Compose(
[
transforms.ToPILImage(),