{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/stroke-based-artistic-rendering-agent-with","title":"Learning to Paint With Model-based Deep Reinforcement Learning","arxiv_id":"1903.04411","date":"2019-03-11","proceeding":"ICCV 2019 10","authors":["Zhewei Huang","Wen Heng","Shuchang Zhou"],"abstract":"We show how to teach machines to paint like human painters, who can use a small number of strokes to create fantastic paintings. By employing a neural renderer in model-based Deep Reinforcement Learning (DRL), our agents learn to determine the position and color of each stroke and make long-term plans to decompose texture-rich images into strokes. Experiments demonstrate that excellent visual effects can be achieved using hundreds of strokes. The training process does not require the experience of human painters or stroke tracking data. The code is available at https://github.com/hzwer/ICCV2019-LearningToPaint.","url_abs":"https://arxiv.org/abs/1903.04411v3","url_pdf":"https://arxiv.org/pdf/1903.04411v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"stroke-based-artistic-rendering-agent-with","repo_url":"https://github.com/hzwer/ICCV2019-LearningToPaint","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stroke-based-artistic-rendering-agent-with","repo_url":"https://github.com/1jsingh/semantic-guidance","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"stroke-based-artistic-rendering-agent-with","repo_url":"https://github.com/hzwer/LearningToPaint","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stroke-based-artistic-rendering-agent-with","repo_url":"https://github.com/megvii-research/ICCV2019-LearningToPaint","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stroke-based-artistic-rendering-agent-with","repo_url":"https://github.com/nikithamalgifb/LearningToPaint","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"stroke-based-artistic-rendering-agent-with","repo_url":"https://github.com/pschaldenbrand/ContentMaskedLoss","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"deep-reinforcement-learning","task_name":"Deep Reinforcement Learning"},{"task_slug":null,"task_name":"Position"},{"task_slug":"reinforcement-learning","task_name":"Reinforcement Learning"},{"task_slug":"reinforcement-learning-1","task_name":"Reinforcement Learning (RL)"},{"task_slug":"reinforcement-learning-2","task_name":"reinforcement-learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1903.04411","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1903.04411"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hzwer/ICCV2019-LearningToPaint","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/megvii-research/ICCV2019-LearningToPaint","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nikithamalgifb/LearningToPaint","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/1jsingh/semantic-guidance","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pschaldenbrand/ContentMaskedLoss","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hzwer/LearningToPaint","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":12},"by_repo_kind":{"official":{"samples":8,"ran":1,"repositories":1},"listed":{"samples":5,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"583f9780bdd00a45","entry":"conv3x3","repo":"hzwer/ICCV2019-LearningToPaint","repo_kind":"official","path":"baseline_modelfree/DRL/actor.py","file_url":"https://github.com/hzwer/ICCV2019-LearningToPaint/blob/HEAD/baseline_modelfree/DRL/actor.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"583f9780bdd00a45"}},{"code_sha256_prefix":"23eda8fca1ca7dfd","entry":"cal_trans","repo":"hzwer/ICCV2019-LearningToPaint","repo_kind":"official","path":"baseline_modelfree/DRL/ddpg.py","file_url":"https://github.com/hzwer/ICCV2019-LearningToPaint/blob/HEAD/baseline_modelfree/DRL/ddpg.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"23eda8fca1ca7dfd"}},{"code_sha256_prefix":"c3ce44b77ba5ecb6","entry":"calculate_fid","repo":"pschaldenbrand/ContentMaskedLoss","repo_kind":"listed","path":"fid.py","file_url":"https://github.com/pschaldenbrand/ContentMaskedLoss/blob/HEAD/fid.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c3ce44b77ba5ecb6"}},{"code_sha256_prefix":"b013a38b7632fed9","entry":"calculate_fid_stats","repo":"pschaldenbrand/ContentMaskedLoss","repo_kind":"listed","path":"fid.py","file_url":"https://github.com/pschaldenbrand/ContentMaskedLoss/blob/HEAD/fid.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b013a38b7632fed9"}},{"code_sha256_prefix":"3e805cc6355e47d6","entry":"cfg","repo":"hzwer/ICCV2019-LearningToPaint","repo_kind":"official","path":"baseline_modelfree/DRL/actor.py","file_url":"https://github.com/hzwer/ICCV2019-LearningToPaint/blob/HEAD/baseline_modelfree/DRL/actor.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3e805cc6355e47d6"}},{"code_sha256_prefix":"824c6b3b443d148a","entry":"cfg","repo":"hzwer/ICCV2019-LearningToPaint","repo_kind":"official","path":"baseline_modelfree/DRL/critic.py","file_url":"https://github.com/hzwer/ICCV2019-LearningToPaint/blob/HEAD/baseline_modelfree/DRL/critic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"824c6b3b443d148a"}},{"code_sha256_prefix":"b140ae839d810c71","entry":"color_cluster","repo":"pschaldenbrand/ContentMaskedLoss","repo_kind":"listed","path":"paint.py","file_url":"https://github.com/pschaldenbrand/ContentMaskedLoss/blob/HEAD/paint.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b140ae839d810c71"}},{"code_sha256_prefix":"33b1a9d94f4b985d","entry":"conv3x3","repo":"hzwer/ICCV2019-LearningToPaint","repo_kind":"official","path":"baseline_modelfree/DRL/critic.py","file_url":"https://github.com/hzwer/ICCV2019-LearningToPaint/blob/HEAD/baseline_modelfree/DRL/critic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"33b1a9d94f4b985d"}},{"code_sha256_prefix":"75be60121d55e4f0","entry":"decode","repo":"hzwer/ICCV2019-LearningToPaint","repo_kind":"official","path":"predict.py","file_url":"https://github.com/hzwer/ICCV2019-LearningToPaint/blob/HEAD/predict.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"75be60121d55e4f0"}},{"code_sha256_prefix":"a1790a331c5a0e5d","entry":"decode_multiple_renderers","repo":"pschaldenbrand/ContentMaskedLoss","repo_kind":"listed","path":"DRL/ddpg.py","file_url":"https://github.com/pschaldenbrand/ContentMaskedLoss/blob/HEAD/DRL/ddpg.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a1790a331c5a0e5d"}},{"code_sha256_prefix":"ebf21bcce2ab8654","entry":"large2small","repo":"hzwer/ICCV2019-LearningToPaint","repo_kind":"official","path":"predict.py","file_url":"https://github.com/hzwer/ICCV2019-LearningToPaint/blob/HEAD/predict.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ebf21bcce2ab8654"}},{"code_sha256_prefix":"a442e7afd354a754","entry":"load_images_from_path","repo":"pschaldenbrand/ContentMaskedLoss","repo_kind":"listed","path":"fid.py","file_url":"https://github.com/pschaldenbrand/ContentMaskedLoss/blob/HEAD/fid.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a442e7afd354a754"}},{"code_sha256_prefix":"0b361edd2c426c74","entry":"small2large","repo":"hzwer/ICCV2019-LearningToPaint","repo_kind":"official","path":"predict.py","file_url":"https://github.com/hzwer/ICCV2019-LearningToPaint/blob/HEAD/predict.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0b361edd2c426c74"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}