Live data from Hacker News

PhotoPrism: AI-powered photos app for the decentralized web

github.com

101–110 of 187 posts

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

#101

Can it remove duplicates? That’s the holy grail along with storing my images. I’ve got so many damn photos, and I want to reduce the total amount I have but going through them is so daunting I’ll never do it without a computer-assisted organizer.

I used successfully https://github.com/qarmin/czkawka to remove duplicate and also https://www.scootersoftware.com/ to merge pictures folders

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

#102
post #87

Earlier quoted context omitted.

I second this - docker images are a horrible way to distribute applications. Please make an AppImage or flatpak for Linux. General question: does this have import from google photos? Please don't make me go through the google takeout pain.

it's a server app. flatpak or appimage is a terrible way for those.

Because...?

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

#103

Can it remove duplicates? That’s the holy grail along with storing my images. I’ve got so many damn photos, and I want to reduce the total amount I have but going through them is so daunting I’ll never do it without a computer-assisted organizer.

I used to use DupeGuru which has some photo-specific dupe detection where you can fuzzy match image dupes based on content: https://dupeguru.voltaicideas.net/

But I switched over to czkawka, which has a better interface for comparing files, and seems to be a bit faster: https://github.com/qarmin/czkawka

Unfortunately, neither of these are integrated into Photoprism, so you still have to do some file management outside the database before importing.

I also haven't used Photoprism extensively yet (I think it's running on one of my boxes, but I haven't gotten around to setting it up), but I did find that it wasn't really built for file-based libraries. It's a little more heavyweight, but my research shows that Nextcloud Memories might be a better choice for me (it's not the first-party Nextcloud photos app, but another one put together by the community): https://apps.nextcloud.com/apps/memories

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

#104

Can it remove duplicates? That’s the holy grail along with storing my images. I’ve got so many damn photos, and I want to reduce the total amount I have but going through them is so daunting I’ll never do it without a computer-assisted organizer.

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.

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

#105

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

Has anyone tried the Nix package?

Yup, and it actually wasn't working until fairly recently (maybe a few months ago? I was keeping an eye on it for a while).

But yeah, it's even fully integrated into NixOS options now. You can set up a default install with one line: https://search.nixos.org/options?query=photoprism

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

#106

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

> I use FolderSync on my android phone Genuinely curious, if you use Android can you truly de google your life?

You definitely can. I use GrapheneOS and F-Droid as the app store. I guess the phone itself is from Google but other than that nothing. I even get OTA updates asap. I use NewPipe instead of YouTube, my own Nextcloud instead of Google Drive etc.

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

#107
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.

Unfortunately, (almost all!) image hashing don't detect color differences--they map images to greyscale first. This may be fine for many situations, but it will return the same result for a sepia tint, a full color original with incorrect white balance, and the final result you made after mucking with channels for a couple minutes.

I also found that there really isn't one "best" image hash algorithm. Using _several different_ image hash algos turns out to be only fractionally more expensive during both compute and query times, and substantially improves both precision and recall. I'm using a mean hash, gradient diff, and a DCT, all rendered from all three CIELAB-based layers, so they're sensitive to both brightness and color differences.

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

#108

Earlier quoted context omitted.

How does one disable outbound access entirely in a single docker Container?

Use "networks" in your compose, optionally with HTTP_PROXY in your container https://stackoverflow.com/questions/39913757/restrict-intern...

Brilliant, thanks

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

#109
post #104

Earlier quoted context omitted.

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.

Unfortunately, (almost all!) image hashing don't detect color differences--they map images to greyscale first. This may be fine for many situations, but it will return the same result for a sepia tint, a full color original with incorrect white balance, and the final result you made after mucking with channels for a couple minutes. I also found that there really isn't one "best" image hash algorithm. Using _several d…

The library I posted uses colour information. It won't map to greyscale first.

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

#110

Earlier quoted context omitted.

You can always build and tag your own docker image using the docker files included from source. Or simply follow the docker files as install instructions: [0] https://github.com/photoprism/photoprism/blob/develop/docker...

"simply follow the docker files" I'm not sure if you perused the docker files for this repo, but imho there is nothing simple about them Edit: I was curious so I dug into them a bit and found that the dockerfile references a develop docker image. There is a second docker file to see how that base image is built. In the steps to build that base image, we grab some .zip files from the web for the AI models. We install…

dist upgrade in a Dockerfile?
Post reply on HN