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

where is current_model.h5 #14

Open
un-lock-me opened this issue Apr 22, 2019 · 7 comments
Open

where is current_model.h5 #14

un-lock-me opened this issue Apr 22, 2019 · 7 comments

Comments

@un-lock-me
Copy link

Can you please share your architecture model. Im trying text_recognizer, but it needs the current_model.h5 which is not available.

Thanks.

@pannous
Copy link
Owner

pannous commented Sep 5, 2019

added softlink
'current_weights.h5' -> 'best_weights.h5'

@maltelorbach
Copy link

current_model.h5 is still missing

@tugot17
Copy link

tugot17 commented Oct 12, 2019

Still there is problem with OSError: Unable to open file (unable to open file: name = 'current_model.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

@AlexeyKolosov
Copy link

Yes, I have similar issue too,
PS D:\AlexeyKolosov\tensorflow-ocr> python text_recognizer.py Using TensorFlow backend. (4, 512, 64, 1) Traceback (most recent call last): File "text_recognizer.py", line 77, in <module> words = predict_tensor(tensor) File "text_recognizer.py", line 39, in predict_tensor if not model: init_model() File "text_recognizer.py", line 25, in init_model model = load_model(model_file) File "D:\All_Python_here\Python 3.6.6\lib\site-packages\keras\engine\saving.py", line 492, in load_wrapper return load_function(*args, **kwargs) File "D:\All_Python_here\Python 3.6.6\lib\site-packages\keras\engine\saving.py", line 583, in load_model with H5Dict(filepath, mode='r') as h5dict: File "D:\All_Python_here\Python 3.6.6\lib\site-packages\keras\utils\io_utils.py", line 191, in __init__ self.data = h5py.File(path, mode=mode) File "D:\All_Python_here\Python 3.6.6\lib\site-packages\h5py\_hl\files.py", line 408, in __init__ swmr=swmr) File "D:\All_Python_here\Python 3.6.6\lib\site-packages\h5py\_hl\files.py", line 173, 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 88, in h5py.h5f.open OSError: Unable to open file (file signature not found)

@taily-khucnaykhongquantrong

I tried print(os.path.exists('./current_model.h5')), it returns False. But os.listdir('./') has the model in it. :|

@stravi
Copy link

stravi commented Mar 30, 2020

Anyone have found a solutions/workaround to this issue?

@slycordinator
Copy link

added softlink
'current_weights.h5' -> 'best_weights.h5'

In the repo, the symlink is to 'model1000.h5', not 'best_weights.h5'. It shows up as a broken symlink after cloning, because there's no file named 'model1000.h5'

pannous committed on Sep 6, 2019 1 parent c746c8f commit 52579ae55549429a1631193b2e6218087d0c60de Showing with 2 additions and 0 deletions. 1 current_model.h5 @@ -0,0 +1 @@ model1000.h5

And in the repo file itself at https://github.com/pannous/tensorflow-ocr/blob/master/current_model.h5:
`Symbolic Link 1 lines (1 sloc) 12 Bytes

model1000.h5`

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

8 participants