A comprehensive visualization tool for exploring and understanding how ResNet50 processes images through its internal layers.
- Feature Maps: Visualize activation patterns at different layers
- Activation Maximization: Generate images that maximally activate specific neurons
- Layer-wise Relevance Propagation (LRP): Understand which input pixels contribute most to specific activations
- Grad-CAM: Visualize important regions for classification decisions
-
Image Preprocessing:
- Resize with multiple strategies (simple, preserve aspect ratio, pad and resize)
- Custom cropping options (center, random, five-crop, ten-crop)
- Normalization options (ImageNet standard, simple, custom)
- Data augmentation (color jitter, rotation, flips, grayscale, blur)
-
Visualization Controls:
- Custom grid size for feature map displays
- Channel selection across all network layers
- Multiple normalization methods for visualization
- Various colormaps for different visualization preferences
- Channel statistics and distribution visualizations
- Feature map overlays on original images
- Export options (JSON, CSV, image downloads)
- Detailed processing logs
- Clone the repository:
git clone https://github.com/algaradi/resvisualize.git
cd ResVisualize- Install the required Python dependencies:
pip install -r requirements.txt- Start the Flask server:
python app.py- Open your browser and navigate to:
http://localhost:5000
- Upload an image and experiment with different visualization techniques!
Shows the actual activations of different channels in each layer when processing an input image. This helps understand what patterns each filter responds to.
Generates synthetic images that maximally activate specific neurons, revealing what patterns or features a particular filter is looking for.
Highlights which parts of the input image contribute most to specific activations or classifications, helping explain model decisions.
Creates class activation maps showing which regions of an image are important for classification decisions.
- Python 3.7+
- PyTorch 2.0+
- Modern web browser with JavaScript enabled
- GPU recommended for faster processing (but not required)
- Backend: Flask (Python)
- Frontend: HTML, JavaScript, TailwindCSS
- Deep Learning: PyTorch, Captum
- Visualization: Matplotlib, Seaborn
.png?raw=true)
.png?raw=true)
.png?raw=true)
.png?raw=true)
.png?raw=true)
.png?raw=true)
.png?raw=true)
.png?raw=true)
.png?raw=true)
.png?raw=true)
.png?raw=true)