How to avoid detention due to attendance.

I had low attendance in my chem practical but it was manageable. But my prof cut my attendance for 2 periods for coming late now the required has gone up and theres not enough periods to get it to 75%. What can i do to avoid detention. Pls help its important