Coder Social home page Coder Social logo

frankdvd / curb-monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ucbtrans/curb-monitor

0.0 0.0 0.0 227.38 MB

Curb monitoring system. A prototype.

License: BSD 2-Clause "Simplified" License

Python 4.05% Jupyter Notebook 95.24% Shell 0.36% HTML 0.35%

curb-monitor's Introduction

curb-monitor

Curb monitoring system. A prototype.

1. Setup Envionment

  1. Create a new conda environment and activate it
    conda create --name curb
    conda activate curb
    conda install pip
    
  2. Install requirement packages
    pip install -r requirements.txt
    
    You might want to install the cuda version of pytorch again using the cmd here if you want to use gpu for pytorch

2. Object Detection Overall Flow

  1. Copy image data from s3 to savio
    1. login to savio data transfer node

    2. config rclone

      module load rclone
      rclone config
      
    3. download s3 data to savio using rclone

      rclone copy your_s3_config_name:curbside-data/vid_folder_123 /global/scratch/users/your_savio_username/vid_folder_123
      

      for example

      rclone copy -P s3_frank:curbside-data/all_videos_1 /global/scratch/users/sidali/all_videos_1
      
    4. delete the corrupted video(remove video smaller than 140M)

      cd /global/scratch/users/sidali/all_videos_1
      find . -name "*.mp4" -type 'f' -size -139M -delete
      
    5. Split data into subfolders

      dir_size=1500
      dir_name="video"
      n=$((`find . -maxdepth 1 -type f | wc -l`/$dir_size+1))
      for i in `seq 1 $n`; do mkdir -p "$dir_name$i"; find . -type f -maxdepth 1 | head -n $dir_size | xargs -i mv "{}" "$dir_name$i"; done
      
    6. switch to savio login node

    7. update the data folder path under curb-monitor/savio_jobs/video_detect/production_job_gpu.sh

      module load nano
      nano savio_jobs/video_detect/production_job_gpu.sh
      
    8. go to curb-monitor/scripts/executables and clone the exiftool tool:

      cd scripts/executables
      git clone https://github.com/exiftool/exiftool.git
      
    9. run the sbatch job

      sbatch ./savio_jobs/video_detect/production_job_gpu.sh
      
    10. check your job

      sq
      
    11. cancel your job

      scancel <jobid>
      

curb-monitor's People

Contributors

frankdvd avatar arav199717 avatar aj-kumar36 avatar pjindal2 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.