Giter Site home page Giter Site logo

car-detector's Introduction

Self-learning Car Detector

Arranging the data

Place the rosbags into data/rosbags Place the gt into data/gt

Set-up your system

You will need to have tf_bag package installed and sourced, from here: https://github.com/IFL-CAMP/tf_bag For the rest of the dependencies, there are conda environments provided in the conda folder. The ros environment is used for everything, except for running lanoising You can create the environments like this: mamba env create --file lanoise.yml

Extract the rosbags

Run preprocessing/rosbag_extractor.py to extract the rosbags Run preprocessing/tf_extractor.py to extract the transforms

Perform simple car detection

Run supervisor/detector.py to run the method

Prepare Annotations

Run supervisor/temporal.py to run the temporal filter

You will need the weather simulator network models, explained on the simulator page. The origal page is here https://github.com/cavayangtao/lanoising And a mirror is provided here: https://github.com/broughtong/lanoising Copy the models into supervisor/lanoising/models/

Switch to the lanoise conda environment. For me, I need to make sure PYTHONPATH is blank, activate the conda environment, and then source ros, in that order. Run the lanoising weather simulator in supervisor/lanoising/lanoising.py

Run supervisor/annotator.py to create annotations. Run supervisor/datasetDivision.py to break the images into training/testing/evaluation subset by rosbag (all bags with gt go to eval)

Run networks/generate_data.py Train pointnet using python train_segmentation.py and python train_segmentation.py --lanoise Optionally add the feature transform flag --feature_transform Train unet using python trian_unet.py Optional flags --num_channels 3 (1/2/3) --lanoise and --numc 2 (2/3)

Train the networks

The MaskRCNN network can be trained by running networks/maskrcnn/training.py Alternatively, you can run the files in network/ to train the other networks.

Evaluation

For pointnet use networkEval.py Make sure the feature transform flag is set correctly. For each network, go into the folder and run the associated evaluation script. To generate the graphs, run the scripts in the evaluation folder.

car-detector's People

Contributors

broughtong avatar janotjir avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.