When learning an accent, focus on the individual sounds and start to model those. After that, incorporate the accent's rhythm and melody. Often times just having the musicality of the accent down will help a lot. Also, when watching a video of a native speaker, pay close attention to the way in which the speaker moves their mouth. The shape that their mouth makes will influence the sound.