{"id":25872,"date":"2019-06-24T01:22:49","date_gmt":"2019-06-24T05:22:49","guid":{"rendered":"https:\/\/www.dannyadam.com\/blog\/?p=25872"},"modified":"2019-06-24T09:06:20","modified_gmt":"2019-06-24T13:06:20","slug":"style-transfer-medley","status":"publish","type":"post","link":"https:\/\/www.dannyadam.com\/blog\/2019\/06\/style-transfer-medley\/","title":{"rendered":"Style Transfer Medley"},"content":{"rendered":"<p><span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"580\" height=\"327\" src=\"https:\/\/www.youtube.com\/embed\/D7vzv2n6d2Y?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span><\/p>\n\n\n<p>I used the <a href=\"https:\/\/github.com\/dstein64\/pastiche\">pastiche<\/a> <em>style transfer<\/em> program\u2014discussed in a prior <a href=\"https:\/\/www.dannyadam.com\/blog\/2019\/06\/pastiche\/\">post<\/a>\u2014to create the video shown above. The content image is a <a href=\"https:\/\/photos.dannyadam.com\/Gallery\/i-2RX5VX5\">photo<\/a> I took in Boston in 2015, and the style images were randomly sampled from the test images of the <a href=\"https:\/\/www.kaggle.com\/c\/painter-by-numbers\">Painter by Numbers<\/a> Kaggle competition.<\/p>\n\n\n\n<p>The frames used in the video were retained during gradient descent by using <em>pastiche<\/em>&#8216;s <code>--workspace<\/code> option.<\/p>\n\n\n\n<p>The Python script for generating the video is on GitHub:<br><a href=\"https:\/\/gist.github.com\/dstein64\/5dcc67fa43cc0d13d6d4d544095a1382\">https:\/\/gist.github.com\/dstein64\/5dcc67fa43cc0d13d6d4d544095a1382<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used the pastiche style transfer program\u2014discussed in a prior post\u2014to create the video shown above. The content image is a photo I took in Boston in 2015, and the style images were randomly sampled from the test images of the Painter by Numbers Kaggle competition. The frames used in the video were retained during [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[56,65,67,36],"class_list":["post-25872","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-neural-networks","tag-neural-style-transfer","tag-pastiche","tag-python"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1sCC6-6Ji","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/25872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/comments?post=25872"}],"version-history":[{"count":17,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/25872\/revisions"}],"predecessor-version":[{"id":25891,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/25872\/revisions\/25891"}],"wp:attachment":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/media?parent=25872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/categories?post=25872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/tags?post=25872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}