akai-katto / dandere2x

Dandere2x - Fast Waifu2x Video Upscaling.

Home Page:https://www.reddit.com/r/Dandere2x/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image does not seem to work anymore

beertje44 opened this issue · comments

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 :)

Hi there! What do you mean by tag?

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.