Code Monkey home page Code Monkey logo

Comments (2)

zhaoxiao64 avatar zhaoxiao64 commented on August 10, 2024

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

from mvp_benchmark.

paul007pl avatar paul007pl commented on August 10, 2024

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

from mvp_benchmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.