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

ValueError #13

Open
PcHyUU opened this issue Jun 17, 2019 · 24 comments
Open

ValueError #13

PcHyUU opened this issue Jun 17, 2019 · 24 comments

Comments

@PcHyUU
Copy link

PcHyUU commented Jun 17, 2019

Thank you for sharing the code.
I have tested the code with IndianPines dataset. When I run the IN_classification_maps,I met ValueError: could not convert string to float: 'normal'.How to solve this problem?

@zilongzhong
Copy link
Owner

Some tips may be helpful. First, make sure the Conda env list and code are correct. Second, printout the format of variables to make sure they are correct.

@PcHyUU
Copy link
Author

PcHyUU commented Jun 29, 2019

I have another questions. what is the use of ‘best_weights_RES_path_ss4’??? I want to use the framework to other database. How do i train the framework? Should i also use the ‘best_weights_RES_path_ss4’?

@zilongzhong
Copy link
Owner

zilongzhong commented Jun 30, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Jul 4, 2019

How do you preprocess the data? Does the data of 77200 belong to the same label? If not, how does the final output be 1124 predict other 48-pixel points?

@zilongzhong
Copy link
Owner

zilongzhong commented Jul 4, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Jul 18, 2019

How to change the input data 77200 to 99200?

@zilongzhong
Copy link
Owner

zilongzhong commented Jul 19, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Jul 23, 2019

y[index] = np.array([255, 0, 0]) / 255.
What does this line of code mean? Do you want to enumerate 20 classes 20 times? How to choose the parameters?

@zilongzhong
Copy link
Owner

zilongzhong commented Jul 23, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Aug 1, 2019

Why do you want to use the average pool layer instead of max pool layer? Average pooling reduces the discrimination , while max pool can keep its discrimination of feature much as possible.Some papers show the max pooling is more useful than average pool layer.

@zilongzhong
Copy link
Owner

zilongzhong commented Aug 1, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Sep 28, 2019

As you said in the paper, the classification results increase with the size of the input cube. Why do you choose 7x7 instead of the larger 9x9 or 11x11?

@zilongzhong
Copy link
Owner

zilongzhong commented Sep 30, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Oct 29, 2019

Hello, how can I get the RGB values for each category? I applied this framework to a new dataset, and I don't know the category that the color represents. I want to get the RGB values for each category.

@zilongzhong
Copy link
Owner

zilongzhong commented Oct 29, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Oct 29, 2019

Can you give me a copy of the SVM code mentioned in the article? The SVM program that I reproduced does not achieve your effect, and I can't draw a similar rendering with your classification.

@zilongzhong
Copy link
Owner

zilongzhong commented Oct 29, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Oct 31, 2019

svm.txt
I want to get the final classification map of SVM, so I added some code, but the program keeps reporting errors.
File "G:/SSRN-master/svm.py", line 335, in y_re = np.reshape(y, (gt_IN.shape[0], gt_IN.shape[1], 3))
ValueError: cannot reshape array of size 1136391 into shape (601,2385,3).
Could you please tell me how I can solve this problem?

@PcHyUU
Copy link
Author

PcHyUU commented Nov 1, 2019

Or in other words, I got OA, AA, Kappa according to your svm program, but I can't get the final classification map by my own program. Can you provide a program for the SVM to generate a classification map ? Thanks a lot!

@zilongzhong
Copy link
Owner

zilongzhong commented Nov 4, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Nov 19, 2019 via email

@zilongzhong
Copy link
Owner

zilongzhong commented Nov 20, 2019 via email

@PcHyUU
Copy link
Author

PcHyUU commented Feb 29, 2020

Excuse me, how do I view the output of the intermediate layer during the convolution process?

@PcHyUU
Copy link
Author

PcHyUU commented Apr 24, 2020

A large number of unknown pixels in KSC seem to be used to train the model, because the unknown pixels have been assigned certain labels after classification. Please explain how you preprocess and split the data set.

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

No branches or pull requests

2 participants