2023年9月15日 星期五

安裝 CMU Object Detection & Tracking for Surveillance Video Activity Detection (fail)

# method 1

conda create --name cmuOD python=3.7

conda activate cmuOD

pip install -r requirements.txt

conda install tensorflow-gpu==1.15

python obj_detect_tracking.py --model_path obj_v3_model --version 3 --video_dir v1-val_testvideos --video_lst_file v1-val_testvideos.lst --frame_gap 1 --get_tracking --tracking_dir test_track_out # can't successfully execute yet

(ref: 最簡單的python Tensorflow-gpu安裝方法)


# method 2

conda create --name cmuOD python=3.7  

conda activate cmuOD

conda install -c conda-forge cudatoolkit=10.0 cudnn=7.6.5

pip install -r requirements.txt

pip install tensorflow-gpu==1.15




# test tensorflow with GPU

from tensorflow.python.client import device_lib

print(device_lib.list_local_devices())


# requirements.txt

numpy==1.19

scipy

scikit-learn

opencv-python

matplotlib

pycocotools

tqdm

protobuf==3.20.*

psutil

pyyaml

沒有留言:

張貼留言