原创 kvm GPU直通(kvm GPU passthrough)
注:如需遠程指導,請添加weixin: langu86,可單獨一對一付費諮詢(500元起) 爲了方便對服務器進行自動管理,我們需要對硬件進行虛擬化。對於顯卡而言,Nvidia有專門支持GPU虛擬化的顯卡,比如GRID GPU系列。以NVI
原创 docker私有倉庫:server gave HTTP response to HTTPS client
在從docker私有倉庫拉鏡像時出現了"server gave HTTP response to HTTPS client"的報錯,解決方法如下: #創建或者修改daemon.json,然後添加如下內容 {"insecure-re
原创 tensorflow從pb文件中導出權重
import tensorflow as tf from tensorflow.python.platform import gfile #path to your .pb file GRAPH_PB_PATH = './model/t
原创 深度學習中爲什麼模型輸入大多是正方形圖像?
導語 大多數深度學習模型(例如VGG,ResNet等)都需要正方形圖像作爲輸入,通常像素大小爲224x224。 輸入的長寬必須相等是有原因的嗎?還是可以建立一個100x200輸入的卷積神經網絡模型?更大的像素尺寸(例如512x512)會帶
原创 AttributeError_ module tensorflow has no attribute placeholder
使用雲平臺或者別的服務器時,如果安裝的是高版本的tf(tf2.x),跑比較舊的代碼容易出現這種報錯。解決方案:註釋tf的引用,換爲兼容模式。 # import tensorflow as tf import tensorflow.com
原创 conda安裝cpu版pytorch
conda install pytorch-cpu=1.0 pip install torchvision==0.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
原创 HEIF/HEIC轉jpg、JPEG、PNG開源實現
tifig:A fast HEIF image converter aimed at thumbnailing heif:High Efficiency Image File Format
原创 安裝proxmox
一、安裝debian系統 1-切換到root,將當前用戶添加到/etc/sudoers裏面 chmod 777 /etc/sudoers #權限修改後 chmod 440 /etc/sudoers 2-安裝包 sudo wget
原创 時序圖template
```mermaid sequenceDiagram participant client participant server participant agent Note over client: 與agent進行通信 cli
原创 XGBoost GPU資源收集
1-XGBoost GPU Support https://xgboost.readthedocs.io/en/latest/gpu/index.html 2-Gradient Boosting, Decision Trees a
原创 AttributeError: module 'torch' has no attribute 'flip'
運行基於pytorch寫的程序時出現"AttributeError: module ‘torch’ has no attribute ‘flip’"的錯誤提示,修改方法: 將pytorch版本升級到1.0以上即可
原创 TypeError: '_IncompatibleKeys' object is not callable
在使用pytorch編寫代碼時,出現了"TypeError: ‘_IncompatibleKeys’ object is not callable",報錯原因如下: model = model.load_state_dict(to
原创 TypeError: Class advice impossible in Python3
這裏寫自定義目錄標題 在ubuntu上安裝apex時,出現報錯信息“TypeError: Class advice impossible in Python3”。原因是使用pip安裝時的pip文件可能需要驗證,所以正確的安裝方式如
原创 docker:server gave HTTP response to HTTPS client
在從docker私有倉庫拉鏡像時出現了"server gave HTTP response to HTTPS client"的報錯,解決方法如下: #創建或者修改daemon.json,然後添加如下內容 {"insecure-re
原创 在windows上極簡安裝GPU版AI框架(tensorflow)
在windows上極簡安裝GPU版AI框架 如果我們想在windows系統上安裝GPU版本的AI框架,比如GPU版本的tesnorflow,通常我們會看到類似下面的安裝教程 官方版本 安裝CUDA 安裝cuDNN 配置環境變量