Go to your professor.
Yeah, yeah, I know you want to be on the team, etc., but this behavior is out of line. If you were in the working world I would tell you to get your butt to HR and complain.
You do not need to be treated this way.
I went to law school in the mid-1980s and women were about a 1/4 to 1/3 of the class. We were a far smaller minority in terms of lawyers/law students overall. But I don't recall anyone looking down my top or referring to me by a body part although perhaps it happened and I wasn't aware of it.
When I graduated, male lawyers would routinely (at depositions) ask if I was the court reporter. When I took male colleagues out to train them, I was asked if I was doing well for 'the boss' (meaning the male colleague with me). My response (which was true): "I'm his boss
It was also at a law firm where my secretary was being harassed by one of the paralegals (there were three as I recall, one was male). We went to our boss, who promptly fired the guy.
Tell your professor. This **** will not change until these boys (and they are not men) start suffering consequences. This is utterly inappropriate and in later life it should cost them their jobs. They'd better learn this lesson now.
Don't just go along to get along. That way lies madness and it is a surefire way to get you to hate your job in short order.