Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PCN use emd:In module.py assert(n == m),return AssertionError #28

Open
zhaoxiao64 opened this issue May 24, 2022 · 2 comments
Open

Comments

@zhaoxiao64
Copy link

No description provided.

@zhaoxiao64 zhaoxiao64 changed the title when Iemd_module.py assert(n == m) PCNuesd emd:_module.py assert(n == m) May 24, 2022
@zhaoxiao64 zhaoxiao64 changed the title PCNuesd emd:_module.py assert(n == m) PCN uesd emd:In module.py assert(n == m),return AssertionError May 24, 2022
@zhaoxiao64 zhaoxiao64 changed the title PCN uesd emd:In module.py assert(n == m),return AssertionError PCN use emd:In module.py assert(n == m),return AssertionError May 24, 2022
@zhaoxiao64 zhaoxiao64 reopened this May 24, 2022
@zhaoxiao64
Copy link
Author

Traceback (most recent call last):
File "/home/zhao/doc/MVP_Benchmark-main/completion/train.py", line 219, in
train()
File "/home/zhao/doc/MVP_Benchmark-main/completion/train.py", line 140, in train
out2, loss2, net_loss = net(inputs, gt, alpha=alpha)
File "/home/zhao/anaconda3/envs/mvp/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/zhao/anaconda3/envs/mvp/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 153, in forward
return self.module(*inputs[0], **kwargs[0])
File "/home/zhao/anaconda3/envs/mvp/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/zhao/doc/MVP_Benchmark-main/completion/models/pcn.py", line 96, in forward
loss1 = calc_emd(out1, gt)
File "/home/zhao/doc/MVP_Benchmark-main/completion/model_utils.py", line 83, in calc_emd
dist, _ = emd_loss(output, gt, eps, iterations)
File "/home/zhao/anaconda3/envs/mvp/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "../utils/metrics/EMD/emd_module.py", line 88, in forward
return emdFunction.apply(input1, input2, eps, iters)
File "../utils/metrics/EMD/emd_module.py", line 47, in forward
assert(n == m)
AssertionError

进程已结束,退出代码1

@paul007pl
Copy link
Owner

EMD loss requires the "input point cloud" and the "GT point cloud" to have the same number of points.
You may check the emd loss here:
http://robotics.stanford.edu/~rubner/papers/rubnerIjcv00.pdf

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants