Component masses in stellar and sub-stellar binaries from Gaia astrometry and photometry | Synapse