Live data from Hacker News

PhotoPrism: AI-powered photos app for the decentralized web

github.com

161–170 of 187 posts

Re: PhotoPrism: AI-powered photos app for the decentralized web

#161
post #104

Earlier quoted context omitted.

Deduplicating by SHA (so, exactly the same bytes) is straightforward, and phototprism does that: https://docs.photoprism.app/user-guide/library/duplicates/ Unfortunately, if you've used Google Takeout or other systems that can both downsample your photos and videos, as well as actually deleting _or changing_ metadata, deduplicating becomes a big wad of heuristics. My first approach was to build a UID based on a serie…

And if you just want to go by the pixel data, look into "perceptual hashing". https://github.com/rivo/duplo works quite well for me, even when dealing with watermarks or slight colour correction / sharpening. You could even go further and improve your success rate with Neural Hash or something similar.

is there an option to just calculate image hash (but on image data, not the full file of image data + metadata) without any transforms? So that if it matches you can be 100% certain it's the same image

Re: PhotoPrism: AI-powered photos app for the decentralized web

#162
post #152
post #44

Earlier quoted context omitted.

It probably depends on what you mean by "de-google", but if you simply do not want to host your data at Google or depend on Google services, it's quite easy. As far as I can tell, the only place you really need to be logged in to a Google account to get a "normal" Android experience is the Play Store, which makes sense. I use Google Maps for example (Osmand when I can, but Google Maps is the only free app that has go…

If you want google-free experience then Play Store is not that important, as (1) it hardly can be said to be degoogled (2) most apps there would want GCM for a start, so you connect to G. even is using microG. Fdroid should be your best friend.

I think that's the point I made on the meaning of "degoogled". It doesn't have to mean "Google-free".

Re: PhotoPrism: AI-powered photos app for the decentralized web

#163

Earlier quoted context omitted.

Because...?

Because docker is made for server apps. Flatpak is for desktop apps. Docker comes with batteries included to keep things running 24 7

What percentage of people install this on their own computers?

Docker is much less manageable locally than, say, systemd or supervisor.

The only thing (which is something) that docker has going for it is that it's cross platform. But the same argument can be made for writing apps using electron. If you're going to do that, fine, but acknowledge the compromise. It's not better.

Re: PhotoPrism: AI-powered photos app for the decentralized web

#164
post #48

I am extremely happy with my photoprism setup. I tried to degoogle my life and found their docker setup to be great. I use FolderSync on my android phone to copy any pictures I take to my photoprism WebDAV

Can you share how you are hosting it, photo library file types or size, and what the performance is like? I'm always skeptical of stated requirements and what other people are prepared to put up with. I've got an older Synology NAS that currently stores my 250GB photo library with a lot of RAWs. While it can run docker I'm not going to attempt to run it there. I'm wondering if a VM on my 10700k is going to be suffici…

My photo library is incredibly simple compared to yours. Maybe 15 GB of a mixture of tiff, raw, and some PNG.

I would say my requirements are nowhere near yours and that you would really need to test it yourself for your usecase. Some people on the photoprism forums claim it can handle large libraries like yours but I would always recommend testing yourself.

I host it via docker on a pretty tiny VPS with 3 vCPU and 4 GB RAM and it's fine.

Re: PhotoPrism: AI-powered photos app for the decentralized web

#165
post #49

I have tried to install this from source but it's quite difficult. I don't like deploying opaque docker images.

Full agreement, Immich has a similar problem. I don't know at what point basic systemd services stopped being enough but docker is usually a non starter for me.

I more enjoy more a working image where the developer can control things like python version and image processing libraries

Re: PhotoPrism: AI-powered photos app for the decentralized web

#166

Earlier quoted context omitted.

I disagree. Docker is the one thing that works on MANY flavors of Linux. If I want to provide a tool I want to spend my time on building the tool, not building an rpm, a snap, a deb, ... The Docker build process is significantly easier. For example, I can just pull in NodeJS 20. I can't do that on Ubuntu. It's not available on packages.ubuntu.com. Building a deb/snap/rpm is a whole other language to understand how de…

Rpm is trivial to learn

No it is not. I have never ever touched a RPM, but I want to bundle my app with jdk 20 and opencv 4.5. how do I guarantee that?

Re: PhotoPrism: AI-powered photos app for the decentralized web

#167

Earlier quoted context omitted.

Because docker is made for server apps. Flatpak is for desktop apps. Docker comes with batteries included to keep things running 24 7

What percentage of people install this on their own computers? Docker is much less manageable locally than, say, systemd or supervisor. The only thing (which is something) that docker has going for it is that it's cross platform. But the same argument can be made for writing apps using electron. If you're going to do that, fine, but acknowledge the compromise. It's not better.

It is not. What if this app needs python 3.11? How do I guarantee that in the environment for all linux distros?

Re: PhotoPrism: AI-powered photos app for the decentralized web

#168
post #48

I am extremely happy with my photoprism setup. I tried to degoogle my life and found their docker setup to be great. I use FolderSync on my android phone to copy any pictures I take to my photoprism WebDAV

Can you share how you are hosting it, photo library file types or size, and what the performance is like? I'm always skeptical of stated requirements and what other people are prepared to put up with. I've got an older Synology NAS that currently stores my 250GB photo library with a lot of RAWs. While it can run docker I'm not going to attempt to run it there. I'm wondering if a VM on my 10700k is going to be suffici…

I run it on a nuc with a cheap 1tb nvme drive and it is fast enough. I have zero RAW photos though.

Re: PhotoPrism: AI-powered photos app for the decentralized web

#169
post #116

Earlier quoted context omitted.

That Dockerfile doesn't seem to do anything because it inherits from another container that probably has more interesting stuff in it. In any case, I found this in the docker/ subdirectory (if it was me I would have put it in the main README): https://github.com/photoprism/photoprism/tree/develop/docker... Building From Source You can build and install PhotoPrism from the publicly available source code:* git clone ht…

I found this too. They mention this: Missing build dependencies must be installed manually as shown in our human-readable and versioned Dockerfile. I haven't been able to find any dockerfile that lists dependencies. My guess is that the documentation is referring to some prior architecture or something similar

And the word "Dockerfile" is a link to a nonexistent page... they definitely skipped their grep + sed update homework when moving things around.

Noticing the broken link points to photoprism/docker/develop/Dockerfile, I supposed they had moved it and indeed, just by going one parent up, the directoy photoprism/docker/develop/ contains subdirectories for lots of base systems, each one containing a Dockerfile that lists dependencies needed for each of them.

For example, for Ubuntu 20.04:

https://github.com/photoprism/photoprism/blob/develop/docker...

Re: PhotoPrism: AI-powered photos app for the decentralized web

#170

From https://www.photoprism.app/features for Community (free) and Essentials (EUR2.00/month): > User Management > Account Roles: Super Admin, Admin So unless I switch to the >=EUR6.00/month Plus plan I cannot add a non admin user? So my grandma gets admin privileges? Is that not a blocker for a lot of families? Edit: From https://www.photoprism.app/plus/kb/multi-user > PhotoPrism® Plus includes advanced multi-user fu…

> So unless I switch to the >=EUR6.00/month Plus plan I cannot add a non admin user? So my grandma gets admin privileges? Is that not a blocker for a lot of families? Maybe, but at least it's not per-user, per-month. I'm much more likely to set up something like this if I can add / remove family members as needed without thinking about the cost beyond the annual fee I pay for to run my own instance. The blocker for m…

After thinking about it some more I now think you're right, at least it's a flat fee that doesn't go up as you add more users. And it's not that high a cost. I'll give it a try.

And I'll pay close attention to the reliability of the sync. I've been using Syncthing for a while now and am still not trusting it completely. Quite regularly I have to restart a mobile app for the files to get synched and I just can't figure out what's wrong. I don't want that to happen for photos. Maybe I'll monitor the date of the latest photo per user and alert if it's too old.

Post reply on HN