TorchVision | PyTorch Developer Day 2020

PyTorch · Advanced ·👁️ Computer Vision ·5y ago

Key Takeaways

The video discusses TorchVision, a PyTorch library for computer vision, and its new features, including native TorchScript and ONNX support, mixed precision training and inference, and updated transforms and IO functions.

Full Transcript

[Music] hi everyone and welcome to the 2020 pie charts developer day i'm francisco masa and i'm a research engineer at facebook ai i work in the pytorch team and i'm the maintainer of torch vision today i'll be talking about what torch vision is how it can enable you to get started in computer vision with pytorch and the latest additions that have been introduced to talk to vision over the last year the first question you might ask yourself is what is storage vision torch vision is a library that is built to facilitate research and experimentation in computer vision it extends by torch with functionality which is very specific and useful to computer vision so that keeps the pathwatch library lean and focused on core diploma abstractions but what exactly is their interactivity let's have a closer look trotvision facilitates research and experimentation in computer vision by providing a number of building blocks that allows you to quickly start a new project end-to-end it provides data sets common data sets for a number of mainstream vision tasks such as classification and object detection it also has models we provide reference pre-trained models for classification detection and more protovision also has start scriptable operators specific to computer vision models and data transformation operators to simplify creating data augmentation pipelines additionally it contains primitives for efficient image and video reading and finally reference training scripts which illustrates with a few files how it can train yourself the modern import vision leveraging the building blocks that we provide over the last year we have been improving through division in order to simplify the path from research to production the way pi torch enables the research production path is via throat script an intermediate representation of your python program that it can be exportable to run on c plus environments via the throat script runtime the core part of every deep learning pipeline resides on its models by closely working with the torch script and onyx teams we have enabled all touch vision models to natively support thoughtscript and onixport thanks to the pre-trained models in trout fusion you can quickly build c classifications leveraging the power of deep learning but models are only part of the story when it comes to embedding your python code into a c plus plus runtime very often you need to prepare the input data into a format that is compatible with the model torque division used to rely on pillow for most of the data transformations so moving your application to c plus plus requires implementing the transformations in a way which is compatible with c plus plus now portuguese transforms can directly work controlled answers and can be exported to torch script so you only need to implement the transforms once in python finally tortivision now provides native io functions for image and video decoding enabling the full raw data to model prediction pipeline to be converted from python to c plus plus now let's get a closer look at each one of those points all part division models have native throat script and onix support so that exporting them to c plus plus can be done with a couple of lines of code additionally mixed precision training and inference is available for all models enabling faster runtime with lower memory footprint start vision transforms have been updated to inherit from any module and accept storage sensors as input with torch crypt compatibility this brings several benefits to the data augmentation pipeline such as off-the-shelf gpu support video use case enablement via efficient batch transformations of frames and the possibility to explore the transforms together with your model in c plus plus environments tortivision now provides image reading and writing operators for jpeg and png formats with native transcript support you can directly read local image path into a torch dancer or alternatively decompose the operators into raw file reading where only the bytes of the file are read and returned as the uint8 tensor and the coating of the raw data into an image sensor thanks to native storage script support image decoding can be embedded together with your model for an end-to-end export experience finally trotvision provides a frame based video written api with support for both audio and video and short scripts compatibility the video reader is an iterator and can be combined with eater tools for advanced video reading patterns such as written the next 10 frames after a specified timestamp or skipping every other frame in the video or reading all frames between two timestamps this new video reader api is currently released as beta and its api can change following user feedback we have some additional examples of the new functionalities in short vision in the examples folder on github where you can find notebooks for the video reader api as well as the transforms in torque vision we welcome any contributions if you find a bug have a request for an improvement or a new feature inclusion let us know via the issue tracker on the torch vision github page or contribute via pull requests i'd like to thank you for watching and i hope that your vision can help you build great new applications leveraging [Music] pytorch

Original Description

TorchVision is a domain library for PyTorch, consisting of popular datasets, model architectures, common image transformations, and operators for computer vision. In this talk, Francisco Massa, a PyTorch research engineer, will examine the new features added to TorchVision in 2020. The highlights include native research to production enablement via TorchScript and ONNX support, enhanced transforms with Tensor and GPU support, new primitives for image IO, and a new beta API for video reading.
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from PyTorch · PyTorch · 0 of 60

← Previous Next →
1 What is PyTorch?
What is PyTorch?
PyTorch
2 PyTorch Tutorial: A Quick Preview
PyTorch Tutorial: A Quick Preview
PyTorch
3 PyTorch Summer Hackathon 2019
PyTorch Summer Hackathon 2019
PyTorch
4 Tips and Tricks on Hacking with PyTorch: A Quick Tutorial by Brad Heintz
Tips and Tricks on Hacking with PyTorch: A Quick Tutorial by Brad Heintz
PyTorch
5 PyTorch 1.2 and PyTorch Hub: A Quick Introduction by Soumith Chintala and Ailing Zhang
PyTorch 1.2 and PyTorch Hub: A Quick Introduction by Soumith Chintala and Ailing Zhang
PyTorch
6 Torchtext 0.4 with Supervised Learning Datasets: A Quick Introduction by George Zhang
Torchtext 0.4 with Supervised Learning Datasets: A Quick Introduction by George Zhang
PyTorch
7 Torchaudio 0.3 with Kaldi Compatibility, New Transforms: A Quick Introduction by Jason Lian
Torchaudio 0.3 with Kaldi Compatibility, New Transforms: A Quick Introduction by Jason Lian
PyTorch
8 Torchvision 0.4 with Support for Video: A Quick Introduction by Francisco Massa
Torchvision 0.4 with Support for Video: A Quick Introduction by Francisco Massa
PyTorch
9 Introduction to Machine Learning for Developers at F8 2019
Introduction to Machine Learning for Developers at F8 2019
PyTorch
10 Powered by PyTorch at F8 2019
Powered by PyTorch at F8 2019
PyTorch
11 Developing and Scaling AI Experiences at Facebook with PyTorch at F8 2019
Developing and Scaling AI Experiences at Facebook with PyTorch at F8 2019
PyTorch
12 New Approaches to Image and Video Reconstruction Using Deep Learning at Facebook at F8 2019
New Approaches to Image and Video Reconstruction Using Deep Learning at Facebook at F8 2019
PyTorch
13 PyTorch Developer Conference 2018: Recap
PyTorch Developer Conference 2018: Recap
PyTorch
14 PyTorch Developer Conference 2018: Keynote & Deep Dive
PyTorch Developer Conference 2018: Keynote & Deep Dive
PyTorch
15 PyTorch Developer Conference 2018: Production & Research Sessions
PyTorch Developer Conference 2018: Production & Research Sessions
PyTorch
16 PyTorch Developer Conference 2018: Cloud & Academia Sessions
PyTorch Developer Conference 2018: Cloud & Academia Sessions
PyTorch
17 PyTorch Developer Conference 2018: Enterprise, Education, & Future of AI Panel
PyTorch Developer Conference 2018: Enterprise, Education, & Future of AI Panel
PyTorch
18 PyTorch Developer Conference 2019 | Full Livestream
PyTorch Developer Conference 2019 | Full Livestream
PyTorch
19 PyTorch Developer Conference 2019: Recap
PyTorch Developer Conference 2019: Recap
PyTorch
20 PyTorch Developer Conference Keynote - Mike Schroepfer
PyTorch Developer Conference Keynote - Mike Schroepfer
PyTorch
21 What’s new in PyTorch 1.3 - Lin Qiao
What’s new in PyTorch 1.3 - Lin Qiao
PyTorch
22 PyTorch Front-End Features: Named Tensors and Type Promotion - Gregory Chanan
PyTorch Front-End Features: Named Tensors and Type Promotion - Gregory Chanan
PyTorch
23 Research to Production: PyTorch JIT/TorchScript Updates - Michael Suo
Research to Production: PyTorch JIT/TorchScript Updates - Michael Suo
PyTorch
24 Quantization - Dmytro Dzhulgakov
Quantization - Dmytro Dzhulgakov
PyTorch
25 PyTorch ONNX Export Support - Lara Haidar, Microsoft
PyTorch ONNX Export Support - Lara Haidar, Microsoft
PyTorch
26 Apex -  Michael Carilli, NVIDIA
Apex - Michael Carilli, NVIDIA
PyTorch
27 Dataloader Design for PyTorch - Tongzhou Wang, MIT
Dataloader Design for PyTorch - Tongzhou Wang, MIT
PyTorch
28 Linear Algebra in PyTorch - Vishwak Srinivasan, CMU
Linear Algebra in PyTorch - Vishwak Srinivasan, CMU
PyTorch
29 PyTorch Mobile - David Reiss
PyTorch Mobile - David Reiss
PyTorch
30 Model Interpretability with Captum - Narine Kokhilkyan
Model Interpretability with Captum - Narine Kokhilkyan
PyTorch
31 Detectron2 - Next Gen Object Detection Library - Yuxin Wu
Detectron2 - Next Gen Object Detection Library - Yuxin Wu
PyTorch
32 Speech Extensions to Fairseq - Dmytro Okhonko
Speech Extensions to Fairseq - Dmytro Okhonko
PyTorch
33 PyTorch on Google Cloud TPUs - Google, Salesforce, Facebook
PyTorch on Google Cloud TPUs - Google, Salesforce, Facebook
PyTorch
34 PyTorch Summer Hackathon Winners - Joe Spisak, Sebastien Arnold, Tristan Deleu
PyTorch Summer Hackathon Winners - Joe Spisak, Sebastien Arnold, Tristan Deleu
PyTorch
35 PyTorch in Robotics - Yisong Yue, Caltech
PyTorch in Robotics - Yisong Yue, Caltech
PyTorch
36 StanfordNLP - Yuhao Zhang, Stanford
StanfordNLP - Yuhao Zhang, Stanford
PyTorch
37 Sotabench for Reproducible Research - Robert Stojnic, Papers with Code
Sotabench for Reproducible Research - Robert Stojnic, Papers with Code
PyTorch
38 Collaborative Natural Language Inference - Sasha Rush, Cornell
Collaborative Natural Language Inference - Sasha Rush, Cornell
PyTorch
39 Privacy Preserving AI - Andrew Trask, OpenMined
Privacy Preserving AI - Andrew Trask, OpenMined
PyTorch
40 CrypTen - Laurens van der Maaten
CrypTen - Laurens van der Maaten
PyTorch
41 PyTorch at Uber - Sidney Zhang, Uber
PyTorch at Uber - Sidney Zhang, Uber
PyTorch
42 PyTorch at Tesla - Andrej Karpathy, Tesla
PyTorch at Tesla - Andrej Karpathy, Tesla
PyTorch
43 PyTorch at Microsoft - Saurabh Tiwary, Microsoft
PyTorch at Microsoft - Saurabh Tiwary, Microsoft
PyTorch
44 PyTorch at Dolby Labs - Vivek Kumar, Dolby Labs
PyTorch at Dolby Labs - Vivek Kumar, Dolby Labs
PyTorch
45 PyTorch Developer Conference 2019 - Panel Discussion
PyTorch Developer Conference 2019 - Panel Discussion
PyTorch
46 Using deep learning and PyTorch to power next gen aircraft at Caltech
Using deep learning and PyTorch to power next gen aircraft at Caltech
PyTorch
47 Named Tensors, Model Quantization, and the Latest PyTorch Features - Part 1
Named Tensors, Model Quantization, and the Latest PyTorch Features - Part 1
PyTorch
48 TorchScript and PyTorch JIT | Deep Dive
TorchScript and PyTorch JIT | Deep Dive
PyTorch
49 Announcing the PyTorch Global Summer Hackathon 2020
Announcing the PyTorch Global Summer Hackathon 2020
PyTorch
50 Opening Up the Black Box: Model Understanding with Captum and PyTorch
Opening Up the Black Box: Model Understanding with Captum and PyTorch
PyTorch
51 PyTorch Mobile Runtime for Android
PyTorch Mobile Runtime for Android
PyTorch
52 Torchvision in 5 minutes
Torchvision in 5 minutes
PyTorch
53 3D Deep Learning with PyTorch3D
3D Deep Learning with PyTorch3D
PyTorch
54 What is Torchtext?
What is Torchtext?
PyTorch
55 TorchAudio: A Quick Intro
TorchAudio: A Quick Intro
PyTorch
56 PyTorch Mobile Runtime for iOS
PyTorch Mobile Runtime for iOS
PyTorch
57 PySlowFast: Deep learning with Video
PySlowFast: Deep learning with Video
PyTorch
58 PyTorch Pruning | How it's Made by Michela Paganini
PyTorch Pruning | How it's Made by Michela Paganini
PyTorch
59 Measuring Fairness in Machine Learning Systems
Measuring Fairness in Machine Learning Systems
PyTorch
60 PyTorch for Hackathons
PyTorch for Hackathons
PyTorch

This video introduces TorchVision, a PyTorch library for computer vision, and covers its new features, including native TorchScript and ONNX support, mixed precision training and inference, and updated transforms and IO functions. It provides a comprehensive overview of how to use TorchVision for computer vision tasks.

Key Takeaways
  1. Install TorchVision and PyTorch
  2. Load pre-trained models from TorchVision
  3. Use TorchVision transforms for data augmentation
  4. Implement mixed precision training and inference
  5. Export models to TorchScript and ONNX
💡 TorchVision provides a comprehensive set of tools and libraries for computer vision tasks, making it easier to build and deploy models.

Related Reads

Up next
9-Phase Computer Vision Roadmap 2026 | AI & Deep Learning | #shorts
SCALER
Watch →