Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ValueError: The last dimension of the inputs toDense should be defined. FoundNone. #78

Open
@Algabri

Description

@Algabri

When I run training code for--model_type 2,3,5,6,8 and 9. Also, demo codes. I got this error:

Traceback (most recent call last):  File "/home/redhwan/2/HPE/FSA-Net/demo/demo_FSANET_mtcnn.py", line 205, in <module>    main()  File "/home/redhwan/2/HPE/FSA-Net/demo/demo_FSANET_mtcnn.py", line 125, in main    model1 = FSA_net_Capsule(image_size, num_classes,  File "/home/redhwan/2/HPE/FSA-Net/demo/../lib/FSANET_model.py", line 431, in __call__    ssr_S_model = self.ssr_S_model_build(num_primcaps=self.num_primcaps,m_dim=self.m_dim)             File "/home/redhwan/2/HPE/FSA-Net/demo/../lib/FSANET_model.py", line 370, in ssr_S_model_build    feat_S_model = self.ssr_feat_S_model_build(m_dim)  File "/home/redhwan/2/HPE/FSA-Net/demo/../lib/FSANET_model.py", line 360, in ssr_feat_S_model_build    SR_matrix = Dense(m_dim*(self.map_xy_size*self.map_xy_size*3),activation='sigmoid')(feat_preS)  File "/home/redhwan/.local/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py", line 897, in __call__    self._maybe_build(inputs)  File "/home/redhwan/.local/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py", line 2416, in _maybe_build    self.build(input_shapes)  # pylint:disable=not-callable  File "/home/redhwan/.local/lib/python3.8/site-packages/tensorflow/python/keras/layers/core.py", line 1154, in build    raise ValueError('The last dimension of the inputs to `Dense` 'ValueError: The last dimension of the inputs to `Dense` should be defined. Found `None`.

tensorflow ==2.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp