Closed ipritom closed 1 year ago
This problem is solved.
I didn't noticed that I've installed wrong version of CUDA while following the instruction in README.md
file.
Then I created new environment. And installed PyTorch with my CUDA version. The installation code can be found here: For me, it was:
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
After that you may have to change the following line in main.py
as discussed in #191
config = yaml.safe_load(open(args.config, 'r'))
After that you may face another problem like following:
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
It was solved by upgrading the numpy
module:
pip install -U numpy
At this point everything should work fine. However, some people have mentioned PyQt related error (#16). The error message may look like the following:
WARNING: could not connect to display
WARNING: Could not load the Qt platform plugin "xcb" in "" even though it was found.
WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted
It was solved by installing mesa-utils-extra libegl1-mesa-dev libgles2-mesa-dev xvfb
and initializing a virtual display.
Terminal Command:
$ sudo apt update
$ sudo apt install mesa-utils-extra libegl1-mesa-dev libgles2-mesa-dev xvfb
$ Xvfb :0 -screen 0 1024x768x24 -ac +extension GLX +render -noreset &
$ export DISPLAY=:0
Thanks, I faced the same situation on ubuntu 22.04 with CUDA 11.7, at the end, instead of PyQt error, I got a different error at the video rendering stage:
libGL error: MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
WARNING: Error drawing visual <Mesh at 0x7f71339e0110>
Solved by exporting the library path:
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 python main.py --config argument.yml
as mentioned in: https://github.com/conda-forge/ctng-compilers-feedstock/issues/95#issuecomment-1449848343
I'm having CUDA error. I'm trying to generate video with this repo in Ubuntu 20.04 installed in WSL2.
The error message is given bellow:
Please, let me know how can I solve this issue.
NVIDIA Driver Version: 516.94
CUDA Version: 11.7