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

ValueError: The channel dimension of the inputs should be defined. Found None. #2

Closed
fanchunpeng opened this issue Jul 14, 2021 · 3 comments

Comments

@fanchunpeng
Copy link

Traceback (most recent call last):
File "unit-tests.py", line 10, in
resp = RetinaFace.detect_faces(img, threshold = 0.5)
File "D:\Face_Capture\Server33_Live\RetinaFace\retinaface-master\retinaface\RetinaFace.py", line 54, in detect_faces
model = build_model()
File "D:\Face_Capture\Server33_Live\RetinaFace\retinaface-master\retinaface\RetinaFace.py", line 30, in build_model
retinaface_model.build_model(),
File "D:\Face_Capture\Server33_Live\RetinaFace\retinaface-master\retinaface\model\retinaface_model.py", line 486, in build_model
ssh_c2_aggr = Conv2D(filters = 256, kernel_size = (3, 3), name = 'ssh_c2_aggr', strides = [1, 1], padding = 'VALID', use_bias = True)(ssh_c2_aggr_pad)
File "D:\python_fancp\Anaconda3.7\lib\site-packages\keras\engine\base_layer.py", line 431, in call
self.build(unpack_singleton(input_shapes))
File "D:\python_fancp\Anaconda3.7\lib\site-packages\keras\layers\convolutional.py", line 132, in build
raise ValueError('The channel dimension of the inputs '
ValueError: The channel dimension of the inputs should be defined. Found None.

@serengil
Copy link
Owner

what was your tensorflow version?

@quqixun
Copy link

quqixun commented Jul 27, 2021

Same issue happend while using nvidia-tensorflow==1.15.4+nv20.11 with cuda11.1 on rtx3080, Ubuntu18.04.

@serengil serengil added the bug Something isn't working label Jul 29, 2021
@thanhpt93
Copy link

update tensorflow==2.0 version can solve this problem

@serengil serengil added dependency and removed bug Something isn't working labels Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants