{"id":25504,"date":"2018-09-13T12:29:12","date_gmt":"2018-09-13T17:29:12","guid":{"rendered":"http:\/\/www.dannyadam.com\/blog\/?p=25504"},"modified":"2018-09-13T18:21:22","modified_gmt":"2018-09-13T23:21:22","slug":"more-bezier-walks-in-neural-networks","status":"publish","type":"post","link":"https:\/\/www.dannyadam.com\/blog\/2018\/09\/more-bezier-walks-in-neural-networks\/","title":{"rendered":"More B\u00e9zier Walks in Neural Networks"},"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\/3G8Q7t-Hy_Y?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<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\/l2aEMhVeKY4?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<p>The videos above were generated using the same <a href=\"https:\/\/gist.github.com\/dstein64\/1d6e21d80dccbec15b5198d9e4bb7f0a\">script<\/a> described in an earlier <a href=\"https:\/\/www.dannyadam.com\/blog\/2018\/08\/random-bezier-walk-in-a-random-neural-network\/\">post<\/a>.<\/p>\n<p><!--more-->The number of channels was changed from 1 to 3 to add color.<\/p>\n<p>The resolution was changed to\u00a0<code>4096\u00d72160<\/code> (with corresponding updates to <code>XLIM<\/code> and <code>YLIM<\/code>).<\/p>\n<p>The first video uses a <code>RENDER_SEED<\/code> of <code>338<\/code> and the second video uses <code>45<\/code>. Unlike the video in the earlier <a href=\"https:\/\/www.dannyadam.com\/blog\/2018\/08\/random-bezier-walk-in-a-random-neural-network\/\">post<\/a>, these videos were generated using a GPU. A fixed seed value will have different results on CPU and GPU.<\/p>\n<pre>RENDER_SEED = 338\r\n...\r\nDEVICE = \"cuda\"\r\n...\r\nXRES = 4096\r\nYRES = 2160\r\nXLIM = np.array([-1.0, 1.0])\r\nYLIM = XLIM * (float(YRES) \/ XRES)\r\n...\r\nCHANNELS = 3<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The videos above were generated using the same script described in an earlier post.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_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}},"categories":[1],"tags":[58,57,56],"class_list":["post-25504","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bezier-curves","tag-generative-art","tag-neural-networks"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1sCC6-6Dm","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/25504","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=25504"}],"version-history":[{"count":5,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/25504\/revisions"}],"predecessor-version":[{"id":25545,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/25504\/revisions\/25545"}],"wp:attachment":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/media?parent=25504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/categories?post=25504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/tags?post=25504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}