Closed shivamsnaik closed 2 years ago
Hi,I have the same problem as you. Have you solved it?
Hi,I have the same problem as you. Have you solved it?
i have the same problem, have you solved it?
@Houseqin @MajorityRreport Hi. Yes I did solve the issue.
The weight decay is not passed to Pytorch due to which the above error occurs.
Add the following lines to your config YAML file to solve this issue:
cfg.SOLVER.WEIGHT_DECAY_BIAS = <desired_value>
This was causing the issue in my case. Also, if cfg.SOLVER.WEIGHT_DECAY
is missing in your config, do include that.
It would surely solve the issue.
@Houseqin @MajorityRreport Hi. Yes I did solve the issue.
The weight decay is not passed to Pytorch due to which the above error occurs. Add the following lines to your config YAML file to solve this issue:
cfg.SOLVER.WEIGHT_DECAY_BIAS = <desired_value>
This was causing the issue in my case. Also, if
cfg.SOLVER.WEIGHT_DECAY
is missing in your config, do include that.It would surely solve the issue.
Thank you very much!!
@MajorityRreport Glad to help. Let me know if it still throws the same error.
@MajorityRreport Glad to help. Let me know if it still throws the same error.
it also has the same problem with the official config YAML dyhead_swint_atss_fpn_2x_ms.yaml
,although with adding cfg.SOLVER.WEIGHT_DECAY_BIAS
and cfg.SOLVER.WEIGHT_DECAY
@Houseqin I have never seen this error before. Is it hindering with normal operation?.
If yes, you can try replicating my versions for CUDA, Pytorch, etc that Ive mentioned in the issue description. It works perfectly for me after the mentioned changes.
@Houseqin I have never seen this error before. Is it hindering with normal operation?.
If yes, you can try replicating my versions for CUDA, Pytorch, etc that Ive mentioned in the issue description. It works perfectly for me after the mentioned changes.
I have found it a compile problem, and fix the issue "nvcc not found" or "Not compiled with GPU support" or "Detectron2 CUDA Compiler: not available"
according to https://detectron2.readthedocs.io/en/latest/tutorials/install.html#common-installation-issues
Thank you most sincerely.
cfg.SOLVER.WEIGHT_DECAY_BIAS
andcfg.SOLVER.WEIGHT_DECAY
hi could you please tell me what value shoud be set to this decay? Thanks.
WEIGHT_DECAY: 0.05 WEIGHT_DECAY_BIAS: 0.01 Sorry,I'm just a beginner. I set it like this(a random number),and the network could run .But maybe the network didn't match my data set, so it didn't work well. I hope it helps
Hello, I would like to ask if anyone is facing the below issue:
TypeError: add(): argument 'alpha' must be Number, not NoneType
The steps I followed are:
python -m pip install -e DynamicHead
.register_coco_instance
def setup(args)
with custom dataset name and the number of classes:python train_net.py --config configs/dyhead_r50_rcnn_fpn_1x.yaml --num-gpus 1
.The detailed error message goes like this:
Environment Details: sys.platform = linux Python = 3.8.12 numpy = 1.21.2 detectron2 = 0.6 CUDA = 11.4 PyTorch = 1.10.0 torchvision = 0.11.0a0 fvcore = 0.1.5.post20211023 iopath = 0.1.9 cv2 = 4.5.4
Kindly request for assistance if you are aware of the solution.