Automatic grading of Diabetic macular edema based on end-to-end network