Skip to content
Snippets Groups Projects
Commit 0d2cde7e authored by Tamino Huxohl's avatar Tamino Huxohl
Browse files

fix copy method in patches dataset

parent d0694efc
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,8 @@ class MuMapPatchDataset(MuMapDataset): ...@@ -46,6 +46,8 @@ class MuMapPatchDataset(MuMapDataset):
self.generate_patches() self.generate_patches()
def copy(self, split_name: str): def copy(self, split_name: str):
kwargs = self.kwargs.copy()
kwargs["split_name"] = split_name
return MuMapPatchDataset( return MuMapPatchDataset(
dataset_dir=self.dir, dataset_dir=self.dir,
patches_per_image=self.patches_per_image, patches_per_image=self.patches_per_image,
...@@ -53,7 +55,7 @@ class MuMapPatchDataset(MuMapDataset): ...@@ -53,7 +55,7 @@ class MuMapPatchDataset(MuMapDataset):
patch_size_z=self.patch_size_z, patch_size_z=self.patch_size_z,
patch_offset=self.patch_offset, patch_offset=self.patch_offset,
shuffle=self.shuffle, shuffle=self.shuffle,
**self.kwargs, **kwargs,
) )
def generate_patches(self): def generate_patches(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment