返回课程
AI002 专业级

使用 PyTorch 的应用深度学习(从零到精通)

本课程全面介绍使用 PyTorch 进行深度学习,PyTorch 是机器学习研究中最受欢迎的框架。从张量基础开始,学生将逐步掌握完整的机器学习工作流程、计算机视觉、模块化软件工程、迁移学习以及模型部署。课程采用“代码优先”教学方式,强调动手实现与实验。

5.0
30.0h
512 名学生
10 lessons
0 点赞
人工智能
开始学习

课程概述

📚 内容概要

本课程提供了一个使用 PyTorch 的深度学习全面入门,PyTorch 是机器学习研究中最受欢迎的框架。从张量基础开始,学生将逐步掌握完整的机器学习工作流程、计算机视觉、模块化软件工程、迁移学习以及模型部署。课程采用“代码先行”的教学方式,强调动手实现与实验,确保学生不仅理解理论,还能构建、优化并部署稳健的深度学习系统。

核心目标简述:全面掌握整个 PyTorch 生态系统,从基础数学知识过渡到可投入生产的计算机视觉应用。

🎯 学习目标

  1. 实现从基础张量操作到模型训练、评估和持久化的完整 PyTorch 机器学习工作流程。
  2. 设计并部署深度学习架构,包括人工神经网络(ANN)和卷积神经网络(CNN),用于复杂的分类和计算机视觉任务。
  3. 通过采用标准化工程实践和目录结构,将实验性代码转化为生产就绪的模块化软件。
  4. 利用迁移学习等高级技术及系统化的实验跟踪(如 TensorBoard),在自定义数据集上实现顶尖水平的结果。
  5. 准备并部署训练好的模型至交互式网页应用,并利用现代 PyTorch 2.0 特性加速推理过程。

课程

Lesson

This lesson introduces PyTorch tensors as the fundamental data structures for deep learning, emphasizing their role in GPU-accelerated computation and automatic differentiation. Students will learn to manage tensor properties like shape, dtype, and device, while mastering essential manipulation techniques for building and training neural networks.

This lesson introduces the standardized six-pillar PyTorch workflow, providing a repeatable blueprint for building, training, and deploying deep learning models. Students will learn how to manage data preparation, tensor alignment, and the core training loop to ensure robust model performance and generalization.

This lesson explores the necessity of non-linear activation functions, such as ReLU, in deep neural networks to overcome the limitations of linear models when classifying complex, non-linear data. Students will learn how to build and train a PyTorch model capable of forming intricate decision boundaries using hidden layers and appropriate loss functions like Binary Cross Entropy.

This lesson introduces Convolutional Neural Networks (CNNs) as an efficient alternative to fully connected networks for processing high-dimensional image data. Students will learn how CNNs utilize local receptive fields, shared weights, and pooling to achieve parameter efficiency, as well as how to format image data into the required (N, C, H, W) tensor structure for PyTorch.

This lesson explores how to build efficient data pipelines in PyTorch by transitioning from simple toy datasets to managing complex, real-world data. Students learn to decouple data processing by using the Dataset class for individual sample retrieval and transformation, and the DataLoader for optimized, parallelized batch delivery.

This lesson explores the transition from experimental Jupyter Notebooks to production-ready modular Python scripts by emphasizing the importance of the Separation of Concerns principle. Students learn to organize deep learning projects into distinct components—such as data setup, model architecture, and training logic—to improve code reproducibility, testability, and scalability.

This lesson introduces transfer learning as a solution to the high resource demands of deep learning by reusing pre-trained models to achieve high accuracy with limited data. Students learn how to freeze feature extraction layers and adapt the classifier head in PyTorch to effectively apply generalized visual knowledge to specific new tasks.

This lesson explores the necessity of systematic experiment tracking in deep learning to overcome the reproducibility crisis and ensure reliable model development. Students learn how to implement automated tracking for hyperparameters, environment states, and performance metrics to facilitate effective debugging, optimization, and project collaboration.

This lesson focuses on the transition from theoretical research to practical engineering by teaching students how to deconstruct scientific papers into modular, high-performance PyTorch code. You will learn to map complex mathematical architectures like the Vision Transformer into functional components while mastering systematic debugging techniques for tensor shapes and data types.

This lesson covers the transition from exploratory research to production-ready deployment by focusing on refactoring code into modular, stateless services. Students will learn how to optimize models for low-latency inference, ensure reproducibility, and properly export model artifacts using state dictionaries and inference mode.