You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
If you meed some convergence problem with less gpus, it's better to set a larger batch-size (batch-size=8/16) by setting dataloader.train.total_batch_size for training as mentioned in this issue: Convergence problem on coco with less gpus. #219
FAQs
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 is usr/local/cuda. If you find your CUDA_HOME is None. You may solve it as follows:
If you've already installed CUDA runtime in your environments, specify the environment variable (here we take cuda-11.3 as an example):
export CUDA_HOME=/path/to/cuda-11.3/
If you do not find the CUDA runtime in your environments, consider install it following the CUDA Toolkit Installation to install CUDA. Then specify the environment variable CUDA_HOME.
After setting CUDA_HOME, rebuild detrex again by running pip 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.
# your config.pydataloader=get_config("common/data/coco_detr.py").dataloader# modify dataloader config# not filter empty annotations during trainingdataloader.train.dataset.filter_empty=False
modify your training scripts to override the config.
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:
4. DINO CPU inference
Please refer to this PR #157 for more details
5. Training coco-like custom dataset
Please refer to this PR #186 for more details.
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_sizefor 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
MultiScaleDeformableAttentionoperator. 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_HOMEisNone. 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-urlpython tools/train_net.py \ --config-file path/to/config.py \ --num-gpus 8 \ --dist-url tcp://127.0.0.1:12345 \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.