High-Resolution-Remote-Sensing-Semantic-Segmentation-PyTorch icon indicating copy to clipboard operation
High-Resolution-Remote-Sensing-Semantic-Segmentation-PyTorch copied to clipboard

error: no module name gid_classes

Open AirHighway opened this issue 2 years ago • 4 comments

from class_names import gid_classes

In the dataset.py file, the line 4:

from class_names import gid_classes

But the file class_names.py just have the def fifteen_classes and def five_classes functions, where are the gid_classes?

AirHighway avatar Mar 04 '22 00:03 AirHighway

Hello, has the problem been solved

ROY-SNN avatar Apr 28 '22 03:04 ROY-SNN

The GID is a dataset. PAPER DATASET More information you can capture in the README.md.

I think the gid_classes is a function that you choose by yourself, how many classes land cover you want to show, then you will choose what function. Of course, it maybe determined by the data label.

The function def fifteen_classes and def five_classes mean that the label has fifteen classes land cover and five classes land cover, separately. They are examples of the gid_classes.

AirHighway avatar May 01 '22 00:05 AirHighway

Here, I review the train.py and know the classes is default five. So you try change the from class_names import gid_classes to from class_names import five_classes. Also, you should correct the codes in line23 in dataset.py which self.class_names = gid_classes() to self.class_names = five_classes(). If through this step, the codes also can not run, I suggested that you read more detail about the codes. If you find the way solve this problem, I'm glad to communication with you.

AirHighway avatar May 01 '22 01:05 AirHighway

@ROY-SNN I have ask the question, but some experiments should you do self.

AirHighway avatar May 01 '22 01:05 AirHighway