Walter0807 / MotionBERT

[ICCV 2023] PyTorch Implementation of "MotionBERT: A Unified Perspective on Learning Human Motion Representations"
Apache License 2.0
1k stars 120 forks source link

A question for train_action.py #104

Open SoliveTech opened 9 months ago

SoliveTech commented 9 months ago

d82757739d8e58ba28ea82f652a4221 Thanks for your excellent work! In the picture from train_action.py, I find that the "idx" is got in the for loop. but after the loop The if statement calls the variable "idx " again. Why the "idx " can be called in here?

Walter0807 commented 9 months ago

Good catch! You can move it into the loop (pull request is welcomed if you want).