A demo for grain matertial tracking using point tracker. Please refer to CoTracker for more details.
-
Install dependency as follows:
pip install torch # better installed with cuda pip install opencv-python pip install git+https://github.com/facebookresearch/co-tracker.git
-
Install model checkpoint as follows:
mkdir weights && cd weights mkdir cotracker && cd cotracker wget https://dl.fbaipublicfiles.com/cotracker/cotracker_stride_4_wind_8.pth cd ../..
-
Others
mkdir data/demo_gm
- Prepare your data in
./data/demo_gm/
, use the structure as follows:โโโ cassia_seed โ โโโ eye in hand โ โ โโโ linear โ โ โ โโโ ***.MOV โ โ โ โโโ ...
- If you would like to track in a region of interest (ROI), please set
--roi_center [x, y]
, where[x,y]
is the center of the ROI.Please note the default parameters in thepython demo_gm.py --grid_size 30
demo_gm.py
file if you are interested.