Relative Content

Tag Archive for pythonpytorchartificial-intelligencelstm

RuntimeError: shape ‘[16, 32, 63]’ is invalid for input of size 4032 – LSTM – Hand recognition action

I’m new to python and Pytorch. I’m try to train the LSTM for hand regconition action with Mediapipe based on the script of this GITHUB repository https://github.com/alexriedel1/Hand-Gesture-Recognition-in-manual-assembly-tasks-using-GCN.git. I’m ran into this issue when I run train.py “x = x.reshape(self.batch_size, self.seq_len, CFG.num_feats * 21)
RuntimeError: shape ‘[16, 32, 63]’ is invalid for input of size 4032”. Later I found that the default batch size =2 (torch.Size([2, 32, 21, 3]), i try it but it leads to another error
“hook
summary[m_key][“output_shape”] = [
AttributeError: ‘tuple’ object has no attribute ‘size'”
Please support me, Your support means the world to me
Below is the code:
LSTM.py