原创 torch interpolate
(1)torch的interpolate,size和scale_factor參數僅能設置一個,同時設置會報錯,size表示interpolate後的(H,W)大小,如果設置scale_factor,實際底層調用時也是先轉化爲size的大小
原创 coco數據集2017
1.caption: info、licenses、images、annotations info{ "description": str, "url": str, "version": str, "ye
原创 C++讀/寫bin文件
1.繼承關係 方法1: (1)寫bin文件 #include <iostream> #include <fstream> int main(){ float data[224*224*3]; for(int i
原创 Pytroch Model 轉TenorRT Engine
NVIDIA官方git: https://github.com/NVIDIA-AI-IOT/torch2trt My git: https://github.com/binzh93/torch2trt Ready......
原创 python深淺拷貝(list和numpy對比)
python 中list的深淺拷貝 # example1 a = [1, [2, 3]] b = a b[0] = 999 b[1][0] = 999 print("a: ", a) print("b: ", b) 此種情
原创 Pytorch中torch.nn.functional.cross_entropy的ignore_index
ignore_index表示計算交叉熵時,自動忽略的標籤值,example: import torch import torch.nn.functional as F pred = [] pred.append([0.9, 0.
原创 Mac上使用lightgbm
Mac上使用lightgbm時報錯: image not found 終端執行以下指令: brew install libomp
原创 CLion2018 for Mac 破解方法
1. 下載安裝包官網下載即可(注意版本,非2018版可能會無效) 或者從這裏下載 ( http://www.pc6.com/mac/208533.html ) 2. 終端操作 終端打開/private/etc/hosts vim /p
原创 Python 深度學習項目目錄規範
ProjectName configs/settings 工程項目配置文件夾 config.py docs 工程項目相關文檔說明文件夾 data
原创 ubuntu16.04+opencv3.1安裝
ubuntu16.04+opencv3.1安裝安裝依賴項:sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev lib
原创 Ubuntu16.04+Cuda9.0+Cudnn7.0+python2.7+Caffe
Ubuntu16.04+Cuda9.0+Cudnn7.0+python2.7+Caffe1.驅動安裝2.Cuda9.0安裝3.Cudnn7.0安裝以上3步見:https://blog.csdn.net/weixin_42287851/ar
原创 ubuntu+python2.7+tensorflow-gpu安裝
ubuntu16.04+(系統自帶)python2.7+tensorflow-gpu安裝1.安裝驅動2.安裝cuda9.03.按裝cudnn7.0以上3步見:https://blog.csdn.net/weixin_42287851/ar