I have a gym at home, but usually work out at my gym where I do PT.
The fact that few really push themselves doesn't help. However, I do have the motivation of setting an example to clients and gym members who will of course be watching me.
Certainly the music is crap, nobody ever set a personal best while Alicia Keys was playing. But since I work there I can just go and turn it off before a big set.
However, I only lift for general health, if I were a more serious lifter there are one or two other places I'd go to instead.