Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osmesa error #21

Open
sunjunlishi opened this issue Mar 28, 2022 · 4 comments
Open

osmesa error #21

sunjunlishi opened this issue Mar 28, 2022 · 4 comments

Comments

@sunjunlishi
Copy link

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
Copy link
Author

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

1 similar comment
@sunjunlishi
Copy link
Author

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

@Wyz2927
Copy link

Wyz2927 commented May 29, 2022

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

@SwordHolderSH
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants