Skip to content

Commit

Permalink
Enabled drawing samples from different chunks instead of retrieving a…
Browse files Browse the repository at this point in the history
…ll from the same chunk until depleted
  • Loading branch information
fercer committed Oct 11, 2024
1 parent 8ebf236 commit 349d2b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/napari_activelearning/_acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def fine_tune(self, dataset_metadata_list: Iterable[
dataset = zds.ZarrDataset(
list(dataset_metadata.values()),
return_positions=False,
draw_same_chunk=True,
draw_same_chunk=False,
patch_sampler=StaticPatchSampler(
patch_size=patch_sizes,
top_lefts=top_lefts,
Expand Down
2 changes: 1 addition & 1 deletion src/napari_activelearning/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_dataloader(
train_dataset = zds.ZarrDataset(
list(dataset_metadata.values()),
return_positions=True,
draw_same_chunk=True,
draw_same_chunk=False,
patch_sampler=patch_sampler,
shuffle=shuffle
)
Expand Down

0 comments on commit 349d2b5

Please sign in to comment.