Fix Apple Silicon (ARM64) compatibility #305
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses installation failures on macOS with Apple Silicon (M1/M2/M3) processors. The core functionality is working, but deep learning modules need further compatibility testing and optimization.
Status: DRAFT
Problem
Users with Apple Silicon Macs cannot install aydin due to:
Solution
Installation Instructions
For users who want to test this branch on Apple Silicon:
Or if you need to install with editable mode:
Changes Made
1. TensorFlow Import Compatibility
aydin/regression/nn_utils/models.py: Added try-except for keras importsaydin/nn/tf/models/utils/conv_block.py: Fixed BatchNormalization import path2. Platform-Specific Dependencies in setup.cfg
3. Additional Constraints
pydantic>=1.9.0,<2.0for napari compatibility<2.0for compatibilityTesting
aydin --help,aydin denoise, etc.)TODO Before Merge
Notes
Related Issues
Fixes installation issues reported by Apple Silicon users.
🤖 Generated with Claude Code