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):
self.generate_patches()
def copy(self, split_name: str):
kwargs = self.kwargs.copy()
kwargs["split_name"] = split_name
return MuMapPatchDataset(
dataset_dir=self.dir,
patches_per_image=self.patches_per_image,
......@@ -53,7 +55,7 @@ class MuMapPatchDataset(MuMapDataset):
patch_size_z=self.patch_size_z,
patch_offset=self.patch_offset,
shuffle=self.shuffle,
**self.kwargs,
**kwargs,
)
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