原创 【Python】騰訊雲調用API接口獲得OCR信息

from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import Te

原创 【Python】正則表達式快速調用

提取DetectedText後的結果 import re data = '{"TextDetections": [{"DetectedText": "梁非凡也有了質疑", "Confidence": 99, "Polygon":

原创 【Python】獲得某一目錄下的所有圖片(按照圖片名字排序)

import os img_folder = '' img_list = [os.path.join(img_folder, nm) for nm in os.listdir(img_folder) if nm[-3:] in [

原创 【Python】Python保存和讀取字典

突然發現了一個保存字典很爽的方法,直接用.pkl保存 而且其實不止字典,其他的python數據格式也是可以用這個方式保存的,相見恨晚Orz… import pickle def save_pkl(obj, pkl_name):

原创 【Python】pyUserInput模擬鼠標鍵盤

安裝pyUserInput方法 PyUserInput使用 Python3.7安裝pyautogui python實時得到鼠標的位置

原创 【Lucene】Lucene環境安裝及使用(win10)

常用 Lucene介紹、下載、環境配置:Lucene安裝及環境配置 Lucene測試:windows上運行 Lucene 7.4 demo 運行demo時,顯示下面內容,則說明環境變量沒弄對 錯誤: 找不到或無法加載主類 org.

原创 【Anaconda】在命令行輸入python後顯示Failed calling sys.__interactivehook__

問題描述 Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "hel

原创 【Java】配置Java與IDEA

Win10 下載安裝配置Java SE 14版本 測試例子,下面代碼保存爲HelloWorld.java,然後在cmd中運行java .\HelloWorld.java public class HelloWorld {

原创 【目標檢測】soft-nms的一個大坑+python變量的賦值+函數傳引用機制

soft-nms代碼如下: def soft_nms(np.ndarray[float, ndim=2] boxes, float sigma=0.5, float Nt=0.3, float threshold=0.001, u

原创 【Linux】Ubuntu16.04 conda換源

打開終端,輸入命令gedit ~/.condarc 然後填入下面的內容 channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ -

原创 【Linux】Ubuntu16.04掛載希捷移動硬盤

問題描述 新買的希捷移動硬盤在windows上可以正常使用,但是插到ubuntu上後顯示無法掛在,報錯大概爲: Error mounting /dev/sdc1 at /media/vincent/13686801129: Com

原创 【目標檢測】miss rates和FPPI曲線記錄

最早提出FPPI概念的論文:Pedestrian Detection: A Benchmark 其實miss rates和FPPI是共同畫出來的,圖的名字叫做:Miss rates versus false positive pe

原创 【機器學習】如何通過Recall和Precise快速判斷自己模型的問題

定義 Recall = TP/(TP+FN) , 查全率,反映了被正確判定的正例佔總的正例的比重; Precise = TP/(TP+FP),反映了被分類器判定的正例中真正的正例樣本的比重; 對結果的判斷 1. 如果Recal

原创 【目標檢測】繪製FPPI、miss rate

行人檢測一般用FPPI而不是mAP作爲評估指標,但是網上找了好久都沒找到Python版本的代碼,原來FPPI官方的代碼是matlab的,這裏記錄一下用官方的代碼來繪製FPPI曲線有哪些需要注意的 非常感謝這篇文章:Caltech評

原创 【Pytorch】RuntimeError: one of the variables needed for gradient computation has been modified by

參考:RuntimeError: one of the variables needed for gradient computation has been modified by an inplace o 報錯 RuntimeE