Skip to content

Commit

Permalink
Adding doc for using samplers in finetuning (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
anwai98 authored May 1, 2024
1 parent 11c9a83 commit e4886fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_dataloaders(patch_shape, data_path):
"""
raw_transform = ResizeRawTrafo(patch_shape, do_rescaling=False)
label_transform = ResizeLabelTrafo(patch_shape)
sampler = MinInstanceSampler(min_num_instances=10)
sampler = MinInstanceSampler(min_num_instances=10) # ensures a minimum of 10 instances (inc. background)
label_dtype = torch.float32

train_loader = get_plantseg_loader(
Expand Down

0 comments on commit e4886fe

Please sign in to comment.