Gitは,バージョン管理システム.ソースコードの管理や複数人での共同に役立つ.
【サイト内の関連ページ】
Windows での Git のインストール: 別ページ »で説明している.
【関連する外部ページ】
Git の公式ページ: https://git-scm.com/
BoT-SORT の動作のために Python 3.9, 3.8, 3.7, 3.6 のいずれかの利用をおすすめする.
【サイト内の関連ページ】
【関連する外部ページ】
Python の公式ページ: https://www.python.org/
【サイト内の関連ページ】
NVIDIA グラフィックスボードを搭載しているパソコンの場合には, NVIDIA ドライバ, NVIDIA CUDA ツールキット, NVIDIA cuDNN のインストールを行う.
【関連する外部ページ】
コマンドプロンプトを管理者として実行: 別ページ »で説明
PyTorch で,GPU が動作している場合には,「torch.cuda.is_available()」により,True が表示される.
python -m pip install -U --ignore-installed pip python -m pip install numpy==1.19.5 torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117 python -c "import torch; print(torch.__version__, torch.cuda.is_available())"
【サイト内の関連ページ】
【関連する外部ページ】
コマンドプロンプトを管理者として実行: 別ページ »で説明
「python -m pip install -U faiss-gpu」でエラーメッセージが出たときは無視してください.
python -m pip install -U cython python -m pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI python -m pip install -U faiss-cpu python -m pip install -U faiss-gpu
コマンドプロンプトを管理者として実行: 別ページ »で説明
cd %HOMEPATH% rmdir /s /q BoT-SORT git clone https://github.com/NirAharon/BoT-SORT.git python -m pip install -U pip python -m pip install -U numpy==1.19.5 opencv-python loguru scikit-image scikit-learn tqdm Pillow thop ninja tabulate motmetrics filterpy h5py matplotlib scipy prettytable easydict tensorboard pyyaml yacs termcolor gdown pandas onnx onnxruntime onnx-simplifier python -m pip install -U lap python -m pip install -U tensorboard cd BoT-SORT python -m pip install -r requirements.txt
cd %HOMEPATH%\BoT-SORT notepad setup.py
次のように,「with open("README.md", "r", encoding='utf-8') as f:」に書き換える.保存する.
cd %HOMEPATH%\BoT-SORT python setup.py develop mkdir pretrained
次のページの指示に従う
https://github.com/NirAharon/BoT-SORT
このページの中の「ByteTrack」をクリック.
ダウンロードしたファイル bytetrack_x_mot17.pth.tar は %HOMEPATH%\BoT-SORT\pretrained に置く
コマンドプロンプトを管理者として実行: 別ページ »で説明
cd %HOMEPATH% curl -O https://files.pythonhosted.org/packages/fa/b9/fc7d60e8c3b29cc0ff24a3bb3c4b7457e10b7610fbb2893741b623487b34/cython_bbox-0.1.3.tar.gz "c:\Program Files\7-Zip\7z.exe" x cython_bbox-0.1.3.tar.gz cd dist "c:\Program Files\7-Zip\7z.exe" x cython_bbox-0.1.3.tar notepad cython_bbox-0.1.3\setup.py
次のように書き換えて,保存する.
引き続き次の操作を行う
cd %HOMEPATH%\BoT-SORT cd dist cd cython_bbox-0.1.3 python setup.py build python setup.py develop python setup.py install
エラーメッセージが出ていないこと.
次のページの指示に従う
https://github.com/NirAharon/BoT-SORT
「1-1.avi」のところには,処理したい動画ファイル名を指定する.
cd %HOMEPATH%\BoT-SORT python tools/mc_demo.py video --path 1-1.avi -f yolox/exps/example/mot/yolox_x_mix_det.py -c pretrained/bytetrack_x_mot17.pth.tar --with-reid --fuse-score --fp16 --fuse --save_result
エラーメッセージが出ていないこと.
結果が保存されるファイルとそのディレクトリが表示されるので確認する.
動画ファイル: 1-1.avi