The AF on the 50mm f/1.4 is notoriously unreliable. I owned mine for two years before I figured it out. If your 7D has microadjusting, try using that, but understand that you will still have some stray focus issues from time to time. Depending on what you're shooting, the Live View mode is probably your best bet. I recently discovered that on my 5DmkII and am glad I did. I call this lens the Mae West of camera lenses. When it's good, it's really really good. But when it's bad...
With all of that said, I love using my 50mm f/1.4.