{"id":70,"date":"2015-10-15T06:35:07","date_gmt":"2015-10-15T06:35:07","guid":{"rendered":"http:\/\/liipetti.net\/erratic\/?p=70"},"modified":"2015-10-15T17:46:47","modified_gmt":"2015-10-15T17:46:47","slug":"a-map-and-a-view-at-the-same-time","status":"publish","type":"post","link":"http:\/\/liipetti.net\/erratic\/2015\/10\/15\/a-map-and-a-view-at-the-same-time\/","title":{"rendered":"A map and a view, at the same time"},"content":{"rendered":"<p>The style image in neural-style does not have to be a work of art. In this example, I will take a part of a topographic map, like this and apply it to two photographs, a building and a street view.<\/p>\n<p><a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksukartta.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-71\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksukartta-300x268.jpg\" alt=\"riksukartta\" width=\"246\" height=\"220\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksukartta-300x268.jpg 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksukartta-168x150.jpg 168w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksukartta-150x134.jpg 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksukartta.jpg 960w\" sizes=\"auto, (max-width: 246px) 100vw, 246px\" \/><\/a>\u00a0(source: https:\/\/tiedostopalvelu.maanmittauslaitos.fi\/tp\/kartta)<\/p>\n<p>The first save, after 100 iterations, is essentially a deformed image built from the style. The photograph showing a building is not yet discernible. But quite soon the form of a building emerges, the lines and dots get arranged and bent according to an outline of the house. And now that we start to see the house, it is possible to see the form of the house already in the first image.<\/p>\n<p><a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksukartta.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-72\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_100-300x209.png\" alt=\"riksu-kartta-koulu_100\" width=\"300\" height=\"209\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_100-300x209.png 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_100-215x150.png 215w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_100-150x105.png 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_100.png 512w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_200.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-73\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_200-300x209.png\" alt=\"riksu-kartta-koulu_200\" width=\"300\" height=\"209\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_200-300x209.png 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_200-215x150.png 215w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_200-150x105.png 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_200.png 512w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The final image looks like this. The schoolhouse is drawn entirely using the elements of the topographic map, while at the same time the picture has the feel of a free hand drawing.<\/p>\n<p><a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_1500.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-75\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_1500-300x209.png\" alt=\"riksu-kartta-koulu_1500\" width=\"300\" height=\"209\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_1500-300x209.png 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_1500-215x150.png 215w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_1500-150x105.png 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-koulu_1500.png 512w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Let&#8217;s have a look at a street view. In this example I have scaled the style to 0.5 to have a more detailed texture to match the more detailed street image.<\/p>\n<p>The first save again is a deformed image full of features from the topographic map. The emerging street view is there already, but not yet perceptible if you don&#8217;t know what to look for.<\/p>\n<p><a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_100.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-77\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_100-300x183.png\" alt=\"riksu-kartta-hameenkatu-scale05_100\" width=\"300\" height=\"183\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_100-300x183.png 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_100-245x150.png 245w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_100-150x92.png 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_100.png 512w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Quite soon then, the street view emerges&#8230;<\/p>\n<p><a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_200.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-78\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_200-300x183.png\" alt=\"riksu-kartta-hameenkatu-scale05_200\" width=\"300\" height=\"183\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_200-300x183.png 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_200-245x150.png 245w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_200-150x92.png 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_200.png 512w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This, then, is about as clear as it gets. Again, the view is drawn using the elements of the map, and there is also a strong hard drawn feel. Look, for instance, at the windows straight ahead on the right hand side.<\/p>\n<p><a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_1200.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-79\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_1200-300x183.png\" alt=\"riksu-kartta-hameenkatu-scale05_1200\" width=\"340\" height=\"207\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_1200-300x183.png 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_1200-245x150.png 245w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_1200-150x92.png 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hameenkatu-scale05_1200.png 512w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/a><\/p>\n<p>We can, of course, also test what the map style does to a portrait:<\/p>\n<p><a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/hannu2012.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-85\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/hannu2012-300x225.jpg\" alt=\"hannu2012\" width=\"283\" height=\"212\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/hannu2012-300x225.jpg 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/hannu2012-200x150.jpg 200w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/hannu2012-150x113.jpg 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/hannu2012.jpg 960w\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" \/><\/a>\u00a0 \u00a0becomes \u00a0<a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05_1900.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-86\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05_1900-300x225.png\" alt=\"riksu-kartta-hannu2012-scale05_1900\" width=\"285\" height=\"214\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05_1900-300x225.png 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05_1900-200x150.png 200w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05_1900-150x113.png 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05_1900.png 512w\" sizes=\"auto, (max-width: 285px) 100vw, 285px\" \/><\/a><\/p>\n<p>Lowering style weight from 100 to 50 and then further down to 10, the look of the topographic map starts to disappear while the general feeling of the picture partly remains, partly changes.<\/p>\n<p><a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew50_700.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-88\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew50_700-300x225.png\" alt=\"riksu-kartta-hannu2012-scale05-stylew50_700\" width=\"300\" height=\"225\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew50_700-300x225.png 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew50_700-200x150.png 200w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew50_700-150x113.png 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew50_700.png 512w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\u00a0\u00a0<a href=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew10_400.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-90\" src=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew10_400-300x225.png\" alt=\"riksu-kartta-hannu2012-scale05-stylew10_400\" width=\"300\" height=\"225\" srcset=\"http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew10_400-300x225.png 300w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew10_400-200x150.png 200w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew10_400-150x113.png 150w, http:\/\/liipetti.net\/erratic\/wp-content\/uploads\/2015\/10\/riksu-kartta-hannu2012-scale05-stylew10_400.png 512w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The style image in neural-style does not have to be a work of art. In this example, I will take a part of a topographic map, like this and apply it to two photographs, a building and a street view. \u00a0(source: https:\/\/tiedostopalvelu.maanmittauslaitos.fi\/tp\/kartta) The first save, after 100 iterations, is essentially \u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"http:\/\/liipetti.net\/erratic\/2015\/10\/15\/a-map-and-a-view-at-the-same-time\/\">Continue reading<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":75,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[],"class_list":["post-70","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-art","category-neural-networks"],"_links":{"self":[{"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":8,"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":91,"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/posts\/70\/revisions\/91"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/media\/75"}],"wp:attachment":[{"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/liipetti.net\/erratic\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}