A
If you had Google Photos auto-backup on, check
photos.google.com
If you were backing them up to a computer, they'll be there. If there was no backup, you've lost everything with no hope of retrieval. Factory restore erases everything.