Training problem: During the training of sam-hq, the iou output of the val set is very high, 0.98; but in eval mode, the iou of the val set is only 0.48 #124
During the training of sam-hq, the iou output of the val set is very high, 0.98; but in eval mode, the iou of the val set is only 0.48.
The sam-hq that continues to be trained under this code is very poor and does not have good segmentation capabilities. What is the reason?
problem
During the training of sam-hq, the iou output of the val set is very high, 0.98; but in eval mode, the iou of the val set is only 0.48. The sam-hq that continues to be trained under this code is very poor and does not have good segmentation capabilities. What is the reason?
training instructions
python -m torch.distributed.launch --nproc_per_node=1 train.py --checkpoint ./pretrained_checkpoint/sam_vit_h_4b8939.pth --model-type vit_h --output work_dirs/hq_sam_h
training log
evaluation instructions
python -m torch.distributed.launch --nproc_per_node=1 train.py --checkpoint ./pretrained_checkpoint/sam_vit_h_4b8939.pth --model-type vit_h --output work_dirs/hq_sam_h_eval --eval --restore-model work_dirs/hq_sam_h/epoch_11.pth
evaluation log