-
Notifications
You must be signed in to change notification settings - Fork 211
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
Frequently Asked Questions #109
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Hello, When I run the pip install -e . again, Im getting the following warning & error: warning: nvcc warning : incompatible redefinition for option 'std', the last value of this option was used (I think this relates to one argument -std=c++17) error: /.../miniconda3/envs/fps-bm/lib/python3.10/site-packages/torch/include/c10/util/Half.h(89): error: identifier "_castf32_u32" is undefined
Did you ever encounter this and do you know a fix? |
Hello @hg6185 Seems like dcn_v3 operator not suitable for this environment, you can try this two ways:
this is InternImage's official repo: https://github.com/OpenGVLab/InternImage Seems like they already have python package for this operator: https://github.com/OpenGVLab/InternImage/releases/tag/whl_files We will update detrex recently to remove such compiling process for this operator |
Thanks for the quick reply @rentainhe! |
I'm sorry to hear that. I suggest you could try lowering the PyTorch version to see if it helps to bypass this issue. @hg6185 |
Hi again @rentainhe , |
Would you like to add this situation in our |
Hi @rentainhe , I can add this, but what do you mean? :D |
Yes, I was wondering if it's better to add it to somewhere or just keep our conversation here to help others who have met the same problem |
hi @rentainhe In order to build Detectron2 and Detrex, I used a miniconda env with CUDA 11.3.1 and gcc 9.4.0. I use PyTorch 3.8 which can be installed by this command (I post it here, because you will have to search for it since it's older): Don't forget the Nvidia Toolkit matching with your version. For instance, If you get an error with pycocotools, do pip uninstall and conda install (from conda forge) |
Thank you so much for summarizing this! It's really useful! |
We keep this issue open to collect frequently asked questions and their solutions from the users.
Feel free to leave your comment here if you find any frequent issues and have ways to help others to solve them.
Notes
dataloader.train.total_batch_size
for training as mentioned in this issue: Convergence problem on coco with less gpus. #219FAQs
1. ImportError: Cannot import 'detrex._C', therefore 'MultiScaleDeformableAttention' is not available.
detrex need CUDA runtime to build the
MultiScaleDeformableAttention
operator. In most cases, users do not need to specify this environment variable if you have installed cuda correctly. The default path of CUDA runtime isusr/local/cuda
. If you find yourCUDA_HOME
isNone
. You may solve it as follows:export CUDA_HOME=/path/to/cuda-11.3/
CUDA_HOME
.CUDA_HOME
, rebuild detrex again by runningpip install -e .
You can also refer to these issues for more details: #98, #85
2. How to not filter empty annotations during training.
There're three ways for you to not filter empty annotations during training.
You can also refer to these issues for more details: #78 (comment)
3. RuntimeError: The server socket has failed to listen on any local network address. The server socket has failed to bind to [::]:54980 (errno: 98 - Address already in use).
This means that the process you started earlier did not exit correctly, there's two solution:
--dist-url
4. DINO CPU inference
Please refer to this PR #157 for more details5. Training coco-like custom dataset
Please refer to this PR #186 for more details.The text was updated successfully, but these errors were encountered: