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

problem to run Training (make train ....) #37

Open
AmineManso opened this issue Sep 29, 2022 · 1 comment
Open

problem to run Training (make train ....) #37

AmineManso opened this issue Sep 29, 2022 · 1 comment

Comments

@AmineManso
Copy link

AmineManso commented Sep 29, 2022

Hi !

First I run the data preprocessing section and it worked.
Then when I tried to run the Training section ( make train --[args] ...) it shows this error:
`
========== SUMMARY ==========
-> h5 dataset folder path : /path/FUSION-human-action-recognition/data/processed/old_h5_folder_2/
-> output_folder : /path/FUSION-human-action-recognition/models/
-> evaluation_type : cross_subject
-> model_type : FUSION
-> use pose : True
-> use ir : True
-> pretrained : True
-> use cropped ir : True
-> fusion scheme : CONCAT
-> optimizer : ADAM
-> learning rate : 0.0001
-> weight decay : 0.0
-> gradient threshold : 10.0
-> max epochs : 15
-> batch size : 16
-> accumulation steps : 1
-> sub_sequence_length : 20
-> augment_data : True
-> mirror skeleton : False
-> evaluate_test : True
-> seed : 0

Computing c_min and c_max. This takes a while ...
Done !
0 - 0.0/107
Traceback (most recent call last):
File "src/models/train_model.py", line 254, in
validation_generator)
File "/path/FUSION-human-action-recognition/src/models/train_utils.py", line 261, in train_model
out = model(X)
File "/user1/path/.conda/envs/fusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/path/FUSION-human-action-recognition/src/models/pose_ir_fusion.py", line 106, in forward
out_pose = self.pose_net(X_skeleton)[:, :, 0, 0] # shape (batch_size, 512)
File "/user1/path/.conda/envs/fusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/user1/path/.conda/envs/fusion/lib/python3.7/site-packages/torch/nn/modules/container.py", line 92, in forward
input = module(input)
File "/user1/path/.conda/envs/fusion/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/user1/path/.conda/envs/fusion/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 343, in forward
return self.conv2d_forward(input, self.weight)
File "/user1/path/.conda/envs/fusion/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 340, in conv2d_forward
self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same
make: *** [train] Erreur 1
`

Could you help detect and solve the problem

Thanks in advance for helping !!!!

@339238
Copy link

339238 commented Oct 1, 2023

Hi!
May I ask if you have solved this problem?

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