hzwer / ICCV2019-LearningToPaint

ICCV2019 - Learning to Paint With Model-based Deep Reinforcement Learning
MIT License
2.25k stars 312 forks source link

About stroke generation #26

Closed xdestiny110 closed 5 years ago

xdestiny110 commented 5 years ago

In stroke_gen.py you use Quadratic Bezier Curve to generate stroke. I wonder why (x1, y1) is calculated by (x0, y0) and (x2, y2)

x1 = x0 + (x2 - x0) * x1
y1 = y0 + (y2 - y0) * y1

What would happen if I comment this 2 line?

hzwer commented 5 years ago

In fact, this is a limitation on (x1, y1), I don't want the agent to use a curve with a steep corner.