原创 OSError:Unable to open file (file signature not found)

python讀取matlab的mat文件失敗 遇到BUG: h5py OSError: Unable to open file (File signature not found) 一般python讀取mat文件的語句是scipy.io

原创 將COCO格式數據轉爲VOC格式

參考: https://blog.csdn.net/weixin_39881922/article/details/85120379 將COCO格式數據轉爲VOC格式 ''' 把coco數據集合的所有標註轉換到voc格式,不改變圖片命名

原创 存在多個python的虛擬環境,如何找到對應的pip進行下載

我在使用PyCharm過程中,創建了多個虛擬環境,3.5,3.6,3.7等等。 不同的程序需要用不同的虛擬環境,有時候從終端下載使用pip命令,輸入後卻是全局的pip。 解決方法如下: 找到對應的python環境位置, 然後輸入以下語句:

原创 matplotlib.pyplot使用方法

import cv2 import numpy as np from PIL import Image import requests from io import BytesIO import matplotlib matplotli

原创 FSA-Net: Learning Fine-Grained Structure Aggregation for Head Pose Estimation from a Single Image

本文來源於2019A類會議CVPR的論文FSA-Net,對其中一部分進行翻譯 摘要: 本文提出了一種基於單個圖像的頭部姿態估計方法。以往的方法往往是通過landmark或depth估計來預測頭部姿態,計算量大。我們的方法是基於迴歸和特徵聚

原创 10M/s方法解決numpy下載太慢的問題!

換清華源: pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple  

原创 cv2顯示圖片顯藍色

原圖像爲: 經過如下代碼顯示時,顯示爲藍色: import cv2 import matplotlib.pyplot as plt def CVshow(path): img = cv2.imread(path) p

原创 怎麼樣寫好頭部姿態的研究背景?

修改中,本文還存在一些問題。 本文參考: Fine-Grained Head Pose EstimationWithout Keypoints 怎麼樣寫好研究背景? [CVPR19] FSA-Net: Learning Fine-Gra

原创 PIL與cv2讀入圖片的區別

plt.imread和PIL.Image.open讀入爲RGB,cv2.imread讀入爲BGR,轉換RGB和BGR方式: 轉換代碼: https://blog.csdn.net/LEE18254290736/article/detail

原创 快速下載github資源

非常簡單,一共就四步。   1.註冊碼雲賬號:https://gitee.com/signup 2.進入主界面,點擊右上方加號,選擇從github導入倉庫 3.填寫github項目地址: 4.自動彈出下載好的界面,直接點擊右上角下載就行

原创 Tensor,placeholder與Variable區別

import tensorflow as tf a = tf.Variable(1.0,name='a') b = tf.Variable(2.0,name='b') c = tf.add(a,b) sess = tf.Sessio

原创 快速生成latex的表格

https://www.tablesgenerator.com/ 在excel裏面寫好了直接複製就行了!!!

原创 一句話解決python各類庫安裝包下載太慢速度問題

  pip install XXX -i https://pypi.tuna.tsinghua.edu.cn/simple 下載時換成清華源,一般都十幾M每秒   感謝小夥伴點贊關注,後續會更新其他實用技巧     ===========

原创 圖形界面遠程linux,一句話就能解決的事情!

1.下載xshell 2.下載xmanager 3.使用xshell連接服務器 4.命令行輸入nautilus 5.自動連接,並顯示圖形界面

原创 VGG Image Annotator 輸出的是不標準coco格式圖像,如何解決?

1.categories爲空,需要自己添加。 "categories": [{ "id": 1, "supercategory": "animal", "name": "bird" }, { "id":