/usr/bin/ld: cannot find -lmake_pytorch collect2: error: ld returned 1 exit status error: command 'g++' failed with exit status 1
InfyIT-fa opened this issue · comments
Hi,
I have built "StructuralLoss" successfully. But for the evaluation_metrics.py, I found the problem that it can not import " from evaluation.StructuralLosses.StructuralLossesBackend import ApproxMatch, MatchCost, MatchCostGrad" in match_cost.py ( folder: pytorch_structural_losses) because "StructuralLossesBackend" is not created yet.
So, I tried to go to "pytorch_structural_losses" folder and run the "setup.py" file using the following command:
python setup.py build_ext
But getting errors. ( I have attached a screenshot) . I tried both python 3.7 and 3.8 but getting the same errors.
I tried multiple times but could not able to find it. Please let me know how to fix this issue?
see if this helps - chrischoy/MakePytorchPlusPlus#1
Hi all,
I have uploaded a version that doesn't require CUDA extensions. It depends ONLY on native pytorch operations.
The version also fixes the multi-processing bug in Dataloader.
You may try this new version.
Sorry for the late update.
Thanks!