This is a cross-post from the Harry’s Engineering blog. Introduction Here on the Analytics team at Harry’s, we frequently found ourselves training machine learning models on data coming from the entirety of Harry’s existence (4+ years and counting!) in Jupyter notebooks on our laptops. While perhaps this was a feasible workflow in the earlier days…… Continue reading An On-Demand High-Powered Jupyter Notebook Server
For the last week, I’ve been working on deploying Style Transfer Playground, the Flask app that I built that blends the content of one user-uploaded image with the style of another, letting the user see the algorithmically generated hybrid image one iteration at a time in the web browser. The biggest technical challenge when I built…… Continue reading From content streaming to worker queues
I finally did the right thing and added unit testing to my Flask web application. However, I ran into extreme difficulty with testing the authentication feature. I’m using OAuth for authentication. I understand that the appropriate thing to do when testing a feature that makes calls to an external API is to “mock” or “stub out”…… Continue reading Testing OAuth with patch/mock
As I’ve continued building my web app in Flask, there are two error messages that I’ve been encountering repeatedly: RuntimeError: working outside of application context and RuntimeError: working outside of request context I decided to dig a little deeper into what these messages were telling me about Flask’s internals and came across this great Stack Overflow thread (finding…… Continue reading Intro to Flask contexts
I’m working on building a web application with Flask that will algorithmically generate a neural artwork image based on user-uploaded input images and allow the user to see the images generated at intermediate stages of the computation. For the purpose of this post, all you need to know about my project is that I have a large…… Continue reading Streaming algorithmically-generated images with Flask
If you enjoyed my previous post on visualizing Picasso works by style similarity, a generalized version of the code used to generate the embeddings is now available on Github! Embed your own collections of images by style in a two-dimensional scatter plot and color points using custom labels.
In an earlier blog post I explained how I came to discover that “style,” as described in the Gatys, et al style transfer paper, has little correlation with what humans think of when they think of a particular artist’s style, and instead really has more to do with color and texture. In this sense, a particular artist…… Continue reading Picasso “styles” visualized with t-SNE