BackgroundRadiotherapy has been crucial in prostate cancer treatment. However, manual segmentation is labor intensive and highly variable among radiation oncologists. In this study, a deep learning based automated contouring model is constructed for clinical target volumes (CTVs) of intact and postoperative prostate cancer.MethodsComputed tomography (CT) data sets of 197 prostate cancer patients were collected. Two auto‐delineation models were built for radical radiotherapy and postoperative radiotherapy of prostate cancer respectively, and each model included CTVn for pelvic lymph nodes and CTVp for prostate tumors or prostate tumor beds.ResultsIn the radical radiotherapy model, the volumetric dice (VD) coefficient of CTVn calculated by AI, was higher than that of the one delineated by the junior physicians (0.85 vs. 0.82, p = 0.018); In the postoperative radiotherapy model, the quantitative parameter of CTVn and CTVp, counted by AI, was better than that of the junior physicians. The median delineation time for AI was 0.23 min in the postoperative model and 0.26 min in the radical model, which were significantly shorter than those of the physicians (50.40 and 45.43 min, respectively, p < 0.001). The correction time of the senior physician for AI was much shorter compared with that for the junior physicians in both models (p < 0.001).ConclusionUsing deep learning and attention mechanism, a highly consistent and time‐saving contouring model was built for CTVs of pelvic lymph nodes and prostate tumors or prostate tumor beds for prostate cancer, which also might be a good approach to train junior radiation oncologists.