Well I am certainly not a psycholgist but I can share some of what I have gone through so far on this journey. It sounds like you have some underlying issues at play here... in addition to an unsupportive husband. First, I would sit your husband down and tell him that you need his support and not his criticism and then firmly request that he not negatively comment on your weight loss or exercise efforts, period. It is disrespectful of him to be feeding you negative comments during this challenging time and he needs to stop immediately.
Next I would take some time away by yourself with a journal if you like to write or colored pencils/paints if you are artistic or even just photo albums from you life. Start writing, drawing, or viewing photos about your life. Think back to a time when food wasn't an issue or you generally felt confident about yourself or ambitious. Think through all the events in your life. When did things change? How old were you? What happened? How did you feel? Who was involved? I have found that coming to terms with emotional elements in my life and past have radically changed the way I handle food and view my self worth. Think about it... you are consistently treating yourself poorly when you overeat, intentionally make bad food choices, decide not to follow through with tracking/counting/measuring, or not show up to the gym or workout. You are lying to yourself about your value and you are treating yourself in a way that shows you do not think you are worth the effort. It is self-abuse. Would you ever treat a friend or child this way? What kind of internal messages are you telling yourself? Think specifically about when you are making the decision to not exercise or not measure/track or not eat something healthy. What goes through your head? What messages have you been told by your mother/husband/sibling/friend etc. that you might be playing in your head? Write it all down if you have to (or draw if you prefer). Here is where the self sabotage happens. Part of reshaping who you are is changing the way you think about yourself, the way you internally dialogue with yourself, and the resulting choices that you make.
A tool that really helped me deal with some of these issues was to find a photo of myself from my youth and carry it with me everywhere. I chose a picture of me at age 13... when a number of devastating events caused me to withdraw into myself and within a few years I began to gain weight. Find that picture of yourself and take it out whenever it is time to make a decision about exercising, about eating, and do what would be best for that little girl. Its radically effective and you will be surprised at the different choices you will make.
You can do this... it will be a process with many ups and downs but learning to treat yourself like a valuable, worthy person will change your life forever.