GithubHelp home page GithubHelp logo

dlcvhw's Introduction

HW1 Problem 1― Image Classification

In HW1 problem 1, you will need to implement an image classification model and answer some questions in the report.

HW1 Problem 2― Semantic Segmentation

In HW1 problem 2, you will need to implement two semantic segmentation models and answer some questions in the report.

For more details, please click this link to view the slides of HW1

Usage

To start working on this assignment, you should clone this repository into your local machine by using the following command.

git clone https://github.com/DLCV-Fall-2021/hw1-<username>.git

Note that you should replace <username> with your own GitHub username.

Dataset

In the starter code of this repository, we have provided a shell script for downloading and extracting the dataset for this assignment. For Linux users, simply use the following command.

bash ./get_dataset.sh

The shell script will automatically download the dataset and store the data in a folder called hw1_data. Note that this command by default only works on Linux. If you are using other operating systems or you can not download the dataset by running the command above, you should download the dataset from this link and unzip the compressed file manually.

⚠️ IMPORTANT NOTE ⚠️
You should keep a copy of the dataset only in your local machine. DO NOT upload the dataset to this remote repository. If you extract the dataset manually, be sure to put them in a folder called hw1_data under the root directory of your local repository so that it will be included in the default .gitignore file.

Evaluation

To evaluate your semantic segmentation model, you can run the provided evaluation script provided in the starter code by using the following command.

python3 mean_iou_evaluate.py <--pred PredictionDir> <--labels GroundTruthDir>
  • <PredictionDir> should be the directory to your predicted semantic segmentation map (e.g. hw1_data/prediction/)
  • <GroundTruthDir> should be the directory of ground truth (e.g. hw1_data/validation/)

Note that your predicted segmentation semantic map file should have the same filename as that of its corresponding ground truth label file (both of extension .png).

Visualization

To visualization the ground truth or predicted semantic segmentation map in an image, you can run the provided visualization script provided in the starter code by using the following command.

python3 viz_mask.py <--img_path xxxx_sat.jpg> <--seg_path xxxx_mask.png>

Submission Rules

Deadline

2021/10/26 (Tue.) 11:59 PM

Late Submission Policy

You have a three-day delay quota for the whole semester. Once you have exceeded your quota, the credit of any late submission will be deducted by 30% each day.

Note that while it is possible to continue your work in this repository after the deadline, we will by default grade your last commit before the deadline specified above. If you wish to use your quota or submit an earlier version of your repository, please contact the TAs and let them know which commit to grade.

Academic Honesty

  • Taking any unfair advantages over other class members (or letting anyone do so) is strictly prohibited. Violating university policy would result in an F grade for this course (NOT negotiable).
  • If you refer to some parts of the public code, you are required to specify the references in your report (e.g. URL to GitHub repositories).
  • You are encouraged to discuss homework assignments with your fellow class members, but you must complete the assignment by yourself. TAs will compare the similarity of everyone’s submission. Any form of cheating or plagiarism will not be tolerated and will also result in an F grade for students with such misconduct.

Submission Format

Aside from your own Python scripts and model files, you should make sure that your submission includes at least the following files in the root directory of this repository:

  1. hw1_<StudentID>.pdf
    The report of your homework assignment. Refer to the "Submission" section in the slides for what you should include in the report. Note that you should replace <StudentID> with your student ID, NOT your GitHub username.
  2. hw1_1.sh
    The shell script file for running your classification model.
  3. hw1_2.sh
    The shell script file for running your semantic segmentation model.

We will run your code in the following manner:

bash hw1_1.sh $1 $2

where $1 is the testing images directory (e.g. test/images/), and $2 is the path of folder where you want to output your prediction file (e.g. test/label_pred/ ). Please do not create the output prediction directory in your bash script or python codes.

bash hw1_2.sh $1 $2

where $1 is the testing images directory (e.g. test/images/), and $2 is the output prediction directory for segmentation maps (e.g. test/label_pred/ ). Please do not create the output prediction directory in your bash script or python codes.

Packages

This homework should be done using python3.6. For a list of packages you are allowed to import in this assignment, please refer to the requirments.txt for more details.

You can run the following command to install all the packages listed in the requirements.txt:

pip3 install -r requirements.txt

Note that using packages with different versions will very likely lead to compatibility issues, so make sure that you install the correct version if one is specified above. E-mail or ask the TAs first if you want to import other packages.

Remarks

  • If your model is larger than GitHub’s maximum capacity (100MB), you can upload your model to another cloud service (e.g. Dropbox). However, your shell script files should be able to download the model automatically. For a tutorial on how to do this using Dropbox, please click this link.
  • DO NOT hard code any path in your file or script, and the execution time of your testing code should not exceed an allowed maximum of 10 minutes.
  • Please refer to HW1 slides for details about the penalty that may incur if we fail to run your code or reproduce your results.

Q&A

If you have any problems related to HW1, you may

  • Use TA hours
  • Contact TAs by e-mail ([email protected])
  • Post your question under hw1 FAQ section in FB group

dlcvhw's People

Contributors

pseudo-aloha avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.