原创 python excel 寫入內容

import scipy.io as sio import os import xlwt import xlrd #dicom_name_file='ResultAnalysis.txt' os.remove('ResultAnaly

原创 ResNet深度解析

圖(1)爲原始結構,圖(5)爲改進的resnet ,性能優於(1),原因詳見以下鏈接 參考https://blog.csdn.net/lanran2/article/details/80247515

原创 deep learning: batch normalization

1、引入背景: 那麼網絡中層與層之間的關聯性會導致如下的狀況:隨着訓練的進行,網絡中的參數也隨着梯度下降在不停更新。一方面,當底層網絡中參數發生微弱變化時,由於每一層中的線性變換與非線性激活映射,這些微弱變化隨着網絡層數的加深而被放大(類

原创 deep learning :the effect of pooling

鏈接:https://www.zhihu.com/question/36686900/answer/130890492 來源:知乎 主要是兩個作用: 1. invariance(不變性),這種不變性包括translation(平移),ro

原创 python 輸出內容到txt後轉成pdf,支持中文

def savingResultMsg(self, resultmsg): if not os.path.exists('./log'): os.makedirs('./log')

原创 pyqt 顯示中文

# coding=UTF-8 //放到文件首行 import sys reload(sys) sys.setdefaultencoding('utf-8') node = QtGui.QGraphicsSimpleTextItem(s

原创 運算符重載

1、C++中運算符實際也是函數,只是在描述運算符函數時,使用了關鍵字operator,其他跟普通函數是一致的,故遵守函數重載的原則。 2、運算符重載原則  1 除了*,.,sizeof ,?:,::這五個運算符外,其他所有的C++運算符都

原创 C++ new 與 malloc的區別 及使用 時注意問題

堆: 將程序運行時可使用的 內存空間 稱爲堆  一、malloc 與 free 原型: void* malloc(unsigned int size); void free(void *p) malloc:在堆中分配一個長度爲 size

原创 python 操作sqlite

import sqlite3 if __name__ =='__main__': cx = sqlite3.connect("C:/Users/503061752/Desktop/AutoTest.sdb") cu =

原创 python 比較兩張圖片的相似度

import cv2.cv as cv import cv2 import numpy as np def compareHist( stdimg, ocimg): stdimg = cv2.imread(str(stdimg

原创 read txt file and new xml file with python

import xml.dom.minidom import os FILE_PATH= 'C:\\Users\\503061752\\Desktop\\XmlFiles'//生成.xml文件路徑 if not os.path.exis

原创 python 程序打包 PyInstaller

import os if __name__ == '__main__': from PyInstaller.__main__ import run opts=['ATApplication.py','-w','-c']

原创 新生成txt文件,並按行寫入內容 python

f = open("Label.txt",'a')//讀取label.txt文件,沒有則創建,‘a’表示再次寫入時不覆蓋之前的內容 f.write(strcontent) f.write('\n')//實現換行的功能 以上代碼實現

原创 paramiko 遠程控制鼠標,鍵盤等操作

import paramiko import time import os m_Path = os.path.split(os.path.realpath(__file__))[0] ISOTIMEFORMAT = '%Y-%m-%

原创 新建一個本地文件,並寫入內容 python

import os def test(): if not os.path.exists('./log') : os.mkdir('./log') savingtxtmsg = open('./log/a