-
Notifications
You must be signed in to change notification settings - Fork 122
Description
这里显示数据格式不对,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