Welcome to FALCON-Net! 🚀
An interactive Streamlit playground for visualizing and testing the robustness of Siamese and Prototypical neural networks under adversarial attacks.
🌐 Live Demo: FALCONNet
FALCON-Net is your go-to app for exploring how cool neural networks (Siamese & Prototypical) handle sneaky adversarial attacks! Draw, attack, visualize, and learn—all in one place. Perfect for students, researchers, and the just-plain-curious. 😎
- 🎨 Draw & Attack: Doodle your own character, unleash attacks (FGSM, PGD), and see the chaos unfold with heatmaps and metrics!
- 🗂️ Pick & Attack: Choose from a gallery of multilingual characters, attack them, and compare before/after results.
- 📊 Metrics Dashboard: Dive into interactive charts showing accuracy, robustness, and more.
- 🧬 Siamese Network Explorer: Peek inside each layer, visualize feature maps, and compare embeddings.
- 🧑🤝🧑 Prototypical Network Explorer: Play with few-shot learning, support/query sets, and see how prototypes work.
- Frontend/UI: Streamlit 🎈
- Deep Learning: TensorFlow/Keras 🧠
- Visualization: Matplotlib, Pillow 📷
- Data: Sample character images (assets/) 🖼️
git clone https://github.com/your-username/FALCON-Net.git
cd FALCON-NetWe recommend a virtual environment! 🪄
pip install -r requirements.txtstreamlit run app.pyOpen your browser to http://localhost:8501 and let the fun begin! 🎉
app.py— Main hub, navigation, and page routingdraw_page.py— Freehand drawing & attack funselect_page.py— Pick a character & attackmetrics_page.py— Performance dashboardssiamese_page.py— Siamese network explorerprototypical_page.py— Prototypical network explorerattacks.py— Adversarial attack code (FGSM, PGD)image_utils.py— Image helpersassets/— Character images
- Use the sidebar to jump between pages 🧭
- Follow the on-screen prompts to draw, attack, and explore
- Try different attacks and see how the models react
- Have fun and learn something new! 🤓
The app is live on Streamlit Cloud: FALCONNet
Want your own version? Fork this repo and connect to Streamlit Community Cloud in minutes!
Licensed under the GNU General Public License v3.0. See LICENSE for details.
- Inspired by the amazing world of adversarial robustness & few-shot learning
- Built with Streamlit, TensorFlow/Keras, and open-source magic ✨