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 use the topologyLayer to classify MNIST dataset #20

Open
changshuowang opened this issue Feb 27, 2020 · 6 comments
Open

how to use the topologyLayer to classify MNIST dataset #20

changshuowang opened this issue Feb 27, 2020 · 6 comments
Assignees

Comments

@changshuowang
Copy link

Hello, the paper mentions using the topologyLayer to classify MNIST dataset. Where can I find this part of the code?

@bnels
Copy link
Collaborator

bnels commented Feb 27, 2020

Hi @changshuowang, the code that ran these experiments hasn't been ported to the repository yet. We hope to do this soon. In the mean time, the features we used are described in section 3.3 of https://arxiv.org/abs/1905.12200, which should allow you to run your own experiment.

We'll keep this issue open until we have examples added.

@changshuowang
Copy link
Author

OK ! Thank you for your reply and Looking forward to seeing your work as soon as possible.
Another question, how can I use LeverSetLayer2D to process three channel color images?

@bnels
Copy link
Collaborator

bnels commented Feb 27, 2020

@changshuowang for three-channel images, you would need to know what sort of filtration you would like to use. One option might be treating it as a 3d image with a levelset filtration, but there's an issue with interpretability here. Another might be to process to a single-channel 2d image through a grayscale map (you can make this differentiable! e.g. 1x1 convolution + sigmoid) and then using LevelSetLayer2D. Or you could do each channel separately and combine features, or focus on one channel, or use multiple differentiable grayscale maps. This will all be dependent on what you'd like to capture using persistent homology.

@changshuowang
Copy link
Author

@bnels Thank you for reply.

@xchhuang
Copy link

xchhuang commented Nov 4, 2020

Hi @bnels,

I am also interested in section 3.3 topological attacks, about the directional sweeps.

Does it mean that we simply change the pixel values considering their corresponding image coordinates ? Also, I am wondering if the directional sweeps can also be used for 2D point cloud to extract directional features? Thanks in advance.

@prashkmr
Copy link

prashkmr commented May 12, 2022

Hi @changshuowang @bruel-gabrielsson

This research looks very interesting for vision based applications.
Could you please update the code for the MNIST dataset. It would really help extending it for a wide number of vision based application.
Eagerly looking for the CNN based code with Topology layers.

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

5 participants