⚡️
Colorizing old black-and-white videos and "bringing faces to life" for FREESVFR — a full-fledged framework for restoring faces in videos.
It can:
💬 BFR — improve blurry faces.
💬 Colorization — colorize black-and-white videos.
💬 Inpainting — redraw damaged areas.
💬 and combine all of this in one pass.
Essentially, the model takes old or damaged videos and makes them "as if they were shot yesterday". And it's free and open-source.
⚙️
Installation locally:1. Create an environmentconda create -n svfr python=3.9 -y
conda activate svfr
2. Install PyTorch (for your CUDA)pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2
3. Install dependenciespip install -r requirements.txt
4. Download modelsconda install git-lfs
git lfs install
git clone https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt models/stable-video-diffusion-img2vid-xt
5. Start processing videospython infer.py \
--config config/infer.yaml \
--task_ids 0 \
--input_path input.mp4 \
--output_dir results/ \
--crop_face_region
Where task_ids:*
0 — face enhancement
*
1 — colorization
*
2 — redrawing damage
An ideal tool if:🟢you're restoring archival videos;
🟢you're creating historical content;
🟢you're working with neural networks and video effects;
🟢you want a wow result without paid services.
▶️
Demo on Hugging Face♎️
GitHub/Instructions#python #soft #github
https://t.me/CodeProgrammer