Prerequisites
Windows 11 PC with 64GB+ memory
Nvidia GPU with 12GB+ VRAM
mp4 video file of short duration (30 seconds or less) as input.mp4
Setup and run RealBasicVSR
Install Cuda 11.8.0 https://developer.nvidia.com/cuda-toolkit-archive
Install cudnn 9.4.0 https://developer.nvidia.com/cudnn-archive
Install miniforge https://github.com/conda-forge/miniforge/releases/download/24.7.1-0/Miniforge3-24.7.1-0-Windows-x86_64.exe
Install Visual Studio 2022 Professional
add C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64 to environment PATH
(I think it is possible to use Visual Studio 2022 Community edition instead)
Run Miniforge prompt and type following commands
conda update -y -n base -c defaults conda
conda update -y --all
conda env remove -y -n realbasicvsr
conda create -y -n realbasicvsr python=3.9
conda activate realbasicvsr
conda install -y pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 -c pytorch -c nvidia
conda install -y fsspec==2024.9.0 openmim==0.3.7 ninja==1.12.1 albumentations==1.4.14
mim install mmcv==2.1
mim install mmengine==0.10.4
mim install mmagic==1.2.0
conda install -y numpy==1.26
conda install -y platformdirs==4.3.2
conda install -y diffusers==0.28
Download mmagic=1.2.0 as zip https://github.com/open-mmlab/mmagic/archive/refs/tags/v1.2.0.zip
extract it
cd mmagic-1.2.0
python demo/mmagic_inference_demo.py --model-name real_basicvsr --video ./input.mp4 --result-out-dir ./out/out.mp4
It runs. The result is not convincing. Maybe something is wrong.
No comments:
Post a Comment