遇到报错:
TypeError: expected np.ndarray (got PlyData)
报错部分:
def main():
args = options()
torch.backends.cudnn.deterministic = True
if args.user_data:
sourceR = PlyData.read(r'E:\bunny\data\bun000.ply') # The source point cloud is a rotated and offset defect
# source=s3.float()
templateR = PlyData.read(r'E:\bunny\data\bun045.ply') # Template point cloud is complete
# template=s5.float()
source = torch.from_numpy(sourceR) #此处报错
template = torch.from_numpy(templateR)
testset = UserData(template=template, source=source, tpcc=None, igt=None)