princewang1994 / TextSnake.pytorch

A PyTorch implementation of ECCV2018 Paper: TextSnake: A Flexible Representation for Detecting Text of Arbitrary Shapes
https://arxiv.org/abs/1807.01544
MIT License
437 stars 92 forks source link

Why is tr and tcl both represented by two channels? Is it ok to use one channel? #39

Closed ustczhouyu closed 5 years ago

ustczhouyu commented 5 years ago

Why is tr and tcl both represented by two channels? Is it ok to use one channel?

spoorgholi74 commented 3 years ago

Hi, thanks for the code. I am also confused why 2 channels are used for the TCL & TR? it will be great if you can briefly explain or refer me to where it is explained in paper.

princewang1994 commented 3 years ago

@spoorgholi74 , without special resons. if you're using sigmoid activate function, one channel is required. Two-channel feature map is set to be compatible with softmax activate function and cross-entropy loss, use one channel if you prefer it :)