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

from cython.operator cimport dereference as dref出错 #70

Open
Zhong0501 opened this issue Apr 21, 2024 · 0 comments
Open

from cython.operator cimport dereference as dref出错 #70

Zhong0501 opened this issue Apr 21, 2024 · 0 comments

Comments

@Zhong0501
Copy link

这里显示数据格式不对,generate_mesh 函数内部的 generate_from_latent 函数在调用 mesh_extractor.query() 时出现数据类型不匹配错误!错误信息显示,函数期望的数据类型为 long,但实际传入的数据类型为 long long。求解决
(conv_onet) D:\GitHub\convolutional_occupancy_networks>python generate.py configs/pointcloud/demo_syn_room.yaml
C:\Users\27239.cache\torch\checkpoints/room_combine.pt
=> Loading checkpoint from local file...
Warning: generator does not support pointcloud generation.
0%|
| 0/2 [00:00<?, ?it/s]Traceback (most recent call last):
File "generate.py", line 148, in
out = generator.generate_mesh(data)
File "D:\GitHub\convolutional_occupancy_networks\src\conv_onet\generation.py", line 92, in generate_mesh
mesh = self.generate_from_latent(c, stats_dict=stats_dict, **kwargs)
File "D:\GitHub\convolutional_occupancy_networks\src\conv_onet\generation.py", line 126, in generate_from_latent
points = mesh_extractor.query()
File "src\utils\libmise\mise.pyx", line 122, in src.utils.libmise.mise.MISE.query
cdef long[:, :] points_view = points_np
ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'
Exception ignored in: <bound method tqdm.del of 0%|
| 0/2 [08:59<?, ?it/s]>
Traceback (most recent call last):
File "D:\27239\App\Anaconda3\envs\conv_onet\lib\site-packages\tqdm_tqdm.py", line 931, in del
self.close()
File "D:\27239\App\Anaconda3\envs\conv_onet\lib\site-packages\tqdm_tqdm.py", line 1133, in close
self._decr_instances(self)
File "D:\27239\App\Anaconda3\envs\conv_onet\lib\site-packages\tqdm_tqdm.py", line 496, in _decr_instances
cls.monitor.exit()
File "D:\27239\App\Anaconda3\envs\conv_onet\lib\site-packages\tqdm_monitor.py", line 52, in exit
self.join()
File "D:\27239\App\Anaconda3\envs\conv_onet\lib\threading.py", line 1053, in join
raise RuntimeError("cannot join current thread")
RuntimeError: cannot join current thread

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

1 participant