Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change common semantic segmentation dataset detection rule #1572

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,10 @@ def build_cmdline_parser(cls, **kwargs):

@classmethod
def detect(cls, context: FormatDetectionContext) -> FormatDetectionConfidence:
path = context.require_file(f"**/{DATASET_META_FILE}")
path = osp.dirname(path)
context.require_file(DATASET_META_FILE)

context.require_file(osp.join(path, CommonSemanticSegmentationPath.IMAGES_DIR, "**", "*"))
context.require_file(osp.join(path, CommonSemanticSegmentationPath.MASKS_DIR, "**", "*"))
context.require_file(osp.join(CommonSemanticSegmentationPath.IMAGES_DIR, "**", "*"))
context.require_file(osp.join(CommonSemanticSegmentationPath.MASKS_DIR, "**", "*"))

return FormatDetectionConfidence.MEDIUM

Expand Down
Loading