- Fixed frame index calculation in capturer.py to prevent invalid -1 index
- Removed side-effect of automatic settings load in globals.py; added explicit init()
- Refactored functions to accept config params directly, reducing global settings reliance:
- find_cluster_centroids() now takes max_k and kmeans_init
- NSFW prediction functions now accept threshold
- Updated documentation for all affected functions
- Verified all changes against existing test suite — all tests pass
- Enhanced color space handling in capturer.py with explicit controls
- Improved cluster analysis with silhouette scoring for better face matching
- Added caching for NSFW model to improve performance
- Implemented proper error handling and logging across all modules
- Added configurable settings system in globals.py
- Created comprehensive unit tests
- Added detailed documentation with docstrings
Followed the `README` but ran into some errors running it locally. Made a few tweaks and got it working on my M3 PRO. Found this PR (Failing to run on Apple Silicon Mac M3) and thought improving the instructions might help others. Hope this helps!
great tool guys, thx a lot
- Add explicit checks for face detection results (source and target faces).
- Handle cases when face embeddings are not available, preventing AttributeError.
- Provide meaningful log messages for easier debugging in future scenarios.
Made changes for apple silicon.
Or getting
ERROR: Could not find a version that satisfies the requirement torch==2.5.1+cu118 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0)
ERROR: No matching distribution found for torch==2.5.1+cu118