hellozhuo / pidinet

Code for the ICCV 2021 paper "Pixel Difference Networks for Efficient Edge Detection" (Oral).
Other
445 stars 69 forks source link

The difference between original model and converted model #55

Open xwhkkk opened 10 months ago

xwhkkk commented 10 months ago

Thank you for sharing your great work!
I noticed we can generate our own edge map with both the original model and the converted model. So which one is a better choice? Besides, I try to generate a map with both table7_pidinet.pth(13-epoch) and table5_pidinet.pth (19-epoch) through pidinet-converted, but the result is different. What types of images are suitable for each of these two types of models?

The edge map of the same image is listed as follows. (I want to extract the edge of the steps) img2r

table5_pidinet img2r table7_pidinet img2r

minh-nguyenhoang commented 9 months ago

I guess the converted model are already loaded with the fused weight while the original one requires you to re-calculate the weight every forward pass so there will be a little overhead. The converted layer with fused weight will act as a normal convolution layer so you can export this to other format as well.