{"id":14958153,"url":"https://github.com/morvanzhou/pytorch-tutorial","last_synced_at":"2025-05-14T02:04:43.042Z","repository":{"id":37622908,"uuid":"90388827","full_name":"MorvanZhou/PyTorch-Tutorial","owner":"MorvanZhou","description":"Build your neural network easy and fast, 莫烦Python中文教学","archived":false,"fork":false,"pushed_at":"2023-03-23T05:01:42.000Z","size":15391,"stargazers_count":8265,"open_issues_count":30,"forks_count":3112,"subscribers_count":214,"default_branch":"master","last_synced_at":"2025-04-10T11:01:40.224Z","etag":null,"topics":["autoencoder","batch","batch-normalization","classification","cnn","dqn","dropout","gan","generative-adversarial-network","machine-learning","neural-network","python","pytorch","pytorch-tutorial","pytorch-tutorials","regression","reinforcement-learning","rnn","tutorial"],"latest_commit_sha":null,"homepage":"https://mofanpy.com/tutorials/machine-learning/torch/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MorvanZhou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-05T15:12:04.000Z","updated_at":"2025-04-10T02:49:13.000Z","dependencies_parsed_at":"2024-09-22T06:12:20.351Z","dependency_job_id":null,"html_url":"https://github.com/MorvanZhou/PyTorch-Tutorial","commit_stats":{"total_commits":97,"total_committers":17,"mean_commits":5.705882352941177,"dds":0.5670103092783505,"last_synced_commit":"dbe154a9e56635e51c6b0c2ccea8ae36cfb585a7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorvanZhou%2FPyTorch-Tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorvanZhou%2FPyTorch-Tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorvanZhou%2FPyTorch-Tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorvanZhou%2FPyTorch-Tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MorvanZhou","download_url":"https://codeload.github.com/MorvanZhou/PyTorch-Tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052692,"owners_count":22006716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autoencoder","batch","batch-normalization","classification","cnn","dqn","dropout","gan","generative-adversarial-network","machine-learning","neural-network","python","pytorch","pytorch-tutorial","pytorch-tutorials","regression","reinforcement-learning","rnn","tutorial"],"created_at":"2024-09-24T13:16:22.504Z","updated_at":"2025-05-14T02:04:38.026Z","avatar_url":"https://github.com/MorvanZhou.png","language":"Jupyter Notebook","readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"http://pytorch.org/\" target=\"_blank\"\u003e\n    \u003cimg width=\"40%\" src=\"logo.png\" style=\"max-width:100%;\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\n\u003cbr\u003e\n\n### If you'd like to use **Tensorflow**, no worries, I made a new **Tensorflow Tutorial** just like PyTorch. Here is the link: [https://github.com/MorvanZhou/Tensorflow-Tutorial](https://github.com/MorvanZhou/Tensorflow-Tutorial)\n\n# pyTorch Tutorials\n\nIn these tutorials for pyTorch, we will build our first Neural Network and try to build some advanced Neural Network architectures developed recent years.\n\nThanks for [liufuyang's](https://github.com/liufuyang) [**notebook files**](tutorial-contents-notebooks)\nwhich is a great contribution to this tutorial.\n\n* pyTorch basic\n  * [torch and numpy](tutorial-contents/201_torch_numpy.py)\n  * [Variable](tutorial-contents/202_variable.py)\n  * [Activation](tutorial-contents/203_activation.py)\n* Build your first network\n  * [Regression](tutorial-contents/301_regression.py)\n  * [Classification](tutorial-contents/302_classification.py)\n  * [An easy way](tutorial-contents/303_build_nn_quickly.py)\n  * [Save and reload](tutorial-contents/304_save_reload.py)\n  * [Train on batch](tutorial-contents/305_batch_train.py)\n  * [Optimizers](tutorial-contents/306_optimizer.py)\n* Advanced neural network\n  * [CNN](tutorial-contents/401_CNN.py)\n  * [RNN-Classification](tutorial-contents/402_RNN_classifier.py)\n  * [RNN-Regression](tutorial-contents/403_RNN_regressor.py)\n  * [AutoEncoder](tutorial-contents/404_autoencoder.py)\n  * [DQN Reinforcement Learning](tutorial-contents/405_DQN_Reinforcement_learning.py)\n  * [A3C Reinforcement Learning](https://github.com/MorvanZhou/pytorch-A3C)\n  * [GAN (Generative Adversarial Nets)](tutorial-contents/406_GAN.py) / [Conditional GAN](tutorial-contents/406_conditional_GAN.py)\n* Others (WIP)\n  * [Why torch dynamic](tutorial-contents/501_why_torch_dynamic_graph.py)\n  * [Train on GPU](tutorial-contents/502_GPU.py)\n  * [Dropout](tutorial-contents/503_dropout.py)\n  * [Batch Normalization](tutorial-contents/504_batch_normalization.py)\n\n**For Chinese speakers: All methods mentioned below have their video and text tutorial in Chinese.\nVisit [莫烦 Python](https://mofanpy.com/tutorials/) for more.\nYou can watch my [Youtube channel](https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg) as well.**\n\n\n### [Regression](tutorial-contents/301_regression.py)\n\n\u003ca href=\"tutorial-contents/301_regression.py\"\u003e\n    \u003cimg class=\"course-image\" src=\"https://mofanpy.com/static/results/torch/1-1-2.gif\"\u003e\n\u003c/a\u003e\n\n### [Classification](tutorial-contents/302_classification.py)\n\n\u003ca href=\"tutorial-contents/302_classification.py\"\u003e\n    \u003cimg class=\"course-image\" src=\"https://mofanpy.com/static/results/torch/1-1-3.gif\"\u003e\n\u003c/a\u003e\n\n### [CNN](tutorial-contents/401_CNN.py)\n\u003ca href=\"tutorial-contents/401_CNN.py\"\u003e\n    \u003cimg class=\"course-image\" src=\"https://mofanpy.com/static/results/torch/4-1-2.gif\" \u003e\n\u003c/a\u003e\n\n### [RNN](tutorial-contents/403_RNN_regressor.py)\n\n\u003ca href=\"tutorial-contents/403_RNN_regressor.py\"\u003e\n    \u003cimg class=\"course-image\" src=\"https://mofanpy.com/static/results/torch/4-3-1.gif\" \u003e\n\u003c/a\u003e\n\n### [Autoencoder](tutorial-contents/404_autoencoder.py)\n\n\u003ca href=\"tutorial-contents/403_RNN_regressor.py\"\u003e\n    \u003cimg class=\"course-image\" src=\"https://mofanpy.com/static/results/torch/4-4-1.gif\" \u003e\n\u003c/a\u003e\n\n\u003ca href=\"tutorial-contents/403_RNN_regressor.py\"\u003e\n    \u003cimg class=\"course-image\" src=\"https://mofanpy.com/static/results/torch/4-4-2.gif\" \u003e\n\u003c/a\u003e\n\n### [GAN (Generative Adversarial Nets)](tutorial-contents/406_GAN.py)\n\u003ca href=\"tutorial-contents/406_GAN.py\"\u003e\n    \u003cimg class=\"course-image\" src=\"https://mofanpy.com/static/results/torch/4-6-1.gif\" \u003e\n\u003c/a\u003e\n\n### [Dropout](tutorial-contents/503_dropout.py)\n\u003ca href=\"tutorial-contents/503_dropout.py\"\u003e\n    \u003cimg class=\"course-image\" src=\"https://mofanpy.com/static/results/torch/5-3-1.gif\" \u003e\n\u003c/a\u003e\n\n### [Batch Normalization](tutorial-contents/504_batch_normalization.py)\n\u003ca href=\"tutorial-contents/504_batch_normalization.py\"\u003e\n    \u003cimg class=\"course-image\" src=\"https://mofanpy.com/static/results/torch/5-4-2.gif\" \u003e\n\u003c/a\u003e\n\n# Donation\n\n*If this does help you, please consider donating to support me for better tutorials. Any contribution is greatly appreciated!*\n\n\u003cdiv \u003e\n  \u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026amp;business=morvanzhou%40gmail%2ecom\u0026amp;lc=C2\u0026amp;item_name=MorvanPython\u0026amp;currency_code=AUD\u0026amp;bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted\"\u003e\n    \u003cimg style=\"border-radius: 20px;  box-shadow: 0px 0px 10px 1px  #888888;\"\n         src=\"https://www.paypalobjects.com/webstatic/en_US/i/btn/png/silver-pill-paypal-44px.png\"\n         alt=\"Paypal\"\n         height=\"auto\" \u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv\u003e\n  \u003ca href=\"https://www.patreon.com/morvan\"\u003e\n    \u003cimg src=\"https://mofanpy.com/static/img/support/patreon.jpg\"\n         alt=\"Patreon\"\n         height=120\u003e\u003c/a\u003e\n\u003c/div\u003e","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026amp;business=morvanzhou%40gmail%2ecom\u0026amp;lc=C2\u0026amp;item_name=MorvanPython\u0026amp;currency_code=AUD\u0026amp;bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted","https://www.patreon.com/morvan"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorvanzhou%2Fpytorch-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorvanzhou%2Fpytorch-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorvanzhou%2Fpytorch-tutorial/lists"}