bpt
bpt copied to clipboard
RuntimeError: mat1 and mat2 shapes cannot be multiplied (4096x51 and 54x768)
I'm trying to export a point cloud form houdini into a .npy but the model returns this error:
How I converted the poincloud:
# Extract point positions as a list of tuples
points = [point.position() for point in geo.points()]
pointcloud_np = np.array(points)
output_dir = os.path.dirname(output_path)
if not os.path.exists(output_dir):
os.makedirs(output_dir)
np.save(output_path, pointcloud_np)
the command i ran:
(bpt) ed@pop-os:/media/bpt$ python main.py --config 'config/BPT-open-8k-8-16.yaml' --model_path /media/ed/GITHUB/bpt/weights/bpt-8-16-500m.pt --output_path output/ --batch_size 1 --temperature 0.5 --input_type pc_normal --input_dir /media/ed/FSSD/obj/
return self._call_impl(*args, **kwargs)
File "/home/ed/miniconda3/envs/bpt/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ed/miniconda3/envs/bpt/lib/python3.9/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (4096x51 and 54x768)