返回課程
AI002 專業人士

使用 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.