TorchSat is an open-source deep learning framework for satellite imagery analysis based on PyTorch.
This project is still work in progress. If you want to know more about it, please refer to the Roadmap .
Hightlight
- 😉 Support multi-channels(> 3 channels, e.g. 8 channels) images and TIFF file as input.
- 😋 Convenient data augmentation method for classification, sementic segmentation and object detection.
- 😍 Lots of models for satellite vision tasks, such as ResNet, DenseNet, UNet, PSPNet, SSD, FasterRCNN ...
- 😃 Lots of common satellite datasets loader.
- 😮 Training script for common satellite vision tasks.
Install
python3 setup.py install
How to use
- Introduction -
- Classification tutorial -
- Data augmentation - data-augmentation.ipynb
- Data loader
- models
- train script
Features
Data augmentation
We suppose all the input images, masks and bbox should be NumPy ndarray. The data shape should be [height, width] or [height, width, channels].
pixel level
Pixel-level transforms only change the input image and will leave any additional targets such as masks, bounding boxes unchanged. It support all channel images. Some transforms only support specific input channles.
| Transform | Image | masks | BBoxes |
|---|---|---|---|
| ToTensor | ✓ | ✓ | ✓ |
| Normalize | ✓ | ✓ | ✓ |
| ToGray | ✓ | ✓ | ✓ |
| GaussianBlur | ✓ | ✓ | ✓ |
| RandomNoise | ✓ | ✓ | ✓ |
| RandomBrightness | ✓ | ✓ | ✓ |
| RandomContrast | ✓ | ✓ | ✓ |
spatial-level
Spatial-level transforms will simultaneously change both an input image as well as additional targets such as masks, bounding boxes. It support all channel images.
| Transform | Image | masks | BBoxes |
|---|---|---|---|
| Resize | ✓ | ✓ | ✓ |
| Pad | ✓ | ✓ | ✓ |
| RandomHorizontalFlip | ✓ | ✓ | ✓ |
| RandomVerticalFlip | ✓ | ✓ | ✓ |
| RandomFlip | ✓ | ✓ | ✓ |
| CenterCrop | ✓ | ✓ | ✓ |
| RandomCrop | ✓ | ✓ | ✓ |
| RandomResizedCrop | ✓ | ✓ | ✓ |
| ElasticTransform | ✓ | ✓ | |
| RandomRotation | ✓ | ✓ | |
| RandomShift | ✓ | ✓ |
Models
Classification
All models support multi-channels as input (e.g. 8 channels).
- VGG:
vgg11,vgg11_bn,vgg13,vgg13_bn,vgg16,vgg16_bn,vgg19_bn,vgg19 - ResNet:
resnet18,resnet34,restnet50,resnet101,resnet152 - DenseNet:
densenet121,densenet169,densenet201,densenet161 - Inception:
inception_v3 - MobileNet:
mobilenet_v2
Sementic Segmentation
- UNet:
unet,unet34,unet101,unet152(with resnet as backbone.)
Dataloader
Classification
Showcase
If you extend this repository or build projects that use it, we'd love to hear from you.
Reference
Note
- If you are looking for the torchvision-enhance, please checkout the enhance branch. But it was deprecated.
Metadata
Release files for torchsat 0.0.1
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 |
|---|---|---|---|---|
| torchsat-0.0.1.tar.gz | 31.8 kB | Without provenance | Details for torchsat-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| torchsat-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for torchsat-0.0.1-py3-none-any.whl |
Total release size: 78.1 kB
Release files / torchsat-0.0.1.tar.gz
| Download URL | torchsat-0.0.1.tar.gz |
|---|---|
| Size | 31.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0437c2768302bc47619cb62541ac8cdef8bd5bcc3d6c088ac0c53e21432add1b
|
|
BLAKE2b-256 checksum How to use checksums |
9be6b132608b96e9425d0ac0aaf88e38b84d78bf945f832da86c4de06fafbff5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
|
Release files / torchsat-0.0.1-py3-none-any.whl
| Download URL | torchsat-0.0.1-py3-none-any.whl |
|---|---|
| Size | 46.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
153af11f7331a0bb828a7dbdde9d82c0ab45a7be72063fb7979f057a3137a4bf
|
|
BLAKE2b-256 checksum How to use checksums |
71b888433405e6d267cfae1e41484da01987cc1dc82dd56c1a45ea927b101655
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
|
Security for torchsat 0.0.1
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.