Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Dense blocks are a key innovation in the DenseNet architecture. Each layer recei

### Dense Block Concept
For a dense block:
- **Each layer**: Applies ReLU, then 2D convolution, and then concatenates the output to previous features.
- **Each layer**: Applies ReLU, then 2D convolution, and then concatenates the output to the previous features.
- Mathematically:
$$
x_l = H_l([x_0, x_1, \ldots, x_{l-1}])
Expand All @@ -28,10 +28,10 @@ $$
- After $L$ layers, total channels = input channels + $L \times \text{growth rate}$.

### Putting It All Together
1️⃣ Start with an input tensor.
2️⃣ Repeat for $\text{num layers}$:
1. Start with an input tensor.
2. Repeat for $\text{num layers}$:
- Apply ReLU activation.
- Apply 2D convolution (with padding).
- Concatenate the output along the channel dimension.

By understanding these core principles, youre ready to build the dense block function!
By understanding these core principles, you're ready to build the dense block function!