Skip to content

Undergraduate Research of Department of Electrical Engineering, NTHU

Notifications You must be signed in to change notification settings

lyhsieh/active_learning

Repository files navigation

careplus-active-sample

Directory structure

$root_path
    ├───── $username
    │       ├──── $date
    │       └──── $date + "_prediction"
    ├───── active_sample_output
    │               └──── $username
    │                       └──── $date
    │                               ├─── visualization
    │                               │       ├──── FP
    │                               │       └──── FN
    │                               └─── images
    │                                       ├──── FP
    │                                       └──── FN
    └────── seg
            ├── $username + "_seg.png"
            └── $username + "_fun_seg.png"

Setup

  • create folder $root_path/active_sample_output for the output of active sample
  • create folder $root_path/seg/ folder and put binary segmentation map and functional segmentation map in it
  • specify your root path in confiy.py
    img_w: "image width"
    img_h: "image height"
    
    root_path: "root path"

    root_path should be the abs path to this repo

  • (Optional) specify threshold for active sample in activesample.py
    human_threshold: "region thres for FN motion box"
    human_threshold_FP: "region thres for FP motion box"
    opt_threshold: "region thres for FN optical box"
    iou_threshold: "iou thres for FN motion box"
    motion_box_th: "response thres for motion box candidate"
    convert_opt_to_binary_th: "response thres for optical box candidate"

Data

  • Unable to provide due to privacy concerns

Run

  • make sure the username and date are specified in run.py
    username = 'user00'
    date = '2020-12-13'
  • run
    $ cd careplus-active-sample
    $ PYTHONPATH=./ python3 run.py

About

Undergraduate Research of Department of Electrical Engineering, NTHU

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages