examples
pytorch-styleguide
examples | pytorch-styleguide | |
---|---|---|
23 | 1 | |
21,814 | 1,826 | |
1.0% | - | |
7.7 | 0.0 | |
7 days ago | over 2 years ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
examples
-
A Distributed File System in Go Cut Average Metadata Memory Usage to 100 Bytes
For “cloud-native” apps, JuiceFS is not needed.
S3 is not designed for intensive metadata operations, like listing, renaming etc. For these operations, you will need a somewhat POSIX-complaint system. For example, if you want to train on ImageNet dataset, the “canonical” way [1] is to extract the images and organize them into folders, class by class. The whole dataset is discovered by directory listing. This where JuiceFS shines.
Of course, if the dataset is really massive, you will mostly end-up with in-house solutions.
[1]: https://github.com/pytorch/examples/blob/main/imagenet/extra...
-
Logistic Regression for Image Classification Using OpenCV
Pytorch includes a simple neural network example for the MNIST data: https://github.com/pytorch/examples/blob/main/mnist/main.py
It only takes a few minutes to train with default parameters and will have >99% accuracy on the MNIST test set.
-
[R] Nvidia RTX 4090 ML benchmarks. Under QEMU/KVM. Image + Transformers. FP16/FP32.
pytorch-examples
-
I work at a non-tech company and have been asked to make software that is impossible. How do I explain it to my boss?
Pretty much just grab one of these, swap in your own database, go home early: https://pytorch.org/examples/
-
MIT Course: Generative AI for Constructive Communication
[5] https://github.com/pytorch/examples/tree/main/word_language_...
-
From a Dumb Student to a PyTorch Contributor: The Impact of Teachers on My Life⚡
The cherry on top of the cake I've added my father's name at the top of the code in the comments. I hope that for the next upcoming 200-300 years, someone will read modify and improve or perform experiments with my code.(Vivek V patel), My code can be found at official PyTorch's Website https://pytorch.org/examples/(Image Classification Using Forward-Forward Algorithm)
-
What modifications can maximize the efficacy of the REINFORCE algorithm for a policy gradient task?
I am straying out of my domain knowledge to attempt a basic reinforcement learning task in a toy environment and have become fairly familiar with the REINFORCE algorithm for policy gradient agents, especially PyTorch’s implementation (found here). It is clear to me now that there are superior methods to train RL agents (PPO for instance), but as I read, these feel beyond my current intellectual or time resources. As such, I’d like to eek out as much power through modifications of REINFORCE as possible before determining how I might move on.
-
How does Taichi differ from PyTorch? They are different in every sense!
import torch import torch.nn as nn import torch.nn.functional as F # Simplified version of https://github.com/pytorch/examples/blob/main/mnist/main.py#L21 class Net(nn.Module): def __init__(self): super(Net, self).__init__() self.conv1 = nn.Conv2d(1, 32, 3, 1) def forward(self, x): x = self.conv1(x) output = F.relu(x) return output
- Noob PyTorch Question
- Syntax Error, attempting to train neural network.
pytorch-styleguide
-
What are some best practices and examples for laying out code and files with pytorch?
Igor Susmelj's PyTorch best practices & Styleguide
What are some alternatives?
self-driving-car - The Udacity open source self-driving car project
wemake-python-styleguide - The strictest and most opinionated python linter ever!
aws-graviton-getting-started - Helping developers to use AWS Graviton2 and Graviton3 processors which power the 6th and 7th generation of Amazon EC2 instances (C6g[d], M6g[d], R6g[d], T4g, X2gd, C6gn, I4g, Im4gn, Is4gen, G5g, C7g[d][n], M7g[d], R7g[d]).
lightning-hydra-template - PyTorch Lightning + Hydra. A very user-friendly template for ML experimentation. ⚡🔥⚡
fast-style-transfer - TensorFlow CNN for fast style transfer ⚡🖥🎨🖼
PyTorchProjectFramework - A basic framework for your PyTorch projects
pytea - PyTea: PyTorch Tensor shape error analyzer
raccoon_dataset - The dataset is used to train my own raccoon detector and I blogged about it on Medium
benchmarks_4090
pytorch-image-models - The largest collection of PyTorch image encoders / backbones. Including train, eval, inference, export scripts, and pretrained weights -- ResNet, ResNeXT, EfficientNet, NFNet, Vision Transformer (ViT), MobileNet-V3/V2, RegNet, DPN, CSPNet, Swin Transformer, MaxViT, CoAtNet, ConvNeXt, and more
text-rnn - text-rnn allows you to create modern neural network architectures which use modern techniques such as skip-embedding and attention weighting. Train either a bidirectional or normal LSTM recurrent neural network to generate text using any dataset. You can continue training a pre-trained model.