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 #1

Open
nhathoang0110 opened this issue Oct 1, 2020 · 2 comments
Open

Error #1

nhathoang0110 opened this issue Oct 1, 2020 · 2 comments

Comments

@nhathoang0110
Copy link

This is my error. Can you help me ?
" Traceback (most recent call last):
File "demo.py", line 21, in
model = WHENet('WHENet.h5')
File "/home/hoangnn/pose/HeadPoseEstimation-WHENet/whenet.py", line 13, in init
out = keras.layers.GlobalAveragePooling2D()(out)
File "/home/hoangnn/.local/lib/python3.7/site-packages/keras/engine/topology.py", line 606, in call
previous_mask = _collect_previous_mask(inputs)
File "/home/hoangnn/.local/lib/python3.7/site-packages/keras/engine/topology.py", line 2845, in _collect_previous_mask
mask = node.output_masks[tensor_index]
AttributeError: 'Node' object has no attribute 'output_masks'"

@yijunzhou-huawei
Copy link
Collaborator

Hi there, can you provide more details about the error?

@saadnajib
Copy link

This is my error. Can you help me ? " Traceback (most recent call last): File "demo.py", line 21, in model = WHENet('WHENet.h5') File "/home/hoangnn/pose/HeadPoseEstimation-WHENet/whenet.py", line 13, in init out = keras.layers.GlobalAveragePooling2D()(out) File "/home/hoangnn/.local/lib/python3.7/site-packages/keras/engine/topology.py", line 606, in call previous_mask = _collect_previous_mask(inputs) File "/home/hoangnn/.local/lib/python3.7/site-packages/keras/engine/topology.py", line 2845, in _collect_previous_mask mask = node.output_masks[tensor_index] AttributeError: 'Node' object has no attribute 'output_masks'"

Change
import keras
To
import tensorflow.keras as keras
in Whenet.py

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