Sun and Wilson defined the notion of infinite determinacy of a smooth function germ singular along a line, and related this notion to some good geometric properties of derived objects related to the given function germ. The paper extends their results to a wider class of smooth function with prescribed non-isolated singularities. For this purpose, it was necessary to study the behaviour of the function germ along a transverse direction of the given singular set, and to relate these properties to geometric properties of the function and derived objects, expressed in terms of relative Łojasiewicz conditions.