Pytorch 1.6 and lib knn build with cuda 10.2#170
Conversation
|
Hello, I have a question about this. When I applied the changes and ran the commands, I still get an error saying that File "./tools/train.py", line 140, in main Is it possible to get some help with this? |
|
Mmm, are you sure you are using pytorch 1.6? The error seems to point to a non existing Also, are you using LineMOD or YCB? |
|
Hi! That's weird... I just double-checked my pytorch version and I'm using 1.6.0. I'm using LineMOD right now. Again, thank you so much, |
|
TBH I haven't checked with LineMOD, I tested the code with YCB so maybe there's a problem there. I'll try to test in LineMOD if I have some extra time |
|
Hmm... Ok, I'll try with YCB too. Let me know if you get time to try it! Thank you! |
|
great |
|
Hello, i followed step by step the instructions provided, but when the .egg file is generated it does not contain the file named "knn_pytorch.cpython-36m-x86_64-linux-gnu.so", but instead it's created a file named "knn_pytorch.so" that weights 3.5MB; i tried to rename it so to verify if it was just an error related to the name, but if i use it as .so file it returns me an error: unrecognized statement inside the .so file. I'm using pytorch 1.0.0, torchvision 0.2.2 and python 2.7.17 on an ubuntu environment.
What am i doing wrong? Thank you! |
|
loss_refiner.py should be modified similarly to loss.py |
I changed the Pytorch-1.0 branch to make it work with Pytorch 1.6.0 and CUDA 10.2 (on python 3.6.11).
To install you'll need to:
The changes are:
THCState_getCurrentStream(state)is deprecated (see here and here)KNearestNeighborfrom /lib/knn/init.py and /lib/loss.py accordingly to solve the issue Legacy autograd function with non-static forward method is deprecated following the documentation