Live data from Hacker News

PhotoPrism: AI-powered photos app for the decentralized web

github.com

131–140 of 187 posts

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

#131

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…

I went about depdup in a similar but opposite way then you did - https://github.com/mgolub2/photodb I used libraw to read the actual raw data from my images, ignoring possible metadata that can get changed/updated by Capture One for example. The raw data is just fed into a hashing function, to get an exact content hash. Does not work if your image is down-sampled of course, but that was actually my goal - I want to k…

Ah! In this case, you might be happy to discover that ExifTool just added an "image content" hash--it's the SHA (or MD5 or whatever) hash of the _actual image bytes_, after ignoring the metadata header (and possible footer) payloads.

So if you, say, change the rotation of your RAW image file (which normally will just add or change the EXIF `Orientation` tag), the image content hash will stay the same.

See https://exiftool.org/ExifTool.html#ImageHashType

(of course, your current approach should prove substantively faster, but will only work with the formats that libraw supports)

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

#132

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…

If there was ever an obvious use for AI, identifying (or at least scoring likeliness) images should be one.

Heck, we could even brute force this by resizing images via different methods and comparing checksums. But _surely_ AI can help us here.

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

#134

Earlier quoted context omitted.

dist upgrade in a Dockerfile?

Yes. That just means upgrade and install extra required packages. The nonsensical one would be do-release-upgrade.

They're both kinda dumb though. Updating will create a new layer, but the old binaries will still be a part of the image as part of the history.

The only correct way is to either rebuild the base image from scratch or just fetch a new base image. My suggestion would be the latter, just run docker pull again for the baseimage and use that, without running update.

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

#135

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…

If there was ever an obvious use for AI, identifying (or at least scoring likeliness) images should be one. Heck, we could even brute force this by resizing images via different methods and comparing checksums. But _surely_ AI can help us here.

Certainly, but it depends on your goal. Models like CLIP (https://openai.com/research/clip) are designed to help describe images with an embedding, but are trained to give similar embeddings for similar image _content_, not for similar _pixels_.

Simple image hashes based on small thumbnails can do similar image detection quite well (see sibling comments for links to several different approaches).

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

#136
post #38

I deployed this recently and added a bunch of pictures to it. PhotoPrism prominently features an AI-generated (?) 'description' on each photo, but for 98% of my photos, it was unable to come up with any description. The install procedure is needlessly complicated, there's no good reason for an app like this to require docker. Overall, I was underwhelmed

Docker made it basically trivial to run PhotoPrism on my Synology NAS…

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

#137

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…

Freemium pricing is always a tricky balance. Your free tier should provide a modicum of value to entice people into installing your software, but ideally, it will also incentivize the users that are getting value from your efforts to remunerate to a degree that is reasonable and comfortable for them.

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

#138

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…

If you’re using it for reasons other than personal use, like family use, then a heavier set of administrative options would be necessary. and therefore pricing will be a part of the equation.

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

#139
post #40

Earlier quoted context omitted.

It did the same for me, and (at least when I looked at it) there was no way to just manually tag photos/identify subjects.

You can manually tag photos and identify people, though the UI flow is not the most convenient. (I've been trying it put for a couple months.)

How? I can’t find the option to add faces. I can add keywords and add labels but not faces

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

#140
post #37

Am I the only one who is amazed by this technology? > Please don't upload photos containing offensive content. Uploads that may contain such images will be rejected automatically. > Non-photographic and low-quality images require a review before they appear in search results. How does it know what is "offensive"? Is this configurable? I don't want to upload photos of people (for obvious reasons) but other than that,…

You can upload nsfw images to your own server. It automatically sets them to private, but it’s not incredible at identifying photo content yet.
Post reply on HN