-
Notifications
You must be signed in to change notification settings - Fork 104
Replies: 1 comment · 22 replies
-
Photos runs AI "scoring" on photos and osxphotos makes these available. You can see these using For example, here are the scores from a photo I consider to be a good photo: Scores: overall: 0.79, curation: 0.90, promotion: 0.00, highlight_visibility: 0.07, behavioral: 0.70, failure: -0.00, harmonious_color: 0.09, immersiveness: 0.01, interaction: 0.08, interesting_subject: 0.72, intrusive_object_presence: -0.04, lively_color: 0.37, low_light: 0.01, noise: -0.03, pleasant_camera_tilt: 0.04, pleasant_composition: 0.11, pleasant_lighting: 0.23, pleasant_pattern: 0.10, pleasant_perspective: 0.11, pleasant_post_processing: 0.12, pleasant_reflection: -0.01, pleasant_symmetry: 0.01, sharply_focused_subject: 0.48, tastefully_blurred: 0.74, well_chosen_subject: 0.42, well_framed_subject: 0.71, well_timed_shot: 0.13 For a "bad photo", here are the scores: overall: 0.01, curation: 0.73, promotion: 0.00, highlight_visibility: 0.98, behavioral: 0.70, failure: -0.14, harmonious_color: -0.06, immersiveness: 0.00, interaction: 0.01, interesting_subject: -0.77, intrusive_object_presence: -0.04, lively_color: -0.31, low_light: 0.94, noise: -0.25, pleasant_camera_tilt: -0.15, pleasant_composition: -0.80, pleasant_lighting: -0.59, pleasant_pattern: 0.03, pleasant_perspective: -0.28, pleasant_post_processing: -0.03, pleasant_reflection: -0.02, pleasant_symmetry: 0.00, sharply_focused_subject: 0.00, tastefully_blurred: -0.79, well_chosen_subject: -0.40, well_framed_subject: -0.72, well_timed_shot: -0.43 So to find photos that the Photos AI has determined are poor quality, you could do something like:
See discussion #752 for a more detailed look at this by @oPromessa and also #1173 and #1312 by @cfc62 who provided a detailed analysis of the scores with examples. I imagine with a little work, these scores, which are already computed and in the database, could be used in a custom query to make the selection of "bad photos" even better. If we can find the right combination of scores to use I can build that in as a query in osxphotos. In the mean time you can experiment with You could of course build a custom tool with osxphotos that sends the photos to an LLM for analysis then store those results in a database that can be queried. That's not something I have time for at the moment but for someone with python skills, osxphotos provides all the tooling you'd need to get started.
This is on the roadmap. See #1086. It will require some changes to the code that tracks signatures so osxphotos knows when to download a new asset. You might be able to improve performance in this regard with
I've thought about this. See discussion at #1233 It will require me to first complete the work on the new PhotoKit library. Apple does not expose much of the needed capability in the public PhotoKit API for working with Photos. I've been building a library that uses a combination of public API, private/undocumented API (these take a lot of work to figure out), direct database access, and Scripting Bridge to allow me to hopefully have full access to nearly everything Photos can do. If I can make that work then we could have a process that does the 2 way sync. This is non-trivial and at the moment I can't commit enough time to make substantial progress on this but it's on the wish list of things I'd like to do able to do. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
yes, I'm using the latest - beta 2 version |
Beta Was this translation helpful? Give feedback.
All reactions
-
@RhetTbull any suggestions? |
Beta Was this translation helpful? Give feedback.
All reactions
-
@tural-ali one of the tables in _constants.py needs to be changed. I am traveling and don't have time to do this just yet. It's likely to require more changes before the final release of macOS 15. |
Beta Was this translation helpful? Give feedback.
All reactions
-
If you want to hack your own copy of osxphotos you can change |
Beta Was this translation helpful? Give feedback.
-
Collecting Low-Quality Photos into One Album
I have a large photo library with over 10,000 photos. When I cull, I usually delete technically faulty photos immediately (such as those that are out of focus or blurry). It would be perfect to utilize a local LLM software like Ollama to process each photo in the library and collect low-quality photos into one album. I'm not suggesting deleting these photos without supervision, but organizing them in this way would save me a significant amount of time to then go through and double check before deletion. As an alternative, simply using Apple's own Ranking in SQLite Database would also greatly help - collect low-ranked photos into one album.
Incremental Changes
I have a NAS at home and use an external SSD to store my downloaded photo library.When I discovered OSXPhotos, I considered the following workflow:
However, instead of exporting only the new photos and deleting the recently removed ones, OSXPhotos attempted to re-download all photos and process each of them. It would be amazing if the tool could export only newly added photos and delete recently removed ones in such incremental updates.
Sync Option
My final request is the ability to propagate changes in the exported library back to Apple Photos. For instance, I prefer using Lightroom for its functionality over Apple Photos. I would like to manage all my photos from Lightroom Classic by importing the exported library into the Lightroom Catalog, removing low-quality photos, and having OSXPhotos propagate these deletions back to Apple Photos.
Beta Was this translation helpful? Give feedback.
All reactions