Skip to the content.
scifi_city_as_a_picasso_painting
"sci-fi city as a picasso painting"
camping_under_starry_night_with_a_stream_nearby
"camping under a starry night with a stream nearby"
cat_barbequing_with_headphones_on
"cat barbequing with headphones on"

Dreamscaper responds to wake phrase “I have a dream”, after which a dream to be visualized can be described.

For example: “I have a dream, a cat is cooking in a garden with headphones on”

It uses generative AI, so the art can be as imaginative as your dreams, hence the name!

In addition to generating images in response to a voice prompt, Dreamscaper also generates a new image every day from a prompt constructed with random combination of various part of a phrase (“subject”, “object”, “actions”, etc.).

Motivation

I had a very old Macbook which was rendered useless after a water spill event. Looking for ideas on what to do with it ( other than tossing it in 🗑️), I was inspired by this video from DIY Perks to salvage the display. However, instead of a simple secondary monitor, I was more interested in transforming it into something that fulfills my love of Art-Tech intersection. I thoroughly enjoyed working on my Stoic Dashboard with an e-paper display, but this time I had the vibrancy of full color LCD and a lot more processing power (the Raspberry Pi from Stoic Dashboard’s server!). Using a bit of help from our friend with bouncing-off ideas, I finally converged to this concept (and name) of Dreamscaper.

Components

Electronics

Code

Dreams to be visualized are generated using a text-to-image Inference API like Together AI / Nebius / HuggingFace.

These text prompts are created in two ways:

Since it uses external services like Picovoice, Google Cloud and Together AI, user will need to create an account on those services to obtain their access keys. More detais on how to setup the project (dependencies, access keys, etc.) are provided on project README.

The code is written in Python. It should work on any computer running Python with a display, for example your laptop or a Raspberry Pi connected to your TV. So you don’t necessarily need to salvage the display from a laptop to see it an action!

Frame

This part of the project might seem trivial or boring for some; however, for me, it was quite a learning experience and I thoroughly enjoyed it. Living in an apartment with little to no experience in woodworking, I had reservations about making the frame out of wood because of the presumption that it requires a garage space and investment in expensive tools. What I soon learned that it was actually fairly easy to do a small project like this with these tools/components totaling <$75.