NVlabs / nvdiffrast

Nvdiffrast - Modular Primitives for High-Performance Differentiable Rendering
Other
1.42k stars 157 forks source link

I encountered an issue when packaging a Python program into an .exe file. The strange thing is that the program runs perfectly before being packaged, but after converting it into an .exe, it raises an error: #208

Open wangduyang opened 3 days ago

wangduyang commented 3 days ago

TypeError: rasterize_fwd_gl(): incompatible function arguments. The following argument types are supported:

  1. (arg0: nvdiffrast_plugin_gl.RasterizeGLStateWrapper, arg1: at::Tensor, arg2: at::Tensor, arg3: tuple[int, int], arg4: at::Tensor, arg5: int) -> tuple[at::Tensor, at::Tensor]

Invoked with: <nvdiffrast_plugin_gl.RasterizeGLStateWrapper object at 0x000001EC042EF9F0>, tensor([[[-5.3013, -3.4521, 5.6707, 10.3353], [-5.2965, -3.4257, 5.6692, 10.3346], [-5.2913, -3.3991, 5.6677, 10.3339], ..., [ 5.6878, 3.7664, 6.6120, 10.8060], [ 5.6832, 3.7536, 6.6301, 10.8150], [ 5.6759, 3.7387, 6.6481, 10.8240]]], device='cuda:0'), tensor([[ 0, 1, 130], [ 0, 130, 129], [ 1, 2, 130], ..., [35706, 27742, 27704], [35707, 35708, 27742], [35708, 27776, 27742]], device='cuda:0', dtype=torch.int32), (224, 224), tensor([[0, 0]], dtype=torch.int32), -1

image