-
Notifications
You must be signed in to change notification settings - Fork 65
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
ModuleNotFoundError: No module named 'lib.afm_op.CUDA' #4
Comments
I have the same issue. |
The conda will add paths into your virtual environment to solve this issue. Please read the INSTALL.md carefully for this issue. |
Hi, I also met the same problem. And when I run make under <AFM_root>/lib, my output has this error: |
Yes. Did you check your compilers (including g++ and CUDA)? |
I'm using gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04): The CUDA driver version is 10.0. The deviceQuery result is PASS. And the pytorch is installed with cudatoolkit=10.0 |
Could you share all of the output after running the make command? |
cd afm_op; python setup.py build_ext --inplace; rm -rf build; cd ../../ |
The problem seems to be this error. Did you change the code? |
Hi, I didn't change any. |
I guess the problem is caused by gcc-7.3. I cannot compile with gcc-7.3 either but it works for gcc-5.4. I need more time to fix this problem. |
I have tried to compile with gcc-5.5, it also gave the same error. |
I have some problems, when i make ,the warning is , " skipping 'squeeze.cpp' Cython extension (up-to-date)" |
Hi, you can ignore the warnings. Your output is correct and the libraries have been compiled successfully. |
It is weird. Did you try to compile the lib on other computers? |
thank you |
Hi, may I ask, did you also use gcc-5.4 to compile? |
No, I only tried in google colab. Could that be the source of the problem? |
是的, 5.4.0 |
can i use python3.7? |
I have the same issue, and it didn't work as the INSTALL.md .Otherwise,if i change 'from .CUDA import afm' to 'from .cuda import afm', the problem changes to 'ImportError: cannot import name 'afm''. I don't how to deal with it . |
After I changed to AWS GPU, the problem solved. |
RuntimeError: CUDA out of memory. Tried to allocate 25.00 MiB (GPU 0; 3.94 GiB total capacity; 3.14 GiB already allocated; 21.56 MiB free; 634.00 KiB cached) do you have this problem?how to deal with it? |
You cannot change 'from .CUDA import afm' to 'from .cuda import afm'. The afm_op.CUDA is a compiled library for attraction field map generating. |
So, the problem is caused by colab? |
Looks like colab can't compile the files when files are located in the mapped google drive path. |
hey, could you explain more details for how to solve this problem? Really thanks. |
I get the error when I make the lib.
Could you give any help? |
|
Sorry for replying you late. Did you use the conda environment? |
No, I didn't use conda environment, I just use pip3 install to set the environment. It looks well now. I'll download the dataset and try it next. Really thanks for your work! |
@cherubicXN Your code runs OK with above environment. |
Dear, you compile the makefile in Ubuntu or in Windows? I try to complie your code in window10, I install Wingw32 to complie the makefile, and also appear the error above. |
Hi, thanks to your work, i want to test the value of Precision and recall, but the code have nothing about it .Do you have the corresponding code? |
Hi, thanks to your work, i want to test the value of Precision and recall, but the code have nothing about it .Do you have the corresponding code? |
Hey, I am getting the same issue here after executing INSTALL.md without errors (seemly like), the following are details for
|
I noticed this gets fixed easily if I'm building the library on a CUDA compatible PC |
No description provided.
The text was updated successfully, but these errors were encountered: