Skip to main content

Simple but useful layers for Pytorch

Project description

TorchSUL

This package is created for better experience while using Pytorch.

Why making this

  1. For fun.

  2. Path-dependence. I am addicted to my own wrap-ups.

  3. Multi-platform. I have made the same APIs for pytorch, TF, MXNet, and a conversion tool to Caffe.

  4. Some strange reason. Frameworks like TF, MXNet, Caffe, Paddle do not need to claim input shape to initialize layers, but frameworks like pytorch, torch, chainer require this. I prefer not to claim since it will be more convenient when building models (Why I need to care about previous layers when I only want to write forward computation?), so I modified pytorch module to support this. Also, it inlines with my TF wrap-ups so I can move my old code easily to the current package.

Installation

You need to install the newest version of pytorch.

Good, then just

pip install --upgrade torchsul

Projects

You can find some examples in the "example" folder.

  • ArcFace (Deng, Jiankang, et al. "Arcface: Additive angular margin loss for deep face recognition." arXiv preprint arXiv:1801.07698 (2018))

  • HR Net (Sun, Ke, et al. "Deep High-Resolution Representation Learning for Human Pose Estimation." arXiv preprint arXiv:1902.09212 (2019))

  • AutoDeepLab (Liu, Chenxi, et al. "Auto-deeplab: Hierarchical neural architecture search for semantic image segmentation." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2019)

  • Knowledge distillation (Hinton, Geoffrey, Oriol Vinyals, and Jeff Dean. "Distilling the knowledge in a neural network." arXiv preprint arXiv:1503.02531 (2015))

  • 3DCNN (Ji, Shuiwang, et al. "3D convolutional neural networks for human action recognition." IEEE transactions on pattern analysis and machine intelligence 35.1 (2012): 221-231)

  • Temporal Convolutional Network (Not the same) (Pavllo, Dario, et al. "3D human pose estimation in video with temporal convolutions and semi-supervised training." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2019)

  • RetinaFace for face detection (Deng, Jiankang, et al. "Retinaface: Single-stage dense face localisation in the wild." arXiv preprint arXiv:1905.00641 (2019))

  • Fractal Net (Larsson, Gustav, Michael Maire, and Gregory Shakhnarovich. "Fractalnet: Ultra-deep neural networks without residuals." arXiv preprint arXiv:1605.07648 (2016))

  • Model conversions

  • Batch_norm compression to speed-up models

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

TorchSUL-0.1.24.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

TorchSUL-0.1.24-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file TorchSUL-0.1.24.tar.gz.

File metadata

  • Download URL: TorchSUL-0.1.24.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10

File hashes

Hashes for TorchSUL-0.1.24.tar.gz
Algorithm Hash digest
SHA256 7a3d8c07016fe783f93e0d81c2f12be475cb47d889c718ba7034fbbfadb25cc3
MD5 ff1a3b4b5b68be18e0fcb338acd33026
BLAKE2b-256 62bdc25bcc0b193e5ed89b03448f098461b350d4806d1e695538610b0f03dfbc

See more details on using hashes here.

File details

Details for the file TorchSUL-0.1.24-py3-none-any.whl.

File metadata

  • Download URL: TorchSUL-0.1.24-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10

File hashes

Hashes for TorchSUL-0.1.24-py3-none-any.whl
Algorithm Hash digest
SHA256 54a7ce3d93976346edef9a2ae53bf67b89a02ad29c0daac4bbb642f70610f924
MD5 37a830845970f4803aef3571314c4fe4
BLAKE2b-256 f7a23cc2c0fd10a938fd3e62f4c318c17fb4036181d949a3afab7fd3e6c364c6

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