PyTorch is a machine learning framework based on the Torch library. Its flexibility and user-friendliness have accumulated a massive user base in both industry and academia. Most modern research code is written in PyTorch. In this course, we will provide a step-by-step comprehensive coverage of modern applications in PyTorch. The course topics can be broadly categorized into three popular applications: computer vision, natural language processing, and reinforcement learning. We will study the experimental details of using PyTorch for a wide variety of tasks such as image/video classification, object detection, semantic segmentation, text classification, sequence-to-sequence translation, visual question answering, and DQN. In terms of modern deep learning architectures, we will cover 2D/3D convolutional neural networks, recurrent neural networks, long-short term memory, transformers, and encoder-decoder networks. Students will be technically prepared for more advanced courses in different application after taking this course.
Prerequisites
Fluency in Python programming is required. Prior experience with deep learning and PyTorch will be very helpful but not required.
The course materials are divided into modules which can be accessed by clicking Modules on the course menu. A module will have several sections including the overview, content, readings, discussions, and assignments. You are encouraged to preview all sections of the module before starting. Most modules run for a period of seven (7) days, exceptions are noted in the Course Outline. You should regularly check the Calendar and Announcements for assignment due dates.
The goal is to provide students with comprehensive development experience in one of the most popular deep learning libraries PyTorch, in the context of computer vision, natural language processing, and reinforcement learning. The course adopts a hands-on approach to walk students through core steps involved in real-world DL projects and covers several key application areas.
Ayyadevara, V. K. & Reddy, Y. (2020). Modern Computer Vision with PyTorch: Explore Deep Learning Concepts and Implement Over 50 Real-World Image Applications. Birmingham, UK: Packt Publishing.
ISBN-10: 1839213477
ISBN-13: 978-1839213472
Textbook information for this course is available online through the appropriate bookstore website: For online courses, search the BNC Virtual Bookstore
Optional
Additionally, any of the following texts or other resources that you may have from previous courses may be useful for this course if you find yourself struggling with specific skills:
PyTorch
You will need access to a recent version of PyTorch, which is fully open-sourced and free for download.
There are several different ways to install PyTorch. We briefly provide two installation methods below. Feel free to use other installation alternatives that you may find via different sources.
All implementations (i.e., coding) are expected to be completed using Python and Google Colab Notebook (or Jupyter Notebook). For those with access to local machines or remote servers with GPUs, I strongly recommend that students modularize their code and execute via command line. Specifically, students are encouraged to develop intermediate experience with the following topics:
Insufficient preparations in some categories may demand extra time commitment from students. If you either took these courses recently or maintained a decent recollection of roughly 70% or above on these concepts, you should be considered well-prepared. A solid Python programming experience is extremely important.
It is expected that each module will take approximately 7–10 hours per week to complete. Here is an approximate breakdown: reading the assigned sections of the texts (approximately 3–4 hours per week) as well as some outside reading, listening to the audio annotated slide presentations (approximately 2–3 hours per week), and writing assignments (approximately 2–3 hours per week).
This course will consist of the following basic student requirements:
Class Discussions (10% of Final Grade Calculation)
You are responsible for carefully reading all assigned material and being prepared for discussion. Majority of the readings are from the course text. Additional reading may be assigned to supplement text readings.
Post your initial response to the discussion questions by the evening of day 3 for that module week. Posting a response to the discussion question is part one of your grade for module discussions (i.e., Timeliness).
Part two of your grade for module discussion is your interaction (i.e., responding to classmate postings with thoughtful responses) with at least two classmates (i.e., Critical Thinking). Just posting your response to a discussion question is not sufficient; we want you to interact with your classmates. Be detailed in your postings and in your responses to your classmates' postings. Feel free to agree or disagree with your classmates. Please ensure that your postings are civil and constructive.
I/We will monitor module discussions and will respond to some of the discussions as discussions are posted. In some instances, I/we will summarize the overall discussions and post the summary for the module.
Evaluation of preparation and participation is based on contribution to discussions.
Preparation and participation are evaluated by the following grading elements:
Timeliness (50%)
Critical Thinking (50%)
Preparation and participation are graded as follows:
Assignments (60% of Final Grade Calculation)
Assignments will include a mix of qualitative assignments (e.g. literature reviews, model summaries), quantitative problem sets, and case study updates. Include a cover sheet with your name and assignment identifier. Also include your name and a page number indicator (i.e., page x of y) on each page of your submissions. Each problem should have the problem statement, assumptions, computations, and conclusions/discussion delineated. All Figures and Tables should be captioned and labeled appropriately.
All assignments are due according to the dates in the Calendar.
Late submissions will be reduced by one letter grade for each week late (no exceptions without prior coordination with the instructors).
If, after submitting a written assignment you are not satisfied with the grade received, you are encouraged to redo the assignment and resubmit it. If the resubmission results in a better grade, that grade will be substituted for the previous grade.
Qualitative assignments are evaluated by the following grading elements:
Qualitative assignments are graded as follows:
Quantitative assignments are evaluated by the following grading elements:
Quantitative assignments are graded as follows:
Course Project (30% of Final Grade Calculation)
A course project will be assigned several weeks into the course. The next-to-the-last week will be devoted to the course project.
The course project is evaluated by the following grading elements:
Course Project is graded as follows:
Assignments are due according to the dates posted on your Canvas course site. You may check these due dates in the Course Calendar or the Assignments in the corresponding modules. I will post grades one or two weeks after assignment due dates.
We generally do not directly grade spelling and grammar. However, egregious violations of the rules of the English language will be noted without comment. Consistently poor performance in either spelling or grammar is taken as an indication of poor written communication ability that may detract from your grade.
A grade of A indicates achievement of consistent excellence and distinction throughout the course—that is, conspicuous excellence in all aspects of assignments and discussion every week.
A grade of B indicates work that meets all course requirements at a level appropriate for graduate academic work. These criteria apply to both undergraduates and graduate students taking the course.
100-90 = A
89-80 = B
79-70 = C
<70 = F
Final grades will be determined by the following weighting. The grade cut-offs provided above are simply guidelines. I reserve the right to curve the final letter grades based upon the actual class performance.
Item | % of Grade |
Class Discussions | 10% |
Assignments | 60% |
Course Project | 30% |
It is assumed that graduate students are adept at writing English and no points will normally be subtracted for English errors; However, points will be deducted in cases of exceptionally poor English. All external sources of information used to support assignments or projects must be appropriately referenced.
Deadlines for Adding, Dropping and Withdrawing from Courses
Students may add a course up to one week after the start of the term for that particular course. Students may drop courses according to the drop deadlines outlined in the EP academic calendar (https://ep.jhu.edu/student-services/academic-calendar/). Between the 6th week of the class and prior to the final withdrawal deadline, a student may withdraw from a course with a W on their academic record. A record of the course will remain on the academic record with a W appearing in the grade column to indicate that the student registered and withdrew from the course.
Academic Misconduct Policy
All students are required to read, know, and comply with the Johns Hopkins University Krieger School of Arts and Sciences (KSAS) / Whiting School of Engineering (WSE) Procedures for Handling Allegations of Misconduct by Full-Time and Part-Time Graduate Students.
This policy prohibits academic misconduct, including but not limited to the following: cheating or facilitating cheating; plagiarism; reuse of assignments; unauthorized collaboration; alteration of graded assignments; and unfair competition. Course materials (old assignments, texts, or examinations, etc.) should not be shared unless authorized by the course instructor. Any questions related to this policy should be directed to EP’s academic integrity officer at ep-academic-integrity@jhu.edu.
Students with Disabilities - Accommodations and Accessibility
Johns Hopkins University values diversity and inclusion. We are committed to providing welcoming, equitable, and accessible educational experiences for all students. Students with disabilities (including those with psychological conditions, medical conditions and temporary disabilities) can request accommodations for this course by providing an Accommodation Letter issued by Student Disability Services (SDS). Please request accommodations for this course as early as possible to provide time for effective communication and arrangements.
For further information or to start the process of requesting accommodations, please contact Student Disability Services at Engineering for Professionals, ep-disability-svcs@jhu.edu.
Student Conduct Code
The fundamental purpose of the JHU regulation of student conduct is to promote and to protect the health, safety, welfare, property, and rights of all members of the University community as well as to promote the orderly operation of the University and to safeguard its property and facilities. As members of the University community, students accept certain responsibilities which support the educational mission and create an environment in which all students are afforded the same opportunity to succeed academically.
For a full description of the code please visit the following website: https://studentaffairs.jhu.edu/policies-guidelines/student-code/
Classroom Climate
JHU is committed to creating a classroom environment that values the diversity of experiences and perspectives that all students bring. Everyone has the right to be treated with dignity and respect. Fostering an inclusive climate is important. Research and experience show that students who interact with peers who are different from themselves learn new things and experience tangible educational outcomes. At no time in this learning process should someone be singled out or treated unequally on the basis of any seen or unseen part of their identity.
If you have concerns in this course about harassment, discrimination, or any unequal treatment, or if you seek accommodations or resources, please reach out to the course instructor directly. Reporting will never impact your course grade. You may also share concerns with your program chair, the Assistant Dean for Diversity and Inclusion, or the Office of Institutional Equity. In handling reports, people will protect your privacy as much as possible, but faculty and staff are required to officially report information for some cases (e.g. sexual harassment).
Course Auditing
When a student enrolls in an EP course with “audit” status, the student must reach an understanding with the instructor as to what is required to earn the “audit.” If the student does not meet those expectations, the instructor must notify the EP Registration Team [EP-Registration@exchange.johnshopkins.edu] in order for the student to be retroactively dropped or withdrawn from the course (depending on when the "audit" was requested and in accordance with EP registration deadlines). All lecture content will remain accessible to auditing students, but access to all other course material is left to the discretion of the instructor.