I dont have an account on the gitlab instance due to pending approval i think or the email got lost getting to my mail server but i noticed you guys are moving over to a postprocessd like setup. If you guys are interested feel free to take as much as you guys need from my megapixels postprocessing scripts that postprocessd took some inspiration from. I added some more things that improved speed while still keeping everything in python so everything was as fast or faster than postprocessd in some cases. Biggest things being the run through libraw will process all the dng images in parallel which is something i see you guys are already doing but instead of saving them into an image format im actually saving them all in a hdf5 file that way reading them back in is quick if there does need to be multi passes. In my case i do a single photo pass and a burst pass so the single photo will just process the main photo that way the end user has something to look at and then will queue up a the burst photo that does any additional postprocesssing and stacking. My stacking implementation is also way faster than the initial setup that both postprocessd and i used as this one will scale the images down for the estimation and apply a correction to use that in the full res images, i also do it in chunks to avoid any issues where memory was running out especially on larger images. This will massively speed up the stacking especially with how high res the camera on the librem 5 is compared to the og PP. None of my changes for things like stacking is exclusive to python so you guys should be able to implement it in C if you guys want or keep it in python since it uses C in the backend anyways. If you do wish to try my megapixels scripts it uses podman to run things but if the tools are available locally it will use them instead, reason for a container was that i was experimenting with pytorch which did not have a build available in the repos and i didnt want to tell people to compile pytorch. The biggest benefit i think is the fact that i can still use bash scripts for the postprocessing without the performance hit allowing people to quickly make some changes and the biggest one i think is being able to change the externanl extension so people can pick between anything they want that is supported by convert or with what extras i included like jxl and avif though of those two only jxl is really performant but that hopefully isnt always the case.
11 Likes