SADRNet icon indicating copy to clipboard operation
SADRNet copied to clipboard

osmesa error

Open sunjunlishi opened this issue 3 years ago • 4 comments

raceback (most recent call last): File "src/run/predict.py", line 22, in from src.visualize.render_mesh import render_uvm #render_face_orthographic, File "/workspace/SADRNet/./src/visualize/render_mesh.py", line 16, in r = pyrender.OffscreenRenderer(CROPPED_IMAGE_SIZE, CROPPED_IMAGE_SIZE) File "/usr/local/lib/python3.8/dist-packages/pyrender/offscreen.py", line 31, in init self._create() File "/usr/local/lib/python3.8/dist-packages/pyrender/offscreen.py", line 134, in _create self._platform.init_context() File "/usr/local/lib/python3.8/dist-packages/pyrender/platforms/osmesa.py", line 19, in init_context from OpenGL.osmesa import ( ImportError: cannot import name 'OSMesaCreateContextAttribs' from 'OpenGL.osmesa' (/usr/local/lib/python3.8/dist-packages/OpenGL/osmesa/init.py)

sunjunlishi avatar Mar 28 '22 12:03 sunjunlishi

File "./src/model/SADRNv2.py", line 98, in forward x = self.block1(x) File "/data/Downloads/CondaAg/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call _impl result = self.forward(*input, **kwargs) File "./src/model/modules.py", line 540, in forward out += identity RuntimeError: The size of tensor a (129) must match the size of tensor b (128) at non-singleton dimension 3

sunjunlishi avatar Apr 05 '22 15:04 sunjunlishi

File "./src/model/SADRNv2.py", line 98, in forward x = self.block1(x) File "/data/Downloads/CondaAg/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call _impl result = self.forward(*input, **kwargs) File "./src/model/modules.py", line 540, in forward out += identity RuntimeError: The size of tensor a (129) must match the size of tensor b (128) at non-singleton dimension 3

sunjunlishi avatar Apr 05 '22 15:04 sunjunlishi

How did you fix the first error? I have the same error. ImportError: cannot import name 'OSMesaCreateContextAttribs' from 'OpenGL.osmesa'

Wyz2927 avatar May 29 '22 12:05 Wyz2927

File "./src/model/SADRNv2.py", line 98, in forward x = self.block1(x) File "/data/Downloads/CondaAg/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call _impl result = self.forward(*input, **kwargs) File "./src/model/modules.py", line 540, in forward out += identity RuntimeError: The size of tensor a (129) must match the size of tensor b (128) at non-singleton dimension 3

Hello, Have you addressed this problem?

SwordHolderSH avatar Apr 21 '23 20:04 SwordHolderSH