VIBE
VIBE copied to clipboard
[BUG] GLError 12297
operating system and the version: ubuntu 16
python version: python=3.7
pytorch version: pytorch=1.6.0
the stack trace of the error:
Traceback (most recent call last):
File "demo.py", line 470, in
It's strange that I was able to run well before, and suddenly this problem occurred. now I have tried different versions of pyrender, searched Google, and still can't solve it.
I meet the same problem
The steps as follows can solve the problem:
sudo apt update
sudo apt-get install llvm-6.0
sudo apt-get install libsm6 libxrender1 libfontconfig1 freeglut3-dev
sudo apt --fix-broken install
wget https://github.com/mmatl/travis_debs/raw/master/xenial/mesa_18.3.3-0.deb
dpkg -i ./mesa_18.3.3-0.deb || true
apt install -f
git clone https://github.com/mmatl/pyopengl.git
pip install ./pyopengl
Because of Off-screen rendering, at last, you need to change "os.environ['PYOPENGL_PLATFORM'] = 'egl'" into "os.environ['PYOPENGL_PLATFORM'] = 'osmesa'" ,
The steps as follows can solve the problem:
sudo apt update sudo apt-get install llvm-6.0 sudo apt-get install libsm6 libxrender1 libfontconfig1 freeglut3-dev sudo apt --fix-broken install
wget https://github.com/mmatl/travis_debs/raw/master/xenial/mesa_18.3.3-0.deb dpkg -i ./mesa_18.3.3-0.deb || true apt install -f git clone https://github.com/mmatl/pyopengl.git pip install ./pyopengl
Because of Off-screen rendering, at last, you need to change "os.environ['PYOPENGL_PLATFORM'] = 'egl'" into "os.environ['PYOPENGL_PLATFORM'] = 'osmesa'" ,
Hi,
Thanks a lot!
I tried this but then I got this error:
output_img = rgb[:, :, :-1] * valid_mask + (1 - valid_mask) * img
ValueError: operands could not be broadcast together with shapes (1080,1920,2) (1080,1920,3)
Any idea about this error? Deepest thanks for your reply!
@lulindeng you can change "rgb[:, :, :-1]" into "rgb[:, :, :]",the error will disappear, good luck
@lulindeng you can change "rgb[:, :, :-1]" into "rgb[:, :, :]",the error will disappear, good luck
@xiezhongzhao It works, thanks a lot!
output_img = rgb[:, :, :-1] * valid_mask + (1 - valid_mask) * img
changed: output_img = rgb * valid_mask + (1 - valid_mask) * img
good luck!
How can I fix this on centos ?
os.environ['PYOPENGL_PLATFORM'] = 'osmesa'
hi, I meet a new error:“AttributeError("'GLXPlatform' object has no attribute 'OSMesa'",)” after fixing according your solution , could you give me some advice?