GajuuzZ / Human-Falling-Detect-Tracks

AlphaPose + ST-GCN + SORT.
740 stars 254 forks source link

train.py ValueError: Using a target size (torch.Size([32, 1])) that is different to the input size (torch.Size([32, 7])) is deprecated. Please ensure they have the same size. #66

Open anzisheng opened 2 years ago

anzisheng commented 2 years ago

Hi, when I run Actionsrecognition/train.py, I have a problem at code: loss = losser(out, lbs) The ValueError is followed: Using a target size (torch.Size([32, 1])) that is different to the input size (torch.Size([32, 7])) is deprecated. Please ensure they have the same size.

Anyone can tell me the cause and the solution to fix it ?

cosao commented 1 year ago

did you solve it??