Official PyTorch implementation of SAMA-UNet: A novel U-shaped architecture for medical image segmentation that integrates Self-Adaptive Mamba-like Attention and Causal-Resonance Learning.