akai-katto / dandere2x

Dandere2x - Fast Waifu2x Video Upscaling.
https://www.reddit.com/r/Dandere2x/
GNU General Public License v3.0
1.45k stars 77 forks source link

Docker image does not seem to work anymore #298

Open beertje44 opened 1 year ago

beertje44 commented 1 year ago

Problem seems to be: cuda and vulkan no longer seem to work, at least not on my system: AlmaLinux 9.2 x86_64 with podman.

Took me quite some time to get everything right but the good news it wasn't that hard to get everything up2date, there was only 1 python package that needed to be pinnen to a newer version.

The real problem was getting my nVidia card to work inside the container. I ended up using the nvidia/cuda repo which in turn uses Ubuntu 22.04 LTS as its base repo. The way nvidia integrates vulcan makes the image kind of heavy (extra 2.5GB). But at least it now works just fine. Perhaps someone can improve on this.

You can build with:

podman build --no-cache -f Dockerfile --build-arg VULKAN_SDK_VERSION=curl https://vulkan.lunarg.com/sdk/latest/linux.txt-t <YOUR TAG HERE

and run with:

podman run -it --rm --gpus all -v /dev:/dev -e NVIDIA_DISABLE_REQUIRE=1 -e NVIDIA_DRIVER_CAPABILITIES=all --security-opt=label=disable --hooks-dir=/usr/share/containers/oci/hooks.d/ -v $PWD:/host <YOUR TAG HERE> -p multiprocess -ws ./workspace/ -i /host/input.mp4 -o /host/output.mp4

I'm pretty sure docker is quite similar, but don't have that on my system :)

cone-forest commented 7 months ago

Hi there! What do you mean by tag?

beertje44 commented 7 months ago

Tag is the identifier for podman for the user you run it with, so it basicly can be any string. As long as you build and run it with the same tag string, I'm sure podman and docker are the same on this part.