Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'previous_3D' referenced before assignment #12

Open
binfenhuayun opened this issue Nov 22, 2024 · 0 comments

Comments

@binfenhuayun
Copy link

previous_3D = np.reshape(previous_3D,(batch,actor_num,args.future_length, 2))
draw_result(best_guess,previous_3D)
draw_result(gt,previous_3D,mode='gt')
return
soft_max_1d = F.softmax(trans_input)
Traceback (most recent call last):
File "test_nba.py", line 276, in
vis_result(test_loader, args)
File "test_nba.py", line 120, in vis_result
previous_3D = np.reshape(previous_3D,(batch,actor_num,args.future_length, 2))
UnboundLocalError: local variable 'previous_3D' referenced before assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant