ERROR: 'Nonetype' object has no attribute 'ema_scope'

I keep getting this error: ERROR: ‘Nonetype’ object has no attribute ‘ema_scope’

Does anyone know whats going on? it lets me generate one photo but when i try and batch process, it crashes after the first photo? Is there a way i can reinstall everything? Im ot good with code so Id love some help:)

THANKS SOOOOO MUCH