2023年8月26日 星期六

[label studio] Import pre-annotated data

 先講心得:超麻煩。可能是我沒看清楚文件,加上 label-studio 在上傳標記資料集的功能沒設計很好,來來回回搞很久才成功。

[label studio] The number of files exceeded settings.DATA_UPLOAD_MAX_NUMBER_FILES

 照著圖片中的方法:



由於我是用 anaconda ,所以檔案的路徑是:

C:\Users\<username>\anaconda3\envs\<envname>\Lib\site-packages\label_studio\core\settings\base.py


在最上方找地方加上 DATA_UPLOAD_MAX_NUMBER_FILES = None


就 ok 了。


ref: https://github.com/HumanSignal/label-studio/issues/4556

2023年8月2日 星期三

安裝 mmtracking

conda create -n mmtrack python=3.8 pip numpy -y

conda activate mmtrack

pip install torch==1.12.0+cu113 torchvision==0.13.0+cu113 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu113

pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.12.0/index.html

pip install mmdet==2.28.0

pip install opencv-python

git clone https://github.com/open-mmlab/mmtracking.git

cd mmtracking

pip install -r requirements/build.txt

pip install -v -e .


驗證套件有被正確安裝:

import torch, mmcv, mmdet

print(torch.__version__)

print(mmcv.__version__)

print(mmdet.__version__)



demo

python demo/demo_mot_vis.py configs/mot/deepsort/sort_faster-rcnn_fpn_4e_mot17-private.py --input demo/demo.mp4 --output mot.mp4




官方的下載說明根本裝不起來,試了好幾個小時才弄好。避免繞路,把能成功安裝的指令記錄下來。