Loosing weight to help your relationship?

Has anyone ever felt like maybe their significant other wasn't attracted to them anymore so sex became really infrequent ? If so an you lost weight did it make them desire you more ?