Welcome to Android Central! Which phone? Did you purposely do a factory reset, or was it by accident? Factory reset wipes all of your data (which it warns you about), so you should always backup or sync your data beforehand. Where were the photos stored--internal storage or the SD card?