As the operational time of railway increases, rail surfaces undergo irreversible defects. Once defects occur, it is easy for them to develop rapidly, which seriously threatens safe operation trains. Therefore, accurate and rapid detection surface very important. However, in defects, there are problems, such as low contrast between background, large scale differences, insufficient training sampl...