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

Interpretation of 06_classify_image.py outputs #4

Closed
tonyboston-au opened this issue Aug 29, 2019 · 2 comments
Closed

Interpretation of 06_classify_image.py outputs #4

tonyboston-au opened this issue Aug 29, 2019 · 2 comments

Comments

@tonyboston-au
Copy link

@jensleitloff - thanks very much for your tutorial and code which is very useful.
06_classify_image.py by default produces two outputs: a label.tif file and a prob.tif file. The label TIF file when I run the code on a VGG RGB model built using transfer learning is a grayscale image with 10 'colours' that presumably correspond to the 10 land cover classes in the eurosat dataset? Is there a legend you could share that relates the results in this TIF image to those classes?
The prob.tif output file may be the probability by pixel of the selected class? Any more information about this output is appreciated.
Thanks

@jensleitloff
Copy link
Owner

Yes, the 10 colours are the classes. You can determine the corresponding classes by yourself from 02_train_rgb_finetuning.py. Line 78 to 80 prints your training classes:

# just for information
class_indices = train_generator.class_indices
print(class_indices)

And a further yes to the the prob.tif. This is the probability of the class in label.tif. During classification the probability of all classes are predicted for each pixel. Then, the class with the highest probability is selected. You can see this in line 76

@tonyboston-au
Copy link
Author

Thanks very much Jens

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