TorchSeg icon indicating copy to clipboard operation
TorchSeg copied to clipboard

BiSeNet mean IoU for R18

Open ms-krajesh opened this issue 6 years ago • 20 comments

Hi!, I am only able to get mean IoU: 70.446% for BiSeNet, when R18 is used as a backbone. I have trained BiSeNet on CityScape leftImg8bit folder (used gtFine folder for GT's) with train input image dimensions 1024x1024. The achieved results are still little below than the results you mentioned on GitHub repository page (Mean IoU : 74.6). Did you have used network parameters other than mentioned in the config file uploaded on the GitHub repository? Thanks for your time.

ms-krajesh avatar Feb 18 '19 04:02 ms-krajesh

I get a similar mean IoU 69.688% with R18. I train the model from scratch because the pretrained R18 model is not released. Can you share the pretrained model?

daodaofr avatar Feb 19 '19 02:02 daodaofr

Personally I think you should use OHEM loss for training which his paper didn't mention.

lxtGH avatar Feb 19 '19 04:02 lxtGH

Personally I think you should use OHEM loss for training which his paper didn't mention.

Thank you but I've already utilized OHEM.

daodaofr avatar Feb 19 '19 06:02 daodaofr

Maybe you can try large cropsize

lxtGH avatar Feb 19 '19 06:02 lxtGH

@msc-rajesh Which experiments did you use, cityscapes.bisenet.R18.speed or cityscapes.bisenet.R18? I will re-run it to check the performance.

yu-changqian avatar Feb 20 '19 08:02 yu-changqian

@ycszen I run cityscapes.bisenet.R18 with one GPU. I get mean IoU 69.688%.

daodaofr avatar Feb 20 '19 08:02 daodaofr

@daodaofr I have re-run the cityscapes.bisenet.R18 experiment. The performance is normal. I run this experiment on 4 GPUs. Besides, I think maybe you train from scratch resulting in the performance drop. You can load the official R18 model in Pytorch before I release the pre-trained model.

yu-changqian avatar Feb 20 '19 09:02 yu-changqian

@daodaofr : I ran cityscape.bisenet.R18 experiment on 4 GPU's having product name NVidia GeForce GTX 1080 Ti. I have trained BiSeNet from scratch on CityScape leftImg8bit folder (used "labelTrainIds" instead of "labelIds" from gtFine folder for GT's) with train input image dimensions 1024x1024. I got mean IoU value 70.446% on validation folder of the CityScape dataset.

ms-krajesh avatar Feb 21 '19 03:02 ms-krajesh

@ycszen @ms-krajesh I run the model from official R18 model in Pytorch, and I got 72.753% mean IoU. I think gap is from the pretrained model.

daodaofr avatar Feb 25 '19 03:02 daodaofr

@daodaofr : Did you used "labelTrainIds" or "labelIds" for GT's?

ms-krajesh avatar Feb 26 '19 03:02 ms-krajesh

@ms-krajesh I used labelIds

daodaofr avatar Feb 27 '19 02:02 daodaofr

@daodaofr but the class number in labelids is 33, which is not corresponding with the code, do you have any other processes?

chenxiaoyu523 avatar Feb 28 '19 09:02 chenxiaoyu523

@chenxiaoyu523 Yes, I set the label of invalid classes to ignore_index.

daodaofr avatar Mar 04 '19 07:03 daodaofr

@ycszen I run your R18.speed and R18 with 4 1080Ti. the accuracies for last epoch models are 74.2 and 75.2. which is a little bit less than your reported accuracy (74.6 and 76.3). Where should be the problem? shall I check the acc for each epoch?

jiaxue-ai avatar Mar 27 '19 18:03 jiaxue-ai

Can someone upload a pretrained model please ?

alexanderfrey avatar Apr 02 '19 17:04 alexanderfrey

I can't get the right result, and the loss not converge with Bisenet. I don't know why ,can you give me some Suggest

haitaobiyao avatar Jun 19 '19 09:06 haitaobiyao

@jiaxue1993 Maybe you can evaluate the models of the last ten epochs.

yu-changqian avatar Aug 01 '19 07:08 yu-changqian

@alexanderfrey The pre-trained models have released except the Xception39.

yu-changqian avatar Aug 01 '19 07:08 yu-changqian

@haitaobiyao Could you give more details.

yu-changqian avatar Aug 01 '19 07:08 yu-changqian

Hi!, I download the pretrained model(R18)and train model from the link you provided,but I am only able to get mean IoU: 65.2% ,Is there any problem with the parameter setting?

zhenyouwei avatar Nov 07 '19 08:11 zhenyouwei