You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you make any changes to the code? Those line numbers don't seem to match the ones in the repository. I don't understand in which line the error happens since the one indicated the traceback doesn't use the variable DOA_batch_pred_cart and it's just a comment.
Good evening!
How can I resolve the error below:
UnboundLocalError Traceback (most recent call last)
in <cell line: 86>()
88 sys.stdout.flush()
89
---> 90 learner.train_epoch(dataset_train, trajectories_per_batch, trajectories_per_gpu_call, lr=lr, epoch=epoch_idx)
91 loss_test, rmsae_test = learner.test_epoch(dataset_test, trajectories_per_gpu_call)
92 print('Test loss: {:.4f}, Test rmsae: {:.2f}deg'.format(loss_test, rmsae_test) )
/content/Cross3D/acousticTrackingLearners.py in train_epoch(self, dataset, trajectories_per_batch, trajectories_per_gpu_call, lr, epoch)
90 optimizer.zero_grad()
91
---> 92 # Liberar memória
93 mic_sig_batch, acoustic_scene_batch = None, None
94 x_batch, DOA_batch = None, None
UnboundLocalError: local variable 'DOA_batch_pred_cart' referenced before assignment
The text was updated successfully, but these errors were encountered: