hzwer / ICCV2019-LearningToPaint

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

Stroke opacity #30

Closed jwb95 closed 4 years ago

jwb95 commented 4 years ago

Hi, I noticed that each stroke is transparent, so that layers over layers of color will add up over time to form the target picture. Is there a possibility to adjust the opacity to simulate the painting of a picture using a opaque palette? I guess for that the training of a new model would be necessary.

Thanks in advance.

hzwer commented 4 years ago

There are two-dimensional control transparency in the action. You can set them to 0 and train a new model.

jwb95 commented 4 years ago

Thanks for the quick answer. Unfortunately, for now I couldn't find the code passage you're referencing to. Could you point me into the right direction?

hzwer commented 4 years ago

you can modify the decode function in /baseline/DRL/ddpg.py