pulp-platform / pulp-dronet

A deep learning-powered visual navigation engine to enables autonomous navigation of pocket-size quadrotor - running on PULP
Apache License 2.0
502 stars 163 forks source link

Why no chceckpoint issue is arising #25

Closed vijaykp23 closed 3 months ago

vijaykp23 commented 7 months ago

working directory: /home/research/Documents/Pytorch/Nano_Drone/pulp-dronet-master/pulp-dronet-v2

Model name: model/dronet_v2_nemo_dory_original_himax.pth CUDA/CPU device: cuda:0 pyTorch version: 1.6.0 You are testing on the himax dataset

loaded checkpoint on cuda Failed to find the [state_dict] inside the checkpoint. I will try to open it anyways. model tested: model/dronet_v2_nemo_dory_original_himax.pth evaluated on the: himax dataset Test: 0%| | 0/7 [00:00<?, ?it/s] Traceback (most recent call last): File "testing.py", line 174, in main() File "testing.py", line 170, in main testing(net, test_loader, device) File "testing.py", line 86, in testing outputs = model(inputs) File "/home/research/anaconda3/envs/pulp-dronet-v2/lib/python3.8/site-packages/torch/nn/modules/module.py", line 722, in _call_impl result = self.forward(*input, *kwargs) File "/home/research/Documents/Pytorch/Nano_Drone/pulp-dronet-master/pulp-dronet-v2/model/dronet_v2_nemo_dory.py", line 90, in forward x = self.fc(x) File "/home/research/anaconda3/envs/pulp-dronet-v2/lib/python3.8/site-packages/torch/nn/modules/module.py", line 722, in _call_impl result = self.forward(input, **kwargs) File "/home/research/anaconda3/envs/pulp-dronet-v2/lib/python3.8/site-packages/torch/nn/modules/linear.py", line 91, in forward return F.linear(input, self.weight, self.bias) File "/home/research/anaconda3/envs/pulp-dronet-v2/lib/python3.8/site-packages/torch/nn/functional.py", line 1676, in linear output = input.matmul(weight.t()) RuntimeError: mat1 dim 1 must match mat2 dim 0

LorenzoLamberti94 commented 3 months ago

the issue is not clear as there is no description of the problem, just a terminal output