原创 Latex寫論文時圖片腳註的fig後冒號如何改爲句號

近期我在撰寫期刊論文時,發現該刊發表的論文的圖片腳註都是fig1. xxx。然而正常編輯後顯示的卻是fig1:xxx. 修改方法如下: 1. 在開頭調用工具包的地方,加\usepackage{caption}。 2. 在\begin{do

原创 pytorch報錯:RuntimeError: CUDA error: device-side assert triggered

訓練網絡報錯:RuntimeError: cuda runtime error (710) : device-side assert triggered at /pytorch/aten/src/THC/generic/THCTensor

原创 pytorch報錯:ValueError: num_samples should be a positive integer value, but got num_samples=0

最近在訓練網絡的時候,報錯ValueError: num_samples should be a positive integer value, but got num_samples=0。 經過調試發現,這是在dataloader環節出

原创 Latex寫文章時如何讓表格的標題序號單獨一行,註釋居中大寫

最近寫文章的時候,發現Table的title要求 “TABLE 1” 單獨一行,然後標題 “xxxx” 另起一行並居中。這個如何實現呢? 1. 在文章最前面調用工具包的地方,加入\usepackage{caption}; 2. \begi

原创 引用arXiv的文章標準的Latex的bib如何編輯

最近寫論文的時候會引用arXiv的文章,所以bib無法在谷歌學術和IEEE的檢索系統裏直接下載,這個時候如何得到標準的bib呢? 1. 進入到你所檢索的文章的頁面。例如:https://arxiv.org/abs/1502.03167 2

原创 使用ffmpeg處理視頻(一)

1.     在openavs2網站上下載openavs2-linux-amd64-1.0 2.     解壓openavs2-linux-amd64-1.0粘貼在虛擬機download下 3.     將uavs2d和uavs2e的庫放

原创 改寫CNN的一些問題解決方法

最近寫神經網絡遇到的一些問題,記錄存檔。   1.NameError: global name 'sys' is not defined 解決方法:import sys   2.NameError: global name 'os' is

原创 RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1.

pytorch訓練網絡模型時報錯: RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 160 and 156

原创 解決報錯:AttributeError: module 'tensorflow' has no attribute 'logging'

在tensorflow 2.1下跑訓練網絡,報錯:AttributeError: module 'tensorflow' has no attribute 'logging' 這個是因爲tensorflow2.1已經沒有tf.loggin

原创 如何將訓練集所有圖片的路徑信息寫入Pandas dataframe存成HDF5文件

最近在跑一個用GAN做圖片壓縮的網絡,訓練測試驗證集的信息都需要封裝成HDF5文件,因此記錄一下供自己參考。我需要訓練自己的數據集,因此要寫一個新的HDF5。 工程的指導上寫的是: In each case, you will need

原创 解決問題:ImportError: libcublas.so.9.0: cannot open shared object file: No such file

最近因爲疫情回不了學校,放血自費買了新裝備做實驗,配了一塊2060的顯卡,滿心歡喜地在tensorflow上跑訓練的代碼,結果報錯:ImportError: libcublas.so.9.0: cannot open shared obj

原创 解決報錯:struct.error: unpack_from requires a buffer of at least 4 bytes

好久沒更了(大概是因爲在國外抗疫hhh),言歸正傳。 最近實驗到後期,跑今年的SOTA提取語義mask的時候,批量處理圖片時出現報錯。 Traceback (most recent call last): File "/home/x

原创 報錯:TypeError: __init__() got an unexpected keyword argument 'serialized_options'

參考https://blog.csdn.net/qq_41185868/article/details/82890135 原因:終端上的 protoc 版本 與python庫內的protobuf版本不一樣 方法: 終端輸入 pip in

原创 格式化移動硬盤:Windows/Ubuntu/Mac OS系統全兼容,可讀寫

近期入手一個移動硬盤存儲自己的實驗數據和程序,因爲常用的設備分別是Windows/Ubuntu/Mac OS系統,需要都能讀寫,但發現硬盤默認格式化爲NTFS,Mac OS是不能識別的。經過查詢,最佳解決方式是格式化爲ExFAT。因爲FA

原创 解決tensorflow 調用bug Running model failed:Invalid argument: NodeDef mentions attr 'dilations'

在訓練DeepLab的時候,出現tensorflow 調用bug : 1. Running model failed:Invalid argument: NodeDef mentions attr 'dilations' not in O