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

About test #12

Open
Jackye001 opened this issue Dec 11, 2019 · 2 comments
Open

About test #12

Jackye001 opened this issue Dec 11, 2019 · 2 comments

Comments

@Jackye001
Copy link

@callmeray
I have met some problem in testing ,I dont know whether you have met the problem

2019-12-11 13:51:42,269 pointmvsnet.utils.checkpoint INFO: Loading checkpoint from outputs/dtu_wde3/model_pretrained.pth
flow: 0
/home/smartcity/yechunkai3.6/lib/python3.6/site-packages/torch/nn/functional.py:2423: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
"See the documentation of nn.Upsample for details.".format(mode))
flow: 1
flow: 2
Traceback (most recent call last):
File "pointmvsnet/test.py", line 141, in
main()
File "pointmvsnet/test.py", line 137, in main
test(cfg, output_dir, isCPU=isCPU)
File "pointmvsnet/test.py", line 103, in test
isCPU=isCPU,
File "pointmvsnet/test.py", line 69, in test_model
preds = model(data_batch, image_scales, inter_scales, isFlow=True, isTest=True)
File "/home/smartcity/yechunkai3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/smartcity/yechunkai3.6/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 143, in forward
outputs = self.parallel_apply(replicas, inputs, kwargs)
File "/home/smartcity/yechunkai3.6/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 153, in parallel_apply
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
File "/home/smartcity/yechunkai3.6/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 83, in parallel_apply
raise output
File "/home/smartcity/yechunkai3.6/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 59, in _worker
output = module(*input, **kwargs)
File "/home/smartcity/yechunkai3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
TypeError: forward() missing 3 required positional arguments: 'data_batch', 'img_scales', and 'inter_scales'

@Jackye001
Copy link
Author

Jackye001 commented Dec 11, 2019

@callmeray
I have already solved the problem above , the problem is caused by using multiple GPU.
I add os.environ['CUDA_VISIBLE_DEVICES']='0' in the Test script ,then it runs successfully.

@cuge1995
Copy link

@callmeray
I have already solved the problem above , the problem is caused by using multiple GPU.
I add os.environ['CUDA_VISIBLE_DEVICES']='0' in the Test script ,then it runs successfully.

Can Test script get the results of the paper ? like acc and comp

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