linyiLYi / pose-monitor

“让爷康康”是一款手机 AI 应用程序,可以监测不良坐姿并进行语音提示
Apache License 2.0
2.57k stars 388 forks source link

在生成姿态分类模型时报错 #34

Open Zaokuai opened 7 months ago

Zaokuai commented 7 months ago

Define a Keras model for pose classification print(landmarks.shape)结果(None, 17, 2)

ValueError: Exception encountered when calling layer 'flatten' (type Flatten).

Attempt to convert a value (None) with an unsupported type (<class 'NoneType'>) to a Tensor.

Call arguments received by layer 'flatten' (type Flatten): • inputs=<KerasTensor: shape=(None, 17, 2) dtype=float32 (created by layer 'tf.math.truediv')> 为什么呀?