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 'point_rend' #2
Comments
To predict segmentations, you need to clone detectron2 and replace Please see the updated instruction |
Thanks for the reply. I've also checked the torch and CUDA versions. |
This line adds the point_rend module to the python path. Could you check whether 'path-to-detectron2-folder/projects/PointRend/' exists? |
I updated the way of importing point_rend module to be independent of the detectron repo, but you still need to pass the repo path in order to read the model config files correctly. |
'path-to-detectron2-folder/projects/PointRend/ When I ran the updated code, I got the following error. Traceback (most recent call last): |
Are you able to I guess you may have cloned detectron2 to the root folder of lasr, but did not pass detectron2 dir relative to where the command is executed. |
I couldn't run "ls". I'm sorry. |
If you cloned detectron2 to ./lasr/detectron2, you could cd into ./preprocess, and then run The point was to pass the relative path of detectron2 wrt the current folder to mask.py. |
Thank you very much. By the way, where would I have cloned dentron2 to run with the original code? Also, the first "log" and "tmp" files I created still do not contain anything, is that correct? "python mask.py pika . After running "python mask.py pika ... /detectron2", the segmentation image is not generated. |
It generates data in subfolders under lasr-root/database/DAVIS/ |
Thank you! The problem has been solved. |
I ran
python mask.py pika path-to-detectron2-root; cd -
The following error has occurred. How can I solve this problem?
Traceback (most recent call last):
File "mask.py", line 45, in
import point_rend
ModuleNotFoundError: No module named 'point_rend'
/home/shiori/lasr-main
The text was updated successfully, but these errors were encountered: