Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hcongvan/Crowed-Counting

Open more actions menu

Repository files navigation

General

Requirements

  • torch
  • torchvision
  • pillow
  • opencv-python
  • numpy
  • GPU-CUDA (optional)

Training

python3 train.py --train <path to folder training set> -cfg model.json --use_pretrain --density <path to dataset density> --cuda -i 200 -lr 0.000001 -wk 3 -bs 4

--cuda: flag to use GPU NVIDIA to training phase. If you don't want use GPUs just skip it.

-wk:(worker) multi-processor to train, it make training phase more faster( if you got strong cpu like i5, ryzen5, xeon, ...)

-bs: batch-size

-lr: learning rate, make it small enough to training, can you monitor with tensorboard and watch total gradient graph it must be fluctuate

Load from checkpoint and continue to train:

python3 train.py --train <path to folder training set> -cfg model.json --density <path to dataset density> --cuda -i 200 -lr 0.000001 -wk 3 -bs 4 --checkpoint

Validation

python3 eval.py --test <path to folder training set> -cfg model.json --density <path to eval density> --cuda -wk 3 -bs 4

Test with video

python3 video_test.py --input <path to video> -cfg model.json --cuda -l ./logs

About

Implement CSRnet for counting vehicle traffic

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.