def forward(self, act5: torch.Tensor) -> torch.Tensor:
        """Reconstruct image from bottleneck features.

        Args:
            act5 (torch.Tensor): Activations from the bottleneck layer of shape
                ``(batch_size, channels, height, width)``

        Returns:
            torch.Tensor: Reconstructed images of same size as original input
        """
        up1 = self.up1(act5)
        db1 = self.db1(up1)

        up2 = self.up2(db1)
        db2 = self.db2(up2)

        up3 = self.up3(db2)
        db3 = self.db3(up3)

        up4 = self.up4(db3)
        db4 = self.db4(up4)

        return self.fin_out(db4)
Reconstruct image from bottleneck features.

        Args:
            act5 (torch.Tensor): Activations from the bottleneck layer of shape
                ``(batch_size, channels, height, width)``

        Returns:
            torch.Tensor: Reconstructed images of same size as original input
        
src/anomalib/models/image/draem/torch_model.py