Skip to content

Commit 05fbe45

Browse files
authored
Minor fix to handle is_seg_dataset argument (#892)
Allows users to pass the is_seg_dataset, if desired. Otherwise, sets it to internal framework choice.
1 parent 80f4af4 commit 05fbe45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micro_sam/training/training.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def default_sam_dataset(
421421
"""
422422

423423
# By default, let the 'default_segmentation_dataset' heuristic decide for itself.
424-
is_seg_dataset = None
424+
is_seg_dataset = kwargs.pop("is_seg_dataset", None)
425425

426426
# Check if the raw inputs are RGB or not. If yes, use 'ImageCollectionDataset'.
427427
# Get valid raw paths to make checks possible.

0 commit comments

Comments
 (0)