🖥
🖥
🖥
🖥
AugeLab Studio Manual
English
Ask or search…
K
Comment on page

Global Average Pooling 2D

Global Average Pooling 2D Node Documentation

The Global Average Pooling 2D node in AugeLab Studio is used to apply global average pooling to a 2D feature map. Global average pooling reduces the spatial dimensions of the feature map to a single value by computing the average of each channel across all spatial locations.

Node Overview

The Global Average Pooling 2D node applies global average pooling to the input feature map. It has the following properties:
  • Node Title: Global Average Pooling 2D
  • Node ID: OP_NODE_AI_2D_GLB_AVG_POOL

Inputs

The Global Average Pooling 2D node does not have any input sockets. It represents a layer in the network architecture.

Outputs

The Global Average Pooling 2D node does not have any output sockets. It is a middle layer that modifies the network architecture.

Node Interaction

  1. 1.
    Drag and drop the Global Average Pooling 2D node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Connect the Global Average Pooling 2D node to other nodes in the network to modify the network architecture.

Implementation Details

The Global Average Pooling 2D node is implemented using the GlobalAveragePooling2D layer from the Keras library. The node's getKerasLayer method returns a Keras global average pooling layer.
Global average pooling reduces the spatial dimensions of the input feature map to a single value per channel by computing the average of each channel across all spatial locations. This operation is applied independently to each channel, resulting in a reduced feature map with a shape of (batch_size, channels).

Usage

  1. 1.
    Drag and drop the Global Average Pooling 2D node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Connect the Global Average Pooling 2D node to other nodes in the network to modify the network architecture.
  3. 3.
    Train the network using the modified architecture to observe the effects of global average pooling on model performance.

Notes

  • The Global Average Pooling 2D node applies global average pooling to a 2D feature map.
  • Global average pooling reduces the spatial dimensions of the feature map to a single value per channel.
  • The Global Average Pooling 2D node does not have any input or output sockets. It is a middle layer that modifies the network architecture.
  • Ensure that the Global Average Pooling 2D node is connected to other nodes in the network to have an impact on the model's behavior.
  • The Global Average Pooling 2D node requires the Keras library to be installed.