If you do not know the root cause of the problem, please post according to this template:
Instructions To Reproduce the Issue:
Hello, I'm running the CondInst model which is based on detectron2. The program web is
https://github.com/aim-uofa/AdelaiDet
When I was testing, I wanted to see how the model worked, but the code I wrote in the forward() method of <class 'adet.modeling.condinst.condinst.CondInst'> such as "exit()" and "print()" didn't execute. I suspect this is related to the registration mechanism of detectron2. what should I do ?
2. What exact command you run:
no
3. __Full logs__ or other relevant observations:
```
## Expected behavior:
project stop and exit.
## Environment:
detectron2 0.2.1
fvcore 0.1.1.post20200716
torch 1.5.0
torchvision 0.6.0a0+82fd1c8
Paste the output of the following command:
```
wget -nc -nv https://github.com/facebookresearch/detectron2/raw/main/detectron2/utils/collect_env.py && python collect_env.py
```
If your issue looks like an installation issue / environment issue,
please first check common issues in https://detectron2.readthedocs.io/tutorials/install.html#common-installation-issues
If you do not know the root cause of the problem, please post according to this template:
Instructions To Reproduce the Issue:
Hello, I'm running the CondInst model which is based on detectron2. The program web is https://github.com/aim-uofa/AdelaiDet When I was testing, I wanted to see how the model worked, but the code I wrote in the forward() method of <class 'adet.modeling.condinst.condinst.CondInst'> such as "exit()" and "print()" didn't execute. I suspect this is related to the registration mechanism of detectron2. what should I do ?
Check https://stackoverflow.com/help/minimal-reproducible-example for how to ask good questions. Simplify the steps to reproduce the issue using suggestions from the above link, and provide them below: