移除服務
1 | systemctl disable [servicename] |
1 | systemctl disable [servicename] |
直接告訴CMake nvcc的位置,注意舊的build資料夾要先清掉-DCMAKE_CUDA_COMPILER=/usr/local/cuda-11.7/bin/nvcc
https://www.cnblogs.com/metaz/p/16919028.html
在setting.json加入"cmake.environment": {"CUDA_VER":"11.7"},說明書:https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/cmake-presets.md#ignored-settings
CMake presets: https://dominikberner.ch/cmake-presets-best-practices/
https://www.scivision.dev/cmake-environment-variable-scope/
使用find_package(CUDAToolkit)並且在target_link_libraries 加入CUDA::cuda_driver
CMake有許多尋找套件的module,例如FindCUDAToolkit,下面連結條列各種find_package()能使用的module
https://cmake.org/cmake/help/latest/manual/cmake-modules.7.html#manual:cmake-modules(7)
sudo rm /etc/apt/sources.list.d/*cuda*
apt-cache madison cuda
顯示所有keyapt-key list顯示結果如下
1 | /etc/apt/trusted.gpg |
刪掉key
以下面為例,key ID就是最後8碼82307095,sudo apt-key del 82307095就可以刪除
1 | /etc/apt/trusted.gpg |
用dpkg -P package-name來移除有問題的套件,他會顯示不能移除的原因,然後依序移除即可
直接用dpkg安裝套件,如果有缺少的相依套件,之後使用apt install就會顯示E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).錯誤,必須要手動解決相依性問提
1 | Quick instructions to create a trivial local archive with apt-ftparchive |
https://itslinuxfoss.com/delete-repository-and-gpg-key-ubuntu/#2
dpkg-query -W tensorrt
apt-cache policy <package name>
例如
1 | $ apt-cache policy gparted |
安裝指定版本sudo apt-get install <package name>=<version>
例如上面的例子
1 | $ sudo apt-get install gparted=0.16.1-1 |
安裝ncdu檢查是哪一個資料夾滿了
sudo apt install ncdu
參考:
https://cynthiachuang.github.io/Survey-Pedestrian-Attribute-Recognition/
Pedestrian-Attribute-Recognition-Paper-List
https://github.com/2014gaokao/pedestrian-attribute-recognition-with-GCN
https://github.com/valencebond/Rethinking_of_PAR/blob/master/infer.py
https://github.com/cxh0519/VTB
https://github.com/dangweili/pedestrian-attribute-recognition-pytorch