深度学习将灰度图着色_通过深度学习为视频着色
深度學習將灰度圖著色
零本地設置/ DeOldify / Colab筆記本 (Zero Local Setup / DeOldify / Colab Notebook)
“Haal Kaisa Hai Janaab Ka” Bollywood Song — 1958 and “Beautiful Black & White Hollywood Movie Shots Collection”“ Haal Kaisa Hai Janaab Ka”寶萊塢歌曲-1958年和“ Beautiful Black&White Hollywood Movie Shots Collection”Following up on my goal of doing things easily, I wanted to try DeOldify to convert B&W video content with audio over and over again, without having to change code or lose progress due to the free resource session timing out on Google Colab.
遵循我輕松做事的目標,我想嘗試DeOldify一次又一次地轉換B&W視頻內容和音頻,而不必更改代碼或由于Google Colab上的免費資源會話超時而失去進度。
Below are the steps — around 10 clicks, enabling you to do just that! Keep in mind I have tested only short videos (5 mins) with the free hardware resources.
以下是步驟-大約10次點擊,使您能夠做到這一點! 請記住,我僅使用免費的硬件資源測試了短片(5分鐘)。
Open the Colab Notebook link hosted in the repository. This article might also familiarize you with the power of Colab for your next exciting AI paper.
打開存儲庫中托管的Colab Notebook鏈接。 本文還可能使您熟悉Colab在下一篇令人興奮的AI論文中的功能。
https://colab.research.google.com/github/ojjsaw/video-processing/blob/master/Custom_DeOldify_VideoColorizer_Colab.ipynb
https://colab.research.google.com/github/ojjsaw/video-processing/blob/master/Custom_DeOldify_VideoColorizer_Colab.ipynb
First, ensure a free GPU resource is allocated by logging in. Click on Runtime menu on the top > Change runtime type > GPU > Save and then click Connect on the top right.
首先,確保通過登錄分配免費的GPU資源。單擊頂部的“運行 時”菜單> 更改運行時類型 > GPU > 保存 ,然后單擊右上角的“ 連接 ”。
Step 1第1步After logging in, hit Connect again and update the URL to your video link obtained from the share icon on your YouTube video. The default URL is the iconic “Arrival of the Train” clip from Lumière Brothers’ 1895 — History of Films 101.
登錄后,再次單擊“ 連接” ,然后將URL更新為從YouTube視頻上的共享圖標獲得的視頻鏈接。 默認的URL是LumièreBrothers的1895年-電影史101中的標志性“火車到達”剪輯。
You can optionally modify the default google drive export directory path.
您可以選擇修改默認的Google驅動器導出目錄路徑。
Hit the Run icon on the left! Every time you open this page (session), you will be asked to authorize google drive to mount it to your current session.
點擊左側的“運行”圖標 ! 每次您打開此頁面( 會話 )時,系統都會要求您授權google驅動器將其安裝到當前會話中。
Step 2第2步Copy-paste the authorization code and hit Enter. Click on the Setup text section to bring it in focus and hit the Run After option from the Runtime menu on the top of the page.
復制并粘貼授權碼,然后按Enter 。 單擊“ 設置”延伸部分以使其突出 顯示 ,然后單擊頁面頂部“ 運行時” 菜單中的“運行后”選項。
Step 3第三步Sit tight and go grab a coffee! Just make sure your machine is running and the browser stays alive.
坐好去喝杯咖啡! 只要確保您的機器正在運行并且瀏覽器保持運行狀態即可。
It will take a while to process, but after a successful conversion, the source and result videos will be uploaded to your google drive at the chosen path.
處理需要一些時間 ,但是成功轉換后, 源視頻和結果視頻將按照所選路徑上傳到您的Google驅動器。
Again, above is the simplest path to conversion without the bells and whistles. For more customization, please take a look at the original notebook.
同樣,以上是最簡單的轉換方法,沒有花哨的時間。 要進行更多定制,請查看原始筆記本 。
In future posts, we will try to increase the frames-per-second of a video for a smoother clip and possibly even upscale the video to a higher resolution to satisfy the requirements of current generation display devices.
在以后的文章中,我們將嘗試增加視頻的每秒幀數以實現更流暢的剪輯,甚至可能將視頻放大到更高的分辨率,以滿足當前顯示設備的要求。
If you’d like to try more start-to-finish quick AI experiments, visit my last post: Train a Neural Network to classify images & optimize CPU inferencing in 10 mins
如果您想嘗試更多的從頭到尾的快速AI實驗,請訪問我的上一篇文章: 訓練神經網絡對圖像進行分類并在10分鐘內優化CPU推理
翻譯自: https://towardsdatascience.com/colorize-a-video-with-deep-learning-15b30da3b57c
深度學習將灰度圖著色
總結
以上是生活随笔為你收集整理的深度学习将灰度图着色_通过深度学习为视频着色的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 机器学习 模型性能评估_如何评估机器学习
- 下一篇: 梳理百年深度学习发展史-七月在线机器学习