In my experience the only thing that will deter deer is a fence. When I first started a dove patch when my boys were small I’d instruct them to pee on the edge of the field. Pretty effective deterrent. In terms of my garden, if my wife has to eat another okra/eggplant/tomato medley I’m headed to divorce court. Our spring here was hot and dry and the sweet corn did not do well. Sunflowers loved it however.