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

Unable to open model.h5 file and the pretrained model link is not opening #6

Open
anarghyaraghav opened this issue Jul 13, 2023 · 2 comments

Comments

@anarghyaraghav
Copy link

Obtaining this error while training the model.
python point_pillars_training_run.py

FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = './logs/model.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Unable to open the google drive link for pretrained model.

@viplix3
Copy link
Owner

viplix3 commented Jul 13, 2023

Hi @anarghyaraghav, the training script checks if the model is available, if it is, only then the model is loaded, else a new model is trained from random weights.

Given the logic, the error you've mentioned shouldn't occur when executing the training script, unless I'm missing something, in which case if would be helpful if you could provide some more context.

I've provided a partially trained model here.

You can try running inference using that model if you'd like.

@anarghyaraghav
Copy link
Author

Hi @viplix3
Following are the steps that I followed:

  1. Cloned the repository
  2. Downloaded the KITTI dataset
  3. Run the python setup.py install
  4. Installed the packages numpy , tensorflow, tensorflow_probability, scikit-learn.
  5. Trained the model python point_pillars_training_run.py

Obtained following error:
python point_pillars_training_run.py
error :
Traceback (most recent call last):
File "point_pillars_training_run.py", line 26, in
pillar_net.load_weights(os.path.join(MODEL_ROOT, "model.h5"))
File "/datadrive/ar/env2/PointPillars/env1/lib/python3.8/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/datadrive/ar/env2/PointPillars/env1/lib/python3.8/site-packages/h5py/_hl/files.py", line 567, in init
fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
File "/datadrive/ar/env2/PointPillars/env1/lib/python3.8/site-packages/h5py/_hl/files.py", line 231, 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 106, in h5py.h5f.open
FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = './logs/model.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Please let me know if you need any additional details.

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

2 participants