A Python package for classifying galaxy morphologies using deep learning.
Project description
🌌 Galamo - Galaxy Morphology Predictor
🚀 Features
✅ Pre-trained deep learning model for galaxy morphology classification
✅ Automatic image preprocessing (resizing, normalization, and format conversion)
✅ Simple and intuitive API requiring only an image file as input
✅ Supports multiple galaxy morphology types
✅ Compatible with Python 3.6+
📥 Installation
Install from PyPI
To install the package using pip:
pip install galamo
Install from Source
Alternatively, to install from source:
git clone https://github.com/jsdingra11/galamo.git
cd galamo
pip install .
📖 Usage Guide
Import and Initialize the Model
from galamo import galaxy_morph
Predict Galaxy Morphology from an Image
galaxy_morph("galaxy.jpg")
Example Output
Predicted Morphology: Spiral Galaxy
⚙️ How It Works
- Loads a pre-trained deep learning model for galaxy classification.
- Preprocesses the input image (resizing, RGB conversion, and normalization).
- Feeds the processed image into the neural network for prediction.
- Converts the predicted class index to its corresponding galaxy morphology name.
📋 Requirements
Ensure the following dependencies are installed:
- Python 3.10+
- TensorFlow
- NumPy
- OpenCV
- Joblib
- Matplotlib
🧠 Model Details
- Trained on a dataset of galaxy images labeled with different morphology types.
- Utilizes a Convolutional Neural Network (CNN) to extract features and classify images.
- Uses a label encoder to map numerical predictions to meaningful class names (e.g., Spiral, Elliptical, Irregular, etc.).
🤝 Contributing
Galamo welcome contributions! To improve the model or add new features:
- Fork the repository.
- Create a feature branch (
git checkout -b feature-name). - Commit your changes (
git commit -m 'Added new feature'). - Push the branch (
git push origin feature-name). - Create a pull request.
📜 License
This project is licensed under the MIT License – see the LICENSE file for details.
📬 Contact & Support
👨💻 Author: Jashanpreet Singh Dingra
👨💻 Co-Author: Vikramjeet Singh
📧 Email: astrodingra@gmail.com
🔗 GitHub: https://github.com/jsdingra11
For issues or feature requests, please open an issue on GitHub.
🌠 Galamo - Unveiling the Universe, One Galaxy at a Time!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file galamo-0.0.2.tar.gz.
File metadata
- Download URL: galamo-0.0.2.tar.gz
- Upload date:
- Size: 67.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
778e9ccb1cb8958d11c84933c0561f441eeb78bdccfa003d9178c1903c918f7f
|
|
| MD5 |
735b47d8e7c436a7da46b2c3a8f84761
|
|
| BLAKE2b-256 |
bf6936c2ddd9140bfd0dbcf0842016f24f1cb1e287adf1220551b65908facc41
|
File details
Details for the file galamo-0.0.2-py3-none-any.whl.
File metadata
- Download URL: galamo-0.0.2-py3-none-any.whl
- Upload date:
- Size: 67.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9682e3c73b57e9e102bfb6121037cf2ae0423c2b6dd1eeb14bfd3824a44fcd1b
|
|
| MD5 |
4b7ae47b4d138d8cf14b38d63d0f55dc
|
|
| BLAKE2b-256 |
3f6b41a5584d2b20138066eb6ae1429a17fec904493e1eb7a89dbddf4bf04e15
|