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

Little help with great thanks: I got many issues #12

Open
dongdongqin opened this issue Jan 22, 2017 · 3 comments
Open

Little help with great thanks: I got many issues #12

dongdongqin opened this issue Jan 22, 2017 · 3 comments

Comments

@dongdongqin
Copy link

The first one is, it is probably version problem, I am newer and I will be very appreicated with your help;
When I run boss_train.py:

AttributeError: module 'tensorflow.python' has no attribute 'control_flow_ops

the second one is : when I run camera_reader.py:
I do not know what is the file of './store/model.h5', thank you!
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (D:\Build\h5py\h5py-2.6.0\h5py_objects.c:2580)
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (D:\Build\h5py\h5py-2.6.0\h5py_objects.c:2539)
File "h5py\h5f.pyx", line 76, in h5py.h5f.open (D:\Build\h5py\h5py-2.6.0\h5py\h5f.c:1814)
OSError: Unable to open file (Unable to open file: name = './store/model.h5', errno = 2, error message = 'no such file or directory', flags = 0, o_flags = 0)

@dongdongqin
Copy link
Author

I add the file : model.h5.
Another problem happened: I do not understand what the module should be in the config files. thank you!
Using TensorFlow backend.
Model Loaded.
Traceback (most recent call last):
File "F:/BossSensor/camera_reader.py", line 11, in
model.load()
File "F:\BossSensor\boss_train.py", line 151, in load
self.model = load_model(file_path)
File "E:\Python 3.5\lib\site-packages\keras\models.py", line 126, in load_model
raise ValueError('No model found in config file.')
ValueError: No model found in config file

@dongdongqin
Copy link
Author

The first problem is: the order I run the program is wrong. The file of boss_train.py should be executed firstly. And then camera_reader.py should be run secondly.

the second problem is solved by adding following content in the file of boss_train.py.
import tensorflow as tf
tf.python.control_flow_ops = tf

thank you. Hope the problems can help more newers. thank you again!

@lionel126
Copy link

no ./store/ directory is the reason the first problem occurs

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