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

visual method #11

Open
maomaocun opened this issue Aug 12, 2024 · 7 comments
Open

visual method #11

maomaocun opened this issue Aug 12, 2024 · 7 comments

Comments

@maomaocun
Copy link

What is the method that makes the visual of the feature of bins?T-Sne?

@vimar-gu
Copy link
Collaborator

Yes, we used t-SNE for the bin visualization. The sample indices of each bin are recorded and emphasized in different figures.

@maomaocun
Copy link
Author

Can I get the specific source code? I tried both the dataset images and the features generated by the pre-trained model, but I found that neither was very obvious.
image
image

@vimar-gu
Copy link
Collaborator

Please try visualizing samples from one single class, which is also the case presented in the paper. Running t-SNE on a large number of samples will decrease the quality of dimension reduction.

@maomaocun
Copy link
Author

image image It looks a bit strange, but it seems to reflect the characteristics of the data set distribution. Do you have any guidance? I performed t-SNE operation on the gradient generated by the pre-trained model of the data set, and the final image was normalized. The t-SNE parameters are as follows image

@vimar-gu
Copy link
Collaborator

You should simply use the extracted features to perform t-SNE. The figures you presented seem kind of strange. There seem to be two groups of features. But for bin selection, there only exist real images, so there should not be such distribution gap.

I'm sorry I don't have the original script now. But the general procedure should be:

  • Selecting bins and obtain the indices for each bin.
  • Conducting t-SNE on the extracted features of one class.
  • Display the original distribution and selected samples with different colors.

Do make sure that the sample order is consistent when performing bin selection and figure drawing.

@maomaocun
Copy link
Author

image image bin The first picture is bin1, and the second picture is bin10. It seems to be a little closer to the meaning of your paper.

@vimar-gu
Copy link
Collaborator

Thanks for the feedback. But the figures are still not correct.

At the bin selection stage, onyl original images are selected. It means that the red dots (selected samples) should exactly cover the corresponding blue dots (original samples). And the red dots in the first figure should be of blue color in the other figures. But the presented two figures don't meet the principle. The features of a class should be processed through t-SNE all together. Then only the selected indices are assigned with a different color. Please check the whole process again and see if the red dots are based on different features.

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