Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

error: no module name gid_classes #7

Open
AirHighway opened this issue Mar 4, 2022 · 4 comments
Open

error: no module name gid_classes #7

AirHighway opened this issue Mar 4, 2022 · 4 comments

Comments

@AirHighway
Copy link

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?

@ROY-SNN
Copy link

ROY-SNN commented Apr 28, 2022

Hello, has the problem been solved

@AirHighway
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants