Yeah, both of those are ad hominem.
> Science is driven by expertise,
No, science is driven by methodology, including criticism that avoids appeal to authority and other personal characteristics of researchers to focus on the objective characteristics of the work.
> and non-expert opinion is correctly regarded as less reliable than expert opinion
Science isn't opinion-based.
> non-expert opinion is correctly regarded as less reliable than expert opinion - that isn't an ad hominem, it's the correct method for dealing with any domain requiring expertise.
It is ad hominem (argument to personal qualities of the proponent of the position rather than directly to the merits of the position), whether or not you view it as correct.