Nebulae
A deep learning framework based on PyTorch and prevalent image processing libraries
It aims to offer a set of useful tools and functions.
🚀 Spotlight
Several frequently used features are integrated with simple interfaces.
🛠️ Integrated Feats - EMA module, multi-source datasets, training log plotting and timer etc.
🎯 Simplified API - Unified API for distributed and single-GPU training.
⚡️ Efficiency - Data augmentations are reimplemented using Numpy which is faster than PIL.
🧩 High Compatibility - Users are able to build networks using Nebulae with PyTorch seamlessly.
⚡ Quick Start
📸 Utility
Obtain GPU stats after some training epochs.
import nebulae as neb
from nebulae import *
gu = kit.GPUtil()
gu.monitor()
for epoch in range(10):
# --- training code --- #
gu.status()
Automatically select unoccupied GPUs. It is useful for a shared machine.
import nebulae as neb
from nebulae import *
# select 4 GPUs with 2GB or more memory left
engine = npe(device=power.GPU, ngpu=4, least_mem=2048)
Find entire distributed training and test code in ./examples/demo_core.py
📦 Installation
Users can install nebulae from pip
pip install nebulae
For local development, use uv with the committed uv.lock and Python 3.12.11:
export UV_CACHE_DIR=/root/proj/.uv-cache
export UV_LINK_MODE=hardlink
uv sync --locked
uv run --locked python -c "import nebulae; print(nebulae.__file__)"
The same cache and link settings are configured in pyproject.toml. The project is
installed in editable mode in .venv; source changes take effect immediately.
The lock preserves the existing dependency versions and PyTorch CUDA 12.8 builds.
OpenCV and PyAV are included in the default development group, matching the existing environment.
The uv resolution targets Python 3.12 without changing the published Python support metadata.
Commit pyproject.toml, uv.lock, and .python-version; do not commit .venv.
On this machine, use uv sync --locked --reinstall if an existing environment needs
to be relinked to the shared cache. Host-side builds and publishing can continue
using the existing workflow.
For better development, building from Dockerfile is also available. Modifying the libs version and have nvidia-docker on your machine is recommended.
sudo docker build -t nebulae:std -f Dockerfile.std .
sudo docker run -it --gpus all --ipc=host --ulimit memlock=-1 nebulae:std
The latest version supports PyTorch1.6 and above
❤️ Support
If you find Nebulae helpful, consider giving it a ⭐ on GitHub! ▶️ https://github.com/SeriaQ/Nebulae
Metadata
Release files for nebulae 0.6.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nebulae-0.6.29.tar.gz | 60.1 kB | Without provenance | Details for nebulae-0.6.29.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nebulae-0.6.29-py3-none-any.whl | Python 3 | none | any | Details for nebulae-0.6.29-py3-none-any.whl |
Total release size: 124.9 kB
Release files / nebulae-0.6.29.tar.gz
| Download URL | nebulae-0.6.29.tar.gz |
|---|---|
| Size | 60.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d39d4cdf85546bdb80e90abfcee746fb8d1ac1cd49898ba43769a284ded7bc7
|
|
BLAKE2b-256 checksum How to use checksums |
7602c5d7574fe0de5871dd3468375c99d73c39e87e5312775641f05682e4062e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / nebulae-0.6.29-py3-none-any.whl
| Download URL | nebulae-0.6.29-py3-none-any.whl |
|---|---|
| Size | 64.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae88309c576502ec8696298f846dd14e4573f3965308b5c30463f307e01b8b91
|
|
BLAKE2b-256 checksum How to use checksums |
09f5466b6e726bbfd8b3105583fe2ee8e397346e16ef6dce9483ef5b05278438
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for nebulae 0.6.29
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.