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

test #25

Open
LiuJinhui123 opened this issue Jun 30, 2021 · 1 comment
Open

test #25

LiuJinhui123 opened this issue Jun 30, 2021 · 1 comment

Comments

@LiuJinhui123
Copy link

fastmvsnet.utils.checkpoint INFO: Loading checkpoint from /home/camellia/fastMVSNet-master/outputs/pretrained.pth
Traceback (most recent call last):
File "/home/camellia/fastMVSNet-master/fastmvsnet/test.py", line 141, in
main()
File "/home/camellia/fastMVSNet-master/fastmvsnet/test.py", line 137, in main
test(cfg, output_dir, isCPU=isCPU)
File "/home/camellia/fastMVSNet-master/fastmvsnet/test.py", line 98, in test
test_model(model,
File "/home/camellia/fastMVSNet-master/fastmvsnet/test.py", line 63, in test_model
for iteration, data_batch in enumerate(data_loader):
File "/home/camellia/anaconda3/envs/my/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 517, in next
data = self._next_data()
File "/home/camellia/anaconda3/envs/my/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 557, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/camellia/anaconda3/envs/my/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/camellia/anaconda3/envs/my/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/camellia/fastMVSNet-master/fastmvsnet/../fastmvsnet/dataset.py", line 271, in getitem
h_scale = float(self.height) / images[0].shape[0]
AttributeError: 'NoneType' object has no attribute 'shape'

@niujinshuchong
Copy link
Contributor

Hi, please refer to #2

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