About 8,520 results
Open links in new tab
  1. Training a Classifier — PyTorch Tutorials 2.9.0+cu128 documentation

    3. Define a Loss function and optimizer # Let’s use a Classification Cross-Entropy loss and SGD with momentum.

  2. NLP From Scratch: Classifying Names with a Character-Level RNN

    Using the dataset object allows us to easily split the data into train and test sets. Here we create a 80/20 split but the torch.utils.data has more useful utilities. Here we specify a generator since …

  3. Transfer Learning for Computer Vision Tutorial - PyTorch

    In this tutorial, you will learn how to train a convolutional neural network for image classification using transfer learning. You can read more about the transfer learning at cs231n notes

  4. PyTorch Examples — PyTorchExamples 1.11 documentation

    The PyTorch C++ frontend is a C++14 library for CPU and GPU tensor computation. This set of examples includes a linear regression, autograd, image recognition (MNIST), and other useful …

  5. Models and pre-trained weights - PyTorch

    The pre-trained models for detection, instance segmentation and keypoint detection are initialized with the classification models in torchvision. The models expect a list of Tensor[C, H, W].

  6. torchvision.models — Torchvision 0.8.1 documentation

    The models subpackage contains definitions of models for addressing different tasks, including: image classification, pixelwise semantic segmentation, object detection, instance …

  7. CrossEntropyLoss — PyTorch 2.9 documentation

    It is useful when training a classification problem with C classes. If provided, the optional argument weight should be a 1D Tensor assigning weight to each of the classes.

  8. Welcome to PyTorch Tutorials — PyTorch Tutorials 2.9.0+cu128 …

    Familiarize yourself with PyTorch concepts and modules. Learn how to load data, build deep neural networks, train and save your models in this quickstart guide.

  9. ResNet – PyTorch

    # Download an example image from the pytorch website import urllib url, filename = ("https://github.com/pytorch/hub/raw/master/images/dog.jpg", "dog.jpg") try: urllib.

  10. Densenet – PyTorch

    # Download an example image from the pytorch website import urllib url, filename = ("https://github.com/pytorch/hub/raw/master/images/dog.jpg", "dog.jpg") try: urllib.