PointNet-Plane-Detection icon indicating copy to clipboard operation
PointNet-Plane-Detection copied to clipboard

Errno 2

Open Sassimion opened this issue 2 years ago • 0 comments

Hi, I received this error while converting the data from ply to h5. Not sure what's wrong.

FileNotFoundError: [Errno 2] No such file or directory: './ply/ply.ply'

Do I need to provide path in the loop?

Here is the code with my path:

[import h5py import numpy as np from plyfile import PlyData, PlyElement

filenames = [line.rstrip() for line in open("build.ply", 'r')]

#f = h5py.File("./hdf5_data/data_training.h5", 'w') f = h5py.File("C:/Users/Asus/Desktop/CODINGTRY/Writehdf5/hdf5_data/builda.h5", 'w')

a_data = np.zeros((len(filenames), 2048, 3), dtype = np.uint8) a_pid = np.zeros((len(filenames), 2048), dtype = np.uint8)

for i in range(0, len(filenames)): plydata = PlyData.read("./ply/" + filenames[i] + ".ply") piddata = [line.rstrip() for line in open("./points_label/" + filenames[i] + ".seg", 'r')] for j in range(0, 2048): a_data[i, j] = [plydata['vertex']['x'][j], plydata['vertex']['y'][j], plydata['vertex']['z'][j]] a_pid[i,j] = piddata[j]

data = f.create_dataset("data", data = a_data) pid = f.create_dataset("pid", data = a_pid)](url)

Sassimion avatar Jun 13 '22 03:06 Sassimion