CyberAgentAILab / derendering-text

Other
76 stars 8 forks source link

the angle of text is always zero #9

Closed LIYHUI closed 2 years ago

LIYHUI commented 2 years ago

I find that you use a func named 'sample_text_type_flags' in 'class OffsetSampler(object)' to define the angle. But it always return 0, maybe it is a error?

image
LIYHUI commented 2 years ago

@shimoda-uec can you solve this bug?

shimoda-uec commented 2 years ago

We did not handle rotated texts in the paper for simplification of a task, but I implemented a rotation function before for another purpose. I will add it for this repository as an option.

LIYHUI commented 2 years ago

Okay, thanks for your reply!

shimoda-uec commented 2 years ago

The option for the angle is implemented.

LIYHUI commented 2 years ago

Great job!