執行tensorflow時跳出警告訊息解決辦法

執行tensorflow時跳出警告訊息,但是程式還可以執行
是因為numpy版本過新
警告如下:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.






解決方法:
pip3 uninstall numpy
sudo pip3 install numpy==1.16

留言

這個網誌中的熱門文章

使用DLIB函式庫達成即時人臉辨識功能

Without Function數位影像處理(細線化)程式碼python數位影像處理(二值化,低通,高通,中值濾波器)程式碼python

以dlib實現人臉辨識打卡系統