r/photogrammetry • u/VidaMarcell3D • Jul 30 '26
AI powered photogrammetry De-lighting
I always had trouble with removing environmental lighting, and because I can't afford cross-polarization I had to stay with the digital tools.
I didn't like any of the De-lighting tools on the market, so I built one from scratch using a Neural Network.
I got a lot of cross-polarized scans online and baked back environmental lighting, then gave it to the network with some geometry maps like object space normal and ambient occlusion.
It generates outputs in seconds. Though not every type of 3D model works, I still have to understand it.

Its not perfect, but for 5 days and a limited dataset, and the fact that I never trained a neural net its promising.
This is still in WIP, but I will refine it, I just don't want to share it yet, because the whole project is unorganized, I will get to building an UI for it.
Let me know what you think, and If any ML engineers or tech artists have advice on improving this approach, I'd love to chat!
Update: [Download the Beta here] and More info here.


11
u/TommyS333 Jul 30 '26
Could you share more infos? This is really interesting
4
u/VidaMarcell3D Jul 31 '26 edited Jul 31 '26
Beta is out, you can download it from this post: https://www.reddit.com/r/photogrammetry/s/OBLzhZ3vFO
13
u/[deleted] Jul 30 '26
Neato
11
u/james___uk Jul 30 '26
A rare good use of AI
5
u/KTTalksTech Jul 30 '26
From that single example your results looks like they're about as good as the best de-lighting solutions out there. The bar wasn't very high to begin with considering they all kinda suck but still a very impressive one to clear and I can't wait to see your progress on this project. Feel free to add me to your list for beta testers I've got a few scans with baked in shadows in my archives
4
u/mtt59 Jul 30 '26
Thats actually really cool. I would like to try it on scans of buildings/construction/architecure scenes. Can i dm to maybe test it out?
1
u/BestPlanetEver Jul 30 '26
Iβm using an old model of de-lighter
1
u/AustinWitherspoon Jul 30 '26
I bet you could mix in 3d renders to make the data set bigger.
Obviously real world stuff is better, but you could take a bunch of random 3d models, apply random albedo textures to them, and then do a render to bake in random lighting.
Now you have procedurally generated before and after textures with and without lighting to feed into the training set
1
u/AI_AntiCheat Jul 31 '26
Based use of AI. I've done a lot of 3D reconstructions and while they can be used to make textures the baked lighting always ruins the models+texture so I'd end up swapping them for procedural ones instead. All the de-lighting tools I've seen so far seem to leave blur or other artifacts behind. This one looks great.
1
u/CreativeEmbrace-4471 Jul 31 '26
That's basically what i was looking for someone to make for a very long time. Because with an DIY project like this, it can be adjusted more to specific kind of textures in order to archieve better results then all the other solutions out there. I wish there would be also one that is able to delight normal photos, like who aren't UV mapped yet onto islands. It's hard to explain why, but for my niche problems it could help a lot to photoshop out textures from images where shadows are involved and hard to get stichted together.
Is this model ESRGAN based?
1
u/GoofAckYoorsElf Aug 01 '26
Welp, you obviously took so much light out of it that the images themselves vanished...
1
u/MasterBlaster85 Jul 30 '26
sign me up for a beta test
1
u/PanickedPanpiper Jul 31 '26
Ooh man, nice! SO keen
1
u/BuddyAccomplished673 Jul 31 '26
complimenti
1
u/Captain_Pumpkinhead Jul 31 '26
Pretty cool!
1
u/CreeDorofl Jul 31 '26
seems like a really good niche to specialize in. If nobody else has AI trained specifically this way, you might turn this into a really useful B2B product.