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

ValueError: PENet on the Kitti benchmark suite #41

Open
AjinkyaBankar opened this issue May 8, 2021 · 1 comment
Open

ValueError: PENet on the Kitti benchmark suite #41

AjinkyaBankar opened this issue May 8, 2021 · 1 comment

Comments

@AjinkyaBankar
Copy link

AjinkyaBankar commented May 8, 2021

Hello,
I want to find the eigenvalues and eigenvectors for the PENet on the Kitti benchmark suite given here. I am using a pre-trained network with 'pe.pth.tar' files provided in the repo. I get the following error when I apply the compute_hessian_eigenthings(model, val_loader, depth_criterion, num_eigenthings=1, full_dataset=False, mode="power_iter", use_gpu=True, fp16=False,):

Traceback (most recent call last):

  File "/home/ajinkya/PyTorch_Codes_2/my_main.py", line 325, in <module>
    eigenvals, eigenvecs = compute_hessian_eigenthings(

  File "/home/ajinkya/miniconda3/lib/python3.8/site-packages/hessian_eigenthings/__init__.py", line 68, in compute_hessian_eigenthings
    eigenvals, eigenvecs = deflated_power_iteration(

  File "/home/ajinkya/miniconda3/lib/python3.8/site-packages/hessian_eigenthings/power_iter.py", line 43, in deflated_power_iteration
    eigenval, eigenvec = power_iteration(

  File "/home/ajinkya/miniconda3/lib/python3.8/site-packages/hessian_eigenthings/power_iter.py", line 108, in power_iteration
    new_vec = utils.maybe_fp16(operator.apply(vec), fp16) - momentum * prev_vec

  File "/home/ajinkya/miniconda3/lib/python3.8/site-packages/hessian_eigenthings/hvp_operator.py", line 65, in apply
    return self._apply_batch(vec)

  File "/home/ajinkya/miniconda3/lib/python3.8/site-packages/hessian_eigenthings/hvp_operator.py", line 73, in _apply_batch
    grad_vec = self._prepare_grad()

  File "/home/ajinkya/miniconda3/lib/python3.8/site-packages/hessian_eigenthings/hvp_operator.py", line 113, in _prepare_grad
    all_inputs, all_targets = next(self.dataloader_iter)

ValueError: too many values to unpack (expected 2)

Please help to resolve the problem. Thanks.

@jiachengc
Copy link

same problem, have you solve 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