dewenzeng / positional_cl

code for paper Positional Contrastive Learning for Volumetric Medical Image Segmentation
56 stars 10 forks source link

question on package import #6

Closed yxzhang98 closed 2 years ago

yxzhang98 commented 2 years ago

Hi, i'm trying to run the code train_supervised.py, there is something wrong with the package metrics. There is no class named SegmentationMetrics when import this package. I would like to ask how this metrics package should be imported, thank you!

dewenzeng commented 2 years ago

@yxzhang98 The SegmentationMetric class is in the metrics.py. Normally, if your train_supervised.py is in the same directory as metrics.py, you can use from metrics import SegmentationMetric. Maybe you should remove the 's'?

yxzhang98 commented 2 years ago

oh! I see! I missed metric.py in the project for some reasons. thank you