tensorflow2.0——簡單的三種圖像增強方式(翻轉,光照,對比度)


     #   圖像增強
        inputs = tf.image.random_flip_left_right(inputs)        #   圖像隨機翻轉
        inputs = tf.image.random_brightness(inputs,max_delta=0.1)        #   圖像隨機光照
        inputs = tf.image.random_contrast(inputs,lower=0.2,upper=1.8)       #   圖像對比度

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM