Dual-energy computed tomography (DECT) can provide quantitative information of scanned objects, decompose materials, and obtain specific information about human tissues and materials. Aiming at the problem that the traditional U-Net network is limited in extracting non-local features from DECT images, an improved U-Net network (IU-Net) was proposed to improve the accuracy of DECT image material decomposition. IU-Net uses a multi-scale encoder. In the encoding stage, the local and non-local features of the input image are captured from different perspectives through three paths and fused in the channel dimension. At the same time, in order to avoid the loss of image details caused by excessive smoothing, the edge loss is introduced to construct a hybrid loss function. The edge pixels of the reconstructed image are optimized to produce a sharper image. Experimental results show that IU-Net combined with the hybrid loss function reduces the artifacts while retaining more tissue details, and the structural similarity of the chest bone map reaches 0.9967.