-
Notifications
You must be signed in to change notification settings - Fork 45.9k
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
"AttributeError: 'module' object has no attribute 'data'" termination error when running Pets on Google Cloud tutorial #4058
Comments
chage tensorflow version to 1.5.0+ |
@xiliu as I explained, I did. |
I get this issue too, with tensorflow version 1.7. Tried version 1.5 but still meet this issue. |
I get the same error with tf 1.7 and Python2.7. Tried pulling the most recent setup.py which was said to be updated - nothing changes when used. Any results on running with Python3? @huzq85 EDIT: I added Tensorflow and Jupyter to the required packages in the setup.py and it seemingly fixes the error. So my required packages line looks like this: |
@JShep1, I've tried on Python3, but still meet this issue, however, your solution seems resolve this problem. I guess you can pull a request for this issue? |
@JShep1 you didn't do any additional change from the tutorial? Because I'm still unable to run it. |
Thanks @JShep1 finally got it running now, after making your suggested edits to setup.py. I ran it on TF 1.5 with Python 2.7. |
I have solved this issue by using --run-time 1.7. Thank you |
@doanthuan and @aysark I could not install Matplotlib>=2.1 and Cython>=0.28.1 on Ubuntu 16.04, I think that's reason why I got error: AttributeError: 'module' object has no attribute 'data'. Do you know how to install them, I did follow some suggestion of Google without success. |
Hi @AliceDinh, |
@doanthuan
|
let try to install with pip, ex: pip install matplotlib |
@doanthuan fixed, I need to install from root |
Still getting this same error:
I am running this:
my yml is:
|
I get the issue too, with tensorflow 1.1 and python3.4. and I solved it by upgrade tensorflow to 1.8 |
Anyone knows how to fix this kind of error : AttributeError: module 'cv2' has no attribute 'data' ? I am doing face recognition with the following code inside py file ""face_capture.py: import time sys.path.append(os.path.join(os.path.dirname(file), os.pardir)) def generate_faces(saving_path, num):
if name == 'main':
and apply this command to execute the code to take 200 images to train the model with smile expression for example: I have installed all dependencies [Tensorflow gpu 1.13, tensorflow, matplotlib, cython, opencv2, python3, python2.7 ...], but I am still getting the same error in all ways with python3 and 2.7!. |
Hi There, |
Traceback (most recent call last): |
I'm following the "Distributed Training on the Oxford-IIIT Pets Dataset on Google Cloud" tutorial.
Following the step of starting training, about 8 minutes later, I get a termination, with this error from the logs:
Googling this, I can't find any specific results, other than suggestions that the version of Python may be out of date. The tutorial gives the TensorFlow runtime version as 1.2, of which the options are 1.2, 1.4, 1.5 and 1.6. Changing to any of these other versions, I run into different errors, and I assume that isn't the correct solution.
The text was updated successfully, but these errors were encountered: