The document presents a hybrid channel and spatial attention U-Net model for skin lesion segmentation, aimed at improving accuracy in detecting melanoma, a serious but curable form of skin cancer. It highlights the challenges faced in traditional segmentation methods, such as poor accuracy due to image complexities, and proposes a deep learning approach utilizing attention mechanisms to enhance feature extraction and segmentation performance. Experimental results demonstrate that the proposed model achieves high segmentation accuracy, underscoring its potential in automated skin cancer detection.