Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Li-yachuan/NBED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBED

Code of paper A new baseline for edge detection: Make Encoder-Decoder great again

0. Pip environment

pip install -r requirements.txt

1. Test NBED

Modify the values of ckpt and img in inference.py. ckpt on BSDS can be found from https://drive.google.com/file/d/1TKg37m3KWuv4A8FTlXJ-N20Ar46PmRdH/view?usp=sharing And running command

python inference.py

2. Training NBED

2.1 Preparing the dataset

Download the dataset to any dir and point to the dir in the code
-BSDS500 following the setting of "The Treasure Beneath Multiple Annotations: An Uncertainty-aware Edge Detector"
-NYUDv2 following the setting of "Pixel Difference Networks for Efficient Edge Detection" and random crop to 400*400
-BIPED following the setting of "Dense Extreme Inception Network for Edge Detection"

2.2 Preparing the pretrained weights

Down it from https://huggingface.co/sail/dl/resolve/main/caformer/caformer_m36_384_in21ft1k.pth and put it into the dir ./model

2.3 Training NBED

python main.py --batch_size 4 --stepsize 3-4 --gpu 1 --savedir 0305-bsds --encoder Dul-M36 --decoder unetp --head default --note 'training on BSDS500' --dataset BSDS --maxepoch 6

2.4 Eval NBED

Following the previous methods. such as RCF and PiDiNet

Result of BSDS Img of BSDS

The result of BSDS500 can be download here https://drive.google.com/file/d/1PiPklsH7w6zNxdGWW-JpnUsFOdiYLHwG/view?usp=sharing

3. UPDATE

3.1 release the ckpt of BIPED

checkpoint on BIPED is here

3.2 Fix bugs

ODS/OIS on BIPED is a little error, due to a wrong tolerance is used. And it is corrected in version 2 Thanks for the reminder from yx-yyds

3.3 We released DDN, the follow-up work of NBED.

Main features: By introducing Evidence Lower Bound loss and learnable Gaussian distributions, DDN is capable of generating multi-granularity edges. The ODS of DDN on the BSDS500 dataset is 0.867, which is 0.022 higher than that of NBED (0.845)

About

Code of paper "A new baseline for edge detection: Make Encoder-Decoder great again"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages