-
Notifications
You must be signed in to change notification settings - Fork 72
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
RuntimeError: bool value of Tensor with more than one value is ambiguous #35
Comments
Could you please print the value of |
因为我想边训练的不仅能打印mAP,也能打印rank-1,,故对此处作了更改 cmc_scores1, mAP_1 = evaluator_1_ema.evaluate(test_loader_target, dataset_target.query, dataset_target.gallery, cmc_flag=True) ,但是在之前的机器上是没有问题的。 Compute mean AP
|
您好,可能由于自己迁移代码的时候有的地方没改,return 返回未接收正确的参数,我会将这个问题自己关闭。 |
您可以把这个issues删除了!非常感谢您~ |
您好,之前在其他机器上没有出现过这个问题,然后在学校的机器上Titan V 上运行发现这个错误,网上也搜索了好多信息,也没有解决这个问题,请问您可以帮助解决这个问题吗?非常感谢您,期待您的回复!!
Traceback (most recent call last):
File "examples/mmt_train_kmeans.py", line 294, in
main()
File "examples/mmt_train_kmeans.py", line 138, in main
main_worker(args)
File "examples/mmt_train_kmeans.py", line 234, in main_worker
is_best = (mAP_1 > best_mAP) or (mAP_2 > best_mAP)
RuntimeError: bool value of Tensor with more than one value is ambiguous
The text was updated successfully, but these errors were encountered: