Giter Site home page Giter Site logo

tensor46 / tensormonk Goto Github PK

View Code? Open in Web Editor NEW
20.0 7.0 6.0 132.94 MB

A collection of deep learning models (PyTorch implemtation)

License: MIT License

Python 100.00%
pytorch capsule-networks efficientnet resnet inceptionv4 ssd-mobilenet pggan shufflenet mobilenetv2 mobilenet-ssd

tensormonk's Introduction

TensorMONK

A collection of deep learning architectures (a PyTorch implementation).

Dependencies

  • python >= 3.6
  • PyTorch > 1.3
  • torchvision
  • visdom

Training models on 2012 ImageNet recognition task

If you have more nvidia cards & cores available, adjust the batch size (BSZ), number of GPUs (gpus), & number of threads (cpus) accordingly in the ./ImageNet.sh. Next, select an available architecture and update your train & validation folder location (trainDataPath and testDataPath). Finally, run ./ImageNet.sh.

Training CapsuleNet on MNIST

To replicate Hinton's paper on MNIST, run the following:

python Capsule.py -A capsule -B 256 -E 500 --optimizer adam --gpus 2 --cpus 6 --trainDataPath ./data --testDataPath ./data --replicate_paper

Ignore the replicate_paper argument to create a deep architecture (with few residual blocks before primary capsule). You can essentially add any block available in NeuralLayers to create a deeper architecture, which is followed by a primary capsule and secondary capsule. However, do consider two things 1. if you do reconstruction, update the reconstruction network relative to tensor_size, 2. capsule nets do require a good amount of gpu ram.

Generative Adversarial Networks

Trained on CIFAR10 (pggan-cifar10.py) -- requires more training (more gpus)!

Generator at 4x4 Generator at 8x8 Generator at 16x16 Generator at 32x32

References

Activation Functions

Classification

Generative Models

Image Recognition Models

Image Segmentation Models

Local Features

Loss Functions

Object Detection Models

Optimizer

Regularizations

tensormonk's People

Contributors

saripalle avatar sparupat avatar tensor46 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tensormonk's Issues

How to use condconv

Thanks for your great work
Could you tell me how to use Condconv in my network ๏ผŸ

Mish Implementation

According to the code file, the implementation of Mish is as follows:

def mish(tensor: torch.Tensor) -> torch.Tensor:
    return tensor * tensor.exp().add(1).log().tanh()

In my repository Mish implementation is like:

def mish(tensor: torch.Tensor) -> torch.Tensor:
    return tensor * torch.tanh(F.softplus(tensor))

Is your implementation faster than mine??

Also, would appreciate if you included the paper link of Mish in the main Readme and in the activations readme, in the list of available activations, Mish is not present.

The paper link is in my repository here - https://github.com/digantamisra98/Mish

Request for a folder structure for models and the corresponding files created

Issue: While training multiple models, all the models and the corresponding files generated are all saved in the same folder. This makes it hard to search for files generated by a particular model.

Recommendation: To generate a folder for the model being created with the same name and all the corresponding files get dumped inside it.

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.