3/17/2023 0 Comments Cant find ffmpeg python![]() I will have to learn how to and it is a good opportunity for me to look into it. You should be able to see your dlib component on lovelace homeassistant configuration folderĬreate one folder for each person you want recognized and one “unknown” folder and copy in all the pictures you want. You are done with installation! Now the setup.Ĭreate a folder where you will put pictures used to train the model. Note that line 84 is where you input the folder where your pictures are going to be, you can change this depending on your setup below: Homeassistant/lib/python3.7/site-packages/dlib_face_identify/Īnd replace the image_processing.py with this one Homeassistant/lib/python3.7/site-packages/ffmpeg/Īnd replace the camera.py file with this one:Ĭomment out line 19 if you do not use a GPU ![]() 7.5 is for the turing GPUsįind the ffmpeg component within your venv: ![]() D CMAKE_CUDA_FLAGS=-lineinfo -use_fast_math -rdc=true -lcudadevrt \Ĭhange the “CUDA_ARCH_BIN” to be the one corresponding to your GPU. D OPENCV_EXTRA_MODULES_PATH=~/source/opencv_contrib/modules \ If want to use GPU, Build opencv with CUDA: git clone Pip install opencv_contrib_python_headless Īctivate your venv and run this: pip install git configure -enable-cuda-nvcc -enable-cuvid -enable-nvenc -enable-nonfree -enable-libnpp -enable-pic -extra-cflags=-I/usr/local/cuda/include -extra-ldflags=-L/usr/local/cuda/lib64 -extra-ldexeflags=-pieĭlib If you want to play with CUDA, compile with CUDA: git clone Ĭmake -D DLIB_USE_CUDA=1 -D USE_AVX_INSTRUCTIONS=1. ![]() You should be able to see your dlib component on lovelace ffmpeg if you want GPU video decoding: mkdir -p source/Ĭd nv-codec-headers
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |