-
Notifications
You must be signed in to change notification settings - Fork 157
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
The accuracy is 0 #76
Comments
Did you update of the registered coco dataset? And what parameters and its values, you used in config file? |
The following are the parameters we used in training without any modification. I don't quite understand what you mean by "the registered coco dataset" /root/anaconda3/envs/detectron2/bin/python3.6 /jmx/centermask2/train_net.py --config-file configs/centermask/centermask_lite_V_19_eSE_FPN_ms_4x.yaml --num-gpus 4 sys.platform linux PyTorch built with:
[12/08 18:45:27 detectron2]: Command line arguments: Namespace(config_file='configs/centermask/centermask_lite_V_19_eSE_FPN_ms_4x.yaml', dist_url='tcp://127.0.0.1:49152', eval_only=False, machine_rank=0, num_gpus=4, num_machines=1, opts=[], resume=False) MODEL: [12/08 18:45:27 detectron2]: Running with full config:
) |
@jiameixia1202 I mean by "the registered coco dataset" you use coco dataset not custom dataset. You can debug and check the pre_nms_top_n value in ''centermask/modeling/fcos/fcos_outputs/'
When cfg.SCORE_THRESH_TEST = 0.05 then self.pre_nms_thresh = 0.05. This value may cause of make pre_nms_top_n empty and make zero accuracy. So, check if pre_nms_top_n is tensor([0, 0] or not. |
I use the registered coco dataset, and I check the pre_ nms_ top_ n is tensor([0, 0] . It is normal for me to test with the weight provided by you, but when I train myself, the accuracy is 0 (without modifying the network, data and parameters) |
cfg.SCORE_THRESH_TEST = 0.05 then self.pre_nms_thresh = 0.05 How do I modify these two parameters? |
You can modify it through config file ''configs/centermask/centermask_lite_V_19_eSE_FPN_ms_4x.yaml' under MODEL and FCOS. If FCOS not exist, add it and modify the value 0.05 of INFERENCE_TH_TRAIN and INFERENCE_TH_TEST. Like this: |
I'm sorry, there may be something wrong with what I just said, |
can we change the optimizer to Adam? |
My server does not have 8 GPUs. When I use 4 GPUs for training (without any modification to the network), I just change num-gpus to 4. After training, the segmentation accuracy is always 0.00. Do you need to modify other parameters?
The text was updated successfully, but these errors were encountered: