Metadata-Version: 2.4
Name: skytwin
Version: 0.1.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Rust
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Dist: numpy>=1.22
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: torch ; extra == 'torch'
Provides-Extra: test
Provides-Extra: torch
License-File: LICENSE
License-File: THIRD-PARTY-LICENSES.txt
Summary: Synthetic star-field images with satellite streaks, instrument defects and an exact answer key for every frame
Keywords: astronomy,simulation,satellite,space domain awareness,deep learning
Home-Page: https://github.com/shaneryall/SkyTwin
Author: Shane Ryall
License-Expression: GPL-3.0-or-later
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/shaneryall/SkyTwin/blob/main/CHANGELOG.md
Project-URL: Documentation, https://shaneryall.github.io/SkyTwin/
Project-URL: Homepage, https://github.com/shaneryall/SkyTwin
Project-URL: Repository, https://github.com/shaneryall/SkyTwin

# skytwin (Python)

Synthetic star-field images with satellite streaks, instrument defects and an exact answer key
for every frame, rendered in memory and streamed to Python. See the
[Skytwin README](https://github.com/shaneryall/SkyTwin#training-sets).

```bash
pip install skytwin      # or `pip install .` from this folder to build from source
```

```python
import skytwin

sim = skytwin.Simulator("scene.json")
for f in sim.stream(count=1000, expected=True):
    f.image, f.expected, f.truth
```

Replace `scene.json` with the path to any Skytwin
[scene file](https://github.com/shaneryall/SkyTwin/blob/v0.1.0/docs/scene-format.md).

Tests: `pip install -e '.[test]' && pytest tests` (the command-line match
test needs `cargo build --release` at the repository root; the PyTorch test
needs `torch`).

To write a training set for Ultralytics YOLO or for COCO tools such as DETR, run:

```bash
skytwin-export scene.json out/ --frames 5000 --format yolo --format coco --tile 640
```

See [docs/labels.md](https://github.com/shaneryall/SkyTwin/blob/v0.1.0/docs/labels.md) for the labels, the options and
the PyTorch targets.

