Anything I can self host on RPi4 that will do AI image upscaling, as alt. to Google photos? reddit / selfhosted ---------------------------------------------------------------------- bozon78_1 · 2023-11-29 05:57 Hi all TL;DR: I'm looking for an alternative to Google photos with the ability to AI upscale photos for my specific use case. I would like to have something that I can self host on my RPi4, that syncs with my phone. Ideally, it would take photos off my phone, upscale and then send them back - ideally as a Cron job that runs every few days. Context: For some reason, half the photos I take with my camera are somehow blurry or high noise (a 2014 HTC one mini 2) - more likely than not because I replaced the stock rom and thus no longer have access to the proprietary software of the HTC. (I would have thought Gcam or OpenCam would suffice but meh. The camera itself is 13MP and should be good enough for ok pics). Anyway, I had the idea of self hosting the photos on my Pi (as am de- googling anyway and it's currently used exclusively as a Jellyfin/Radarr/Sonarr box) and thought hey, why not see if there's something that can run some kind of image upscale / cleaner and then send photos back to phone. Saves me from having to get another new-old phone. Nb: Yes, I'm aware this is an old phone. Yes, I'm aware if would be just easier to use a better phone. No, I don't want to use a different phone, for various reasons (mostly pocketability). And because fuck it, I'm bloody minded enough to want to want to bash a square peg through a round hole, which I think might resonate with some of you. Anyway, any software that might fit my needs? ---------------------------------------------------------------------- murdaBot · 2023-11-29 06:01 If there is, it would likely be god awfully slow due to the anemic processor in the RPi4. ---------------------------------------------------------------------- bozon78_1 · 2023-11-29 06:14 Speed isn't so much an issue - I don't mind if it takes 5 or 6 hrs to do it overnight. Figure I could tell it to run twice a week at say 2am when it's not doing much else. (My pi is overclocked, if that makes any difference and I do have Vulkan drivers installed) ---------------------------------------------------------------------- electrik22 · 2023-11-29 06:25 Here is a good comparison of two candidates: https://www.reddit.com/r/photoprism/s/Mw7UdIGBo4 I'm not sure this will work on a raspberry pi though ---------------------------------------------------------------------- lilolalu · 2023-11-29 09:27 I didn't understand if you want a desktop GUI or a webUI, there are a lot of projects dealing with ai upscaling, I don't know which of those you can get to run on the RPI. https://github.com/AbeerVaishnav13/super-resolution https://github.com/Araxeus/PNG-Upscale https://waifu2x.udp.jp/ ---------------------------------------------------------------------- lilolalu · 2023-11-29 09:30 In any case, check if the camera apps can take raw images, that's the first step to better pictures on older phones. I like ProShot but I don't know if it's working on your phone. ---------------------------------------------------------------------- bozon78_1 · 2023-11-29 11:02 Thank you for these suggestions - I will give them a try and report back. Interestingly, Proshot Evaluator *does* indeed work and seems to produce excellent results ---------------------------------------------------------------------- vittyvirus · 2023-11-29 12:18 Maybe try running stable diffusion webui, and use it's api? ---------------------------------------------------------------------- acbadam42 · 2023-11-29 12:51 Holy shit You're replacing ROMs on Android what year is it? Why don't you just get a modern phone what do you have against that. Are you one of those people that's afraid of 5G? ---------------------------------------------------------------------- Still-Snow-3743 · 2023-11-29 15:21 This is like walking from michigian to florida on foot magnitudes of slow for this task. AI models require floating point processors that you really only see in GPUs to start with, running an AI algorithm meant for a GPU will run 10 times slower on a similarly priced CPU. And the Raspberry PI will run 10 times slower than a desktop CPU. And that is if you can even find models that work this way, and fit in the raspberry pi ram. So we are talking hours what would take seconds to run on a lower end modern laptop, if it even exists. ---------------------------------------------------------------------- bozon78_1 · 2023-11-29 15:30 Wish I could. Sadly, they don't make small, pocketable phones in 2023 (outside of some suspect Chinese brands and so-so iPhones), so am recycling older stuff I have to hand. Older devices work just fine even now but you more or less have to degoogle them / FOSSify them. Lol, you make it sound like installing LineageOS and removing stock bloatware is some kind of tin-foil hat lunacy....while posting on a subreddit dedicated to hosting your own server / cloud. ---------------------------------------------------------------------- Prudent-Artichoke-19 · 2023-11-30 04:00 I wrote an upscaler that runs super great on CPU. However, I have not tried ARM. Hit me up and I'll look into it.