Coder Social home page Coder Social logo

nycu-2021fall-vrdl-lab2's Introduction

VRDL Lab2: Object Detection

This is homework 2 in NYCU Selected Topics in Visual Recognition Deep Learning class.

NOTIFICATION: Because the main code are too big, follow the link below to download it. https://drive.google.com/file/d/120wryn8IRAiVxciyYO6KGjOj7Es5HzOa/view?usp=sharing

model weights link: https://drive.google.com/file/d/19BDS4q4flsyEAiyRenIpNlEqeUWAVTgz/view?usp=sharing

Hardware

The following specs were used to create the original solution.

  • Google Colab
  • PC
    • Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
    • NVIDIA RTX 1080 Ti

Environment

cd yolov5
pip install mmcv
pip install -U pycocotools
pip install -r requirements.txt

Dataset Preparation

Download this folder including dataset and put it in the same directory with yolov5 folder. https://drive.google.com/file/d/1NEXWWJoLRW9R4RpK9EYYvPfvFFDPRTEE/view?usp=sharing

Requirement

Train and Valid

You can customize your own batch size and epochs.

python train.py --img 640 --batch {} --epochs {} --data yrdl.yaml --weights yolov5l.pt

Inference

The code not only trains, but also valid and test the model. You can run the model by following:

python detect.py --weights {} --conf 0.1 --source {}

Replacing the weights for './runs/train/exp/weights/best.pt' and source for your test data directory.

References

YOLOv5: https://github.com/ultralytics/yolov5

nycu-2021fall-vrdl-lab2's People

Contributors

adchentc 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.