Hello, don't worry, your photos can be recovered if you enable some cloud storage before.
If not, you are suggested to apply the powerful software, iBoysoft Data Recovery for Mac, which can recover your data without cloud storage.
- Utilize iBoysoft Data Recovery for Mac(if no cloud storage). Download, install, and open it > Select your Drive you stored your lost data and choose Search for Lost Data > Preview and choose the files then click Recover to another place.
- Utilize Time Machine. Launchpad > Others > Time Machine > Browse the timeline to choose your wanted ones then click Restore.
- Use iCloud backup. Sign in to iCloud.com > Account Settings > Restore Files > Preview and choose the ones you want to restore.
Hope you can find your photos finally. Best wishes.
Also read: How to Recover Replaced Files on Mac.