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

在运行dtu_test.sh时出现test error #40

Open
wln19 opened this issue Oct 18, 2023 · 2 comments
Open

在运行dtu_test.sh时出现test error #40

wln19 opened this issue Oct 18, 2023 · 2 comments

Comments

@wln19
Copy link

wln19 commented Oct 18, 2023

Traceback (most recent call last):
File "test.py", line 435, in
save_depth(testlist)
File "test.py", line 133, in save_depth
save_scene_depth([scene])
File "test.py", line 162, in save_scene_depth
outputs = model(sample_cuda["imgs"], sample_cuda["proj_matrices"], sample_cuda["depth_values"])
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/parallel/data_parallel.py", line 153, in forward
return self.module(*inputs[0], **kwargs[0])
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/hy-tmp/Transmvsnet/models/TransMVSNet.py", line 161, in forward
features.append(self.feature(img))
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/hy-tmp/Transmvsnet/models/module.py", line 486, in forward
out = self.out1(intra_feat)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/container.py", line 117, in forward
input = module(input)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/hy-tmp/Transmvsnet/models/dcn.py", line 71, in forward
return deform_conv2d(
TypeError: deform_conv2d() got an unexpected keyword argument 'mask'

@wtyuan96
Copy link
Collaborator

deform_conv2d 函数是从 torchvision import 的,参见 link,请检查一下 deform_conv2d 是否被正确 import,以及 torchvision 的版本是否正确。

@jinzhenmu
Copy link

您解决了吗?

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

3 participants