GithubHelp home page GithubHelp logo

til-23-cv's Introduction

TIL2023 CV Qualifiers Challenge

The TIL2023 CV Qualifiers code repository

Setting up the environment

Clone Repository

Run this command to clone the repository

git clone https://github.com/til-23/til-23-cv.git

Install requirements

To install the requirements, create a virtual environment and install the yolov5 requirements. To use our pretrained weights, you also need to install yolov5.

Model Training

Object detection

We provide yolov5 pretrained weights for you to finetune your models as a base, but you are free to use other object detection libraries. To finetune the weights on your dataset, run the following command from the yolov5 repo.

python train.py --data coco.yaml --epochs 300 --weights 'pretrained_weights.pt' --cfg yolov5n.yaml  --batch-size 128

You can also refer to this tutorial on training a yolov5 model.

Object Re-Identification

Refer to src/reID. The directory contains the following files:

  • dataset.py - This file converts your images into a torch.utils.data.Dataset class. You will need to have your cropped images of your plushies and in the LFW format for it to be compatible.
  • transforms.py - This file preprocesses your images to ensure they're ingestible by the model. The most important preprocessing step is to resize the image to a standard size before they're passed into the model.
  • model.py - This file contains the Siamese Network. This is the model you will train.
  • train.py - This file contains the code to fit your model to the dataset.
  • test.py - This file lets you test your model on a pair of plushie images.
  • utils.py - This file contains misc functions that you could use.
  • model.pth - A pretrained reID model as a baseline

Model Inference

We have created a boilerplate code that allows you to detect plushies in a scene, and ReID a particular plushie from the detected plushies:

python3 src/inference.py

til-23-cv's People

Contributors

samchung95 avatar wish2023 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.