簡單行人重識別代碼到88%準確率 鄭哲東 準備工作

python安裝

選擇3.6版本

下載地址:https://www.python.org/downloads/

參考:https://blog.csdn.net/a1173356881/article/details/82525960

pip配置

忘記了

有一個警告,版本過高。

anaconda安裝

記得安裝python3.6版本

參考:https://www.bilibili.com/video/av74281036/(視頻)

配置環境:https://blog.csdn.net/ITLearnHall/article/details/81708148

Numpy安裝(anaconda自動安裝)

選擇python3.6和64位的版本

參考:https://blog.csdn.net/Octal_H/article/details/829600579

巨慢

Cuda安裝

參考:https://zhuanlan.zhihu.com/p/94220564?utm_source=wechat_session

pytorch安裝

網址:https://www.2nzz.com/thread-22288-1-1.html(這個能夠下載完整的,使用清華園)

數據庫和代碼的下載

數據庫下載很慢,直接給:

代碼很快,自己去下載吧!

調試

Part 1.2: Build Neural Network (model.py)

將mode.py中對應的部分改爲文章提供的代碼

Part 1.3: 訓練 (python train.py)

出現問題:

1. 沒有train.py中import的部分,直接在anaconda裏面安裝,具體百度很容易

2. RuntimeError: Cuda extensions are being compiled with a version of Cuda that does not match the version used to compile Pytorch binaries.  Pytorch binaries were compiled with Cuda 10.1.
In some cases, a minor-version mismatch will not cause later errors:  https://github.com/NVIDIA/apex/pull/323#discussion_r287021798.  You can try commenting out this check (at your own risk).

參考:https://zhuanlan.zhihu.com/p/80386137

又要重新安裝cuda,可憐無助

 

 

【注】在更新nvidia驅動的時候,弄掉了他的控制面板。在商店下載不了,解決辦法:https://tieba.baidu.com/p/6428818498

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章