Code Monkey home page Code Monkey logo

torchsat's Introduction


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 the latest progress, please check the develop branch.

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

  • source: python3 setup.py install

How to use

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, resnet50, resnet101, resnet152, resnext50_32x4d,resnext101_32x8d, wide_resnet50_2, wide_resnet101_2
  • DenseNet: densenet121, densenet169, densenet201
  • Inception: inception_v3
  • MobileNet: mobilenet_v2
  • EfficientNet: efficientnet_b0, efficientnet_b1, efficientnet_b2, efficientnet_b3,efficientnet_b4, efficientnet_b5, efficientnet_b6, efficientnet_b7
  • ResNeSt: resnest50, resnest101, resnest200, resnest269

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.

torchsat's People

Contributors

sshuair avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.