Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR]When Running utils/s3dis_utils/s3dis_gen_h5.py #22

Open
Hatsu1314Casper opened this issue Apr 8, 2023 · 2 comments
Open

[ERROR]When Running utils/s3dis_utils/s3dis_gen_h5.py #22

Hatsu1314Casper opened this issue Apr 8, 2023 · 2 comments

Comments

@Hatsu1314Casper
Copy link

Hatsu1314Casper commented Apr 8, 2023

The following error will occur at the beginning of the program:
/root/autodl-tmp/JSNet/data/indoor3d_ins_seg_hdf5/Area_1_conferenceRoom_1.h5: (80, 4096, 9), (80, 4096), (80, 4096)
Traceback (most recent call last):
File "utils/s3dis_utils/s3dis_gen_h5.py", line 56, in
data_dtype, label_dtype)
File "/root/autodl-tmp/JSNet/utils/data_prep_util.py", line 111, in save_h5ins
h5_fout = h5py.File(h5_filename)
File "/root/miniconda3/envs/tf1/lib/python3.6/site-packages/h5py/_hl/files.py", line 427, in init
swmr=swmr)
File "/root/miniconda3/envs/tf1/lib/python3.6/site-packages/h5py/_hl/files.py", line 190, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 96, in h5py.h5f.open
OSError: Unable to open file (unable to open file: name = '/root/autodl-tmp/JSNet/data/indoor3d_ins_seg_hdf5/Area_1_conferenceRoom_1.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Error performance:

  1. room_filelist.txt only outputs the conferenceRoom of Aere1
  2. missing area_1_conferenceRoom_1.h5 in indoor3d_ins_seg_hdf5

SOLUTION
After trying, I found that if I change h5py.file in the function save_h5ins to mode='a', it will run successfully
data_prep_util.py, line 111
h5_fout = h5py.File(h5_filename, mode='a')

END
Hoping that other beginners like me will not be troubled by this error.

@dlinzhao
Copy link
Owner

dlinzhao commented Mar 7, 2024

Using ln to create a symbolic link and link to the data, see to readme file.

@zzz15301447290
Copy link

The following error will occur at the beginning of the program: /root/autodl-tmp/JSNet/data/indoor3d_ins_seg_hdf5/Area_1_conferenceRoom_1.h5: (80, 4096, 9), (80, 4096), (80, 4096) Traceback (most recent call last): File "utils/s3dis_utils/s3dis_gen_h5.py", line 56, in data_dtype, label_dtype) File "/root/autodl-tmp/JSNet/utils/data_prep_util.py", line 111, in save_h5ins h5_fout = h5py.File(h5_filename) File "/root/miniconda3/envs/tf1/lib/python3.6/site-packages/h5py/_hl/files.py", line 427, in init swmr=swmr) File "/root/miniconda3/envs/tf1/lib/python3.6/site-packages/h5py/_hl/files.py", line 190, in make_fid fid = h5f.open(name, flags, fapl=fapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5f.pyx", line 96, in h5py.h5f.open OSError: Unable to open file (unable to open file: name = '/root/autodl-tmp/JSNet/data/indoor3d_ins_seg_hdf5/Area_1_conferenceRoom_1.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Error performance:

  1. room_filelist.txt only outputs the conferenceRoom of Aere1
  2. missing area_1_conferenceRoom_1.h5 in indoor3d_ins_seg_hdf5

SOLUTION After trying, I found that if I change h5py.file in the function save_h5ins to mode='a', it will run successfully data_prep_util.py, line 111 h5_fout = h5py.File(h5_filename, mode='a')

END Hoping that other beginners like me will not be troubled by this error.

Can you leave me a contact number? I have a question for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants