Skip to content

TypeError in evaluation stage: Box.__init__() takes 5 positional arguments but 6 were given #1842

Answered by AdeelH
NoaMills-USDA asked this question in Q&A
Discussion options

You must be logged in to vote

This is a bug. Thanks for catching that!

I'll make a PR tomorrow but if you need a quick fix, you can change lines 186-188 in semantic_segmentation_label_store.py to

        _, h, w = score_arr.shape
        labels = SemanticSegmentationSmoothLabels(
            extent=Box(0, 0, h, w), num_classes=len(self.class_config))

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NoaMills-USDA
Comment options

@AdeelH
Comment options

Answer selected by NoaMills-USDA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants