資料擴增 data-augmentation的方法及代碼

來源:互聯網
上載者:User

為了擴增資料集,採用了2種方式來進行資料的擴增。

1、使用keras的資料增強處理

2、使用skimage的資料增強處理


keras包括的處理,有featurewise視覺上映像會稍微變暗,samplewise視覺上映像會變成類x光映像形式,zca處理視覺上映像會變成灰白映像,rotation range 隨機旋轉映像,水平平移,垂直平移,錯切變換,映像縮放,圖片的整體的顏色變換,水平翻轉操作,上下翻轉操作, rescale。

存在的問題是映像的變換是隨機的,即有的映像可能不會變換。

skimage的資料增強處理,有resize, gray,rescale,noise,flip,rotate, shift, zoom,gaussian zoom,shear,contrast,channelshift,PCA,polar。

目前極座標變換polar,還有些問題,即轉換後只有灰階圖,有待解決。


相關的代碼見如下地址。供參考。

github地址:https://github.com/renwoxing2016/data-augmentation

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.