Loosing weight to help 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 ?