isl-org / Open3D-PointNet2-Semantic3D

Semantic3D segmentation with Open3D and PointNet++
Other
502 stars 113 forks source link

system cannot find the file specified #35

Open priyankanagaraj1494 opened 5 years ago

priyankanagaraj1494 commented 5 years ago

I downloaded and extrcated the dataset. I am getting this error when trying to run preprocess.py

C:\Users\PNAGARAJ\Lidar\Open3D-PointNet2-Semantic3D-master file C:\Users\PNAGARAJ\Lidar\Open3D-PointNet2-Semantic3D-master\dataset\semantic_raw\bildstein_station1_xyz_intensity_rgb.txt txt: C:\Users\PNAGARAJ\Lidar\Open3D-PointNet2-Semantic3D-master\dataset\semantic_raw\bildstein_station1_xyz_intensity_rgb.txt pts: C:\Users\PNAGARAJ\Lidar\Open3D-PointNet2-Semantic3D-master\dataset\semantic_raw\bildstein_station1_xyz_intensity_rgb.pts Traceback (most recent call last): File "C:/Users/PNAGARAJ/Lidar/Open3D-PointNet2-Semantic3D-master/preprocess.py", line 69, in point_cloud_txt_to_pcd(raw_dir, file_prefix) File "C:/Users/PNAGARAJ/Lidar/Open3D-PointNet2-Semantic3D-master/preprocess.py", line 49, in point_cloud_txt_to_pcd prepend_line(pts_file, str(wc(txt_file))) File "C:/Users/PNAGARAJ/Lidar/Open3D-PointNet2-Semantic3D-master/preprocess.py", line 11, in wc ["wc", "-l", file_name], stdout=subprocess.PIPE, stderr=subprocess.STDOUT File "C:\Users\PNAGARAJ\AppData\Local\Continuum\anaconda3\envs\open3d\lib\subprocess.py", line 676, in init restore_signals, start_new_session) File "C:\Users\PNAGARAJ\AppData\Local\Continuum\anaconda3\envs\open3d\lib\subprocess.py", line 957, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

yxlao commented 5 years ago

the CUDA + TensorFlow part is not tested on Windows, please use Ubuntu instead

sarraghd commented 5 years ago

Hi, i'm also working on windows and i faced the same problem did you try to solve it please?

i added shell= true, now i have an other problem:

def wc(file_name): out = subprocess.Popen( ["wc", "-l", file_name], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True ).communicate()[0] return int(out.partition(b" ")[0])

the error: File "D:/Open3D-PointNet2-Semantic3D-master/preprocess.py", line 13, in wc return int(out.partition(b" ")[0])

ValueError: invalid literal for int() with base 10: b"'wc'"

atineoSE commented 4 years ago

@yxlao I am trying to run through the steps in the README, in particular step 2 "convert txt to pcd file". It seems like there is a mismatch in the expected format, as reported by @sarraghd.

$ python preprocess.py 
[txt->pts]
txt: /myPath/Open3D-PointNet2-Semantic3D/dataset/semantic_raw/bildstein_station1_xyz_intensity_rgb.txt
pts: /myPath/Open3D-PointNet2-Semantic3D/dataset/semantic_raw/bildstein_station1_xyz_intensity_rgb.pts
Traceback (most recent call last):
  File "preprocess.py", line 66, in <module>
    point_cloud_txt_to_pcd(raw_dir, file_prefix)
  File "preprocess.py", line 47, in point_cloud_txt_to_pcd
    prepend_line(pts_file, str(wc(txt_file)))
  File "preprocess.py", line 13, in wc
    return int(out.partition(b" ")[0])
ValueError: invalid literal for int() with base 10: b''
sarraghd commented 4 years ago

@atineoSE this is because ''wc'' is not known by windows, you should use ubuntu instead.

yangfeifan-ufo commented 1 year ago

I met the same problem