Generalizing across the (in)visible spectrum