Skip navigation

PiCasso Design Challenge

10 Posts authored by: vlasov01
New Docker Image In the previous blog I was able to find the right version of Magenta and TensorFlow to work on my CPU. Now I'd like to save these changes as a new Docker image. It is quite simple (but not a good practice) to create a new TensorFlow Magenta 0.3.6 Docker image from a container's changes   tf@ubuntu:~$ docker ps -a CONTAINER ID        IMAGE                COMMAND  ...
Debug I've executed python commands in interactive mode to identify where it fails: root@05e99fc1ad94:/usr/local/bin# python Python 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> import sys >>> from magenta.models.melody_rnn.melody_rnn_generate import console_entry_point Illegal instruction (core dumped)   So is it failed because of Magenta ot Ten ...
Why Docker? I've spent significant amount of time to make TensorFlow Magenta to run on my Raspberry Pi 3 B+. So I've tried and failed with the following: TensorFlow Lite (tflite) I was able build (it took many hours) and install tflite it on my rpi 3b+, but I was not able to find its Python bindings or clear instructions how to build them. TensorFlow.js (tfjs) I was able install tfjs as well. But it requires a browser like Chromium in a headless mode to use it. I decided against it as a combina ...
What is TensorFlow Magenta?  Magenta is a Python library created by Google using TensorFlow that helps generate art and music. Playing with TensorFlow Magenta  There are several options to Get Started with Magenta.I decided to start with Hello Magenta Colab Notebook as it is using Python and it is a way to set up a Python environment in the browser without installing it locally. In addition Google provides runtime environment and GPU to test it out. I've opened the Hello Magenta not ...
Adding Bluetooth LE Tracker Sensor to hassio I've decided to add a tracker sensor so my controller generates and plays music if I'm nearby. This tracker discovers new devices on boot and in regular intervals and tracks Bluetooth low-energy devices periodically based on scan_interval value. It is not required to pair the devices with each other. So I've changed the configuration of my hassio.   sudo vi /usr/share/hassio/homeassistant/configuration.yaml   device_tracker:   - platfo ...
Adding Hydro Sensor to Home Assistant A couple years ago Hydro Quebec installed Smart Meters. They allow them remotely gather consumption data. But they as well opened these data over APIs. hassio community build a component which is using this API. I've decided to add it to my project. I've open my vi editor to add new sensor into #hassio configuration file: sudo vi /usr/share/hassio/homeassistant/configuration.yaml   I've added section to get data on my hydro consumption and temperature ...
Controller Decision I've introduced the reference architecture for my project in the previous blog post. Its key component is the controller, which is responsible to orchestrate information flows from IoT Device sensors to Sound Generator. I've decided to use Home Assistant (hassio) as the controller instead of building my own. Its architecture is very well aligned with my project.     It is an open source project and one of the most active on GitHub. It has a large and active devel ...
Architecture SHOAMM consists from the following key components: IoT device IoT device is responsible to capture environmental conditions and communicate sensors readings and its state to the controller. Controller Controller is responsible to orchestrate information flows from IoT Device sensors to Sound Generator. It includes several sub-components: State Machine State Machine (digital tween) converts sensor data into state information and communicates state changes. Event Bus Event Bus commun ...
Initial setupI’ve connected RPi to TV to perform initial configuration as it doesn’t have ssh service enabled by default anymore. OS installationI’ve selected Raspbian Stretch With Desktop as my OS for RPi. It seems the most popular OS for RPi and I have a previous experience with Ubuntu and they have a common parent Debian. It took significant amount of time to complete the install. Here is my current OS version. pi@raspberrypi:~$ uname -a Linux raspberrypi 4.19.34-v7+ #1211 S ...
Problem It can be quite complex and time consuming for a human to analyze smart home sensors data. As well it can take your attention from other important things.And attention is quite a rare commodity these days... Concept SHOAMM will sense the home and adjust music accordingly to convey state of the home. Each thing or sensor will have its digital twin as a musical instrument in the orchestra. Depending on its state it will conduct different type of music with a different volume and color. Sc ...