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

How to obtain figure 2(d) #50

Closed
reluuu opened this issue Nov 19, 2021 · 5 comments
Closed

How to obtain figure 2(d) #50

reluuu opened this issue Nov 19, 2021 · 5 comments

Comments

@reluuu
Copy link

reluuu commented Nov 19, 2021

Hi, thank you for your nice work!

I want to know how to produce figure2(d)? There are 2048 channels for hidden representation, how to visualize? Thanks for your help!

@yassouali
Copy link
Owner

Hi @reluuu

Unfortunately, I was not able to find the notebook that contains the computation, but it should be quite easy to replicate. For the features, at each spatial location, fetch the 8 neighboring features (so 3 x 3 window) and compute the average of the L2 distances between the center the 8 neighboring features, so for each feature, you will get a scalar representing the distance between it and its neighboors; then normalize them and plot them.

Hope this helps.

@reluuu
Copy link
Author

reluuu commented Nov 19, 2021

Did you use dimension reduction like PCA to produce the figure?

@yassouali
Copy link
Owner

No we used the original features without any reduction, but using PCA might be a good idea

@reluuu
Copy link
Author

reluuu commented Nov 19, 2021

But for the hidden representation, there are 2048 channels? How to visualize them in grayscale?

@yassouali
Copy link
Owner

yassouali commented Nov 19, 2021

at each spatial location, you compute the L2 distances between the feature i and its neighboors j, and use these distances, which are scalars, for ploting

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