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

AttributeError: 'tuple' object has no attribute 'permute' #3

Open
librlike opened this issue Dec 16, 2023 · 1 comment
Open

AttributeError: 'tuple' object has no attribute 'permute' #3

librlike opened this issue Dec 16, 2023 · 1 comment

Comments

@librlike
Copy link

May I use train again_ Gan_ Social_ LSTM_ The following errors occurred during the training of the MHSA model:
Traceback (most recent call last):
File "/mnt/f/pycharm-professional/pytorch-project/VectorNet-GAN/mapfe4mp-master/train.py", line 143, in
model_trainer(config, logger)
File "/mnt/f/pycharm-professional/pytorch-project/VectorNet-GAN/mapfe4mp-master/model/trainers/other/trainer_gan_social_lstm_mhsa.py", line 271, in model_trainer
losses_d = discriminator_step(hyperparameters, batch, generator,
File "/mnt/f/pycharm-professional/pytorch-project/VectorNet-GAN/mapfe4mp-master/model/trainers/other/trainer_gan_social_lstm_mhsa.py", line 489, in discriminator_step
pred_traj_fake = relative_to_abs(pred_traj_fake_rel, obs_traj[-1])
File "/mnt/f/pycharm-professional/pytorch-project/VectorNet-GAN/mapfe4mp-master/model/datasets/argoverse/dataset_utils.py", line 394, in relative_to_abs
rel_traj = rel_traj.permute(1, 0, 2)
AttributeError: 'tuple' object has no attribute 'permute'
Excuse me, class TrajectoryGenerator (nn. Module): Is this part of the code correct and why is it returning pre d_ Traj_ Fake_ Rel returns a tuple, but tuples cannot use relative_ To_ ABS function

@Cram3r95
Copy link
Owner

Hi. I am modifying the repo to have a stable version. Thank you!

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

2 participants