pkuCactus / BDCN

The code for the CVPR2019 paper Bi-Directional Cascade Network for Perceptual Edge Detection
MIT License
341 stars 71 forks source link

Cannot reproduce the reported F-score #45

Open ForawardStar opened 3 years ago

ForawardStar commented 3 years ago

Can anyone successfully reproduce the results reported in this paper?My python environment is python 3.6, and train the model using the augmented dataset downloaded from http://vcl.ucsd.edu/hed/HED-BSDS.tar. But the visual results are totally not edges. I solely change the data path with the rest unchanged.

ForawardStar commented 3 years ago

Can anyone successfully reproduce the results reported in this paper?My python environment is python 3.6, and train the model using the augmented dataset downloaded from http://vcl.ucsd.edu/hed/HED-BSDS.tar. But the visual results are totally not edges. I solely change the data path with the rest unchanged.

ForawardStar commented 3 years ago

I got it!! The default setting of this code is to randomly initialize VGG16, Once I provide the pre-trained VGG16, the output edges is reasonable. But, the ODS-F is still lower than the reported value in the paper, which is 0.798. I wonder if there's anything else I need to pay attention to?

pkuCactus commented 3 years ago

Thanks for your attention of our work. We have shown the training details in implement detail which using data augmentation same as HED, and the hyperparamter yita is 0.3. Moreover, model is pretrained on imagenet, while lr , weight decay, optimizer, batchsize and lr schedulaer all are listed in the implement detail section.

ForawardStar commented 3 years ago

@pkuCactus What about the training dataset? Are your model trained with augmentated PASCAL VOC, how to obtain such data?

wenya1994 commented 2 years ago

作者您好,我得到的结果也没有论文中给的高,用的是您提供的预处理模型,在仅用baseline训练的时候得到的模型测试结果最高才0.71,而您论文中给的是0.76左右。关于GT处理有个疑问,是先将几个标注的做平均得到概率图,然后设置yita=0.3, 这句代码[gt >= self.yita] = 1是对的么?

pkuCactus commented 2 years ago

@ForawardStar We used the Pascal VOC Context(also called Pascal Context) for augmentation. It can be obtained from the official website https://cs.stanford.edu/~roozbeh/pascal-context/

pkuCactus commented 2 years ago

@young532 我想你说的是关于消融实验部分的结果我们在文章中也说了,是在BSDS500的训练集上训练,在BSDS500的验证集上的验证结果。关于GT就是先将几个标注的做平均得到概率图,然后按照代码中提供的处理方式处理的。

mitldyjiushijie commented 2 years ago

Hello, can we have some communication @young532? I also want to run this code, but there are some problems. My email is: mitldyjiushijie@gmail.com , hope to get your help.

liuxingyu123 commented 1 year ago

I got it!! The default setting of this code is to randomly initialize VGG16, Once I provide the pre-trained VGG16, the output edges is reasonable. But, the ODS-F is still lower than the reported value in the paper, which is 0.798. I wonder if there's anything else I need to pay attention to?

hello,i the ODS-F i reproduced is 0.784,its lower than the reported,i wonder if some codes have been changed,i only change the data path and yita.