By a few weeks into the semester, I can do the same thing. I’m so terrible at names, but I get there eventually. I need the sign-in sheet at least for the first few weeks. Then I can take a mental account of who’s not there, and compare it with the sign in sheet after class ends.