stevenygd / PointFlow

PointFlow : 3D Point Cloud Generation with Continuous Normalizing Flows
https://www.guandaoyang.com/PointFlow/
MIT License
720 stars 101 forks source link

ModuleNotFoundError: No module named 'metrics.StructuralLosses' #12

Closed leno0903 closed 4 years ago

leno0903 commented 4 years ago

File "train.py", line 273, in main() File "train.py", line 269, in main main_worker(args.gpu, save_dir, ngpus_per_node, args) File "train.py", line 192, in main_worker validate(test_loader, model, epoch, writer, save_dir, args, clf_loaders=clf_loaders) File "/home/leon/a312/xhs/point-cloud/PointFlow/utils.py", line 372, in validate save_dir=save_dir) File "/home/leon/a312/xhs/point-cloud/PointFlow/utils.py", line 211, in validate_conditioned from metrics.evaluation_metrics import EMD_CD File "/home/leon/a312/xhs/point-cloud/PointFlow/metrics/evaluation_metrics.py", line 9, in from .pytorch_structural_losses.match_cost import match_cost File "/home/leon/a312/xhs/point-cloud/PointFlow/metrics/pytorch_structural_losses/match_cost.py", line 3, in from metrics.StructuralLosses.StructuralLossesBackend import ApproxMatch, MatchCost, MatchCostGrad ModuleNotFoundError: No module named 'metrics.StructuralLosses'

AntheaLi commented 4 years ago

I have the same issue. Tried building the metrics with pytorch1.0.1, pytorch1.3.1, pytorch1.4.0. and None of them works.

leno0903 commented 4 years ago

I solved this problem my env:pytorch1.0.1, cuda10.0 your problem maybe enviroment's probelm, please check your env

------------------ 原始邮件 ------------------ 发件人: "AntheaLi"<notifications@github.com>; 发送时间: 2020年7月7日(星期二) 上午9:24 收件人: "stevenygd/PointFlow"<PointFlow@noreply.github.com>; 抄送: "497208386"<497208386@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [stevenygd/PointFlow] ModuleNotFoundError: No module named 'metrics.StructuralLosses' (#12)

I have the same issue. Tried building the metrics with pytorch1.0.1, pytorch1.3.1, pytorch1.4.0. and None of them works.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

stevenygd commented 4 years ago

This is because the evaluation losses aren't compiled successfully. Try to check your environment and fix the compilation error.

leno0903 commented 4 years ago

many thanks