Community detection is an essential technique in complex networks. In this paper, we propose a community detection algorithm based on label propagation. Before the propagation procedure, convert the unweighted network to an attribute graph. In this algorithm, we put forward a new seed node selection strategy.In the experiments, we validate our proposed algorithm on both real and attribute datasets.The experimental results demonstrate that our algorithm is more adaptable to the attribute dataset and has a better modularity.