Skip to main content

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

  1. Loads a pre-trained deep learning model for galaxy classification.
  2. Preprocesses the input image (resizing, RGB conversion, and normalization).
  3. Feeds the processed image into the neural network for prediction.
  4. 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:

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature-name).
  3. Commit your changes (git commit -m 'Added new feature').
  4. Push the branch (git push origin feature-name).
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galamo-0.0.2.tar.gz (67.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

galamo-0.0.2-py3-none-any.whl (67.5 MB view details)

Uploaded Python 3

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

Hashes for galamo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 778e9ccb1cb8958d11c84933c0561f441eeb78bdccfa003d9178c1903c918f7f
MD5 735b47d8e7c436a7da46b2c3a8f84761
BLAKE2b-256 bf6936c2ddd9140bfd0dbcf0842016f24f1cb1e287adf1220551b65908facc41

See more details on using hashes here.

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

Hashes for galamo-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9682e3c73b57e9e102bfb6121037cf2ae0423c2b6dd1eeb14bfd3824a44fcd1b
MD5 4b7ae47b4d138d8cf14b38d63d0f55dc
BLAKE2b-256 3f6b41a5584d2b20138066eb6ae1429a17fec904493e1eb7a89dbddf4bf04e15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page