-
Satya Nadella belongs in the CEO hall of…
Satya Nadella belongs in the CEO hall of fame. I’d say he edges out Steve Jobs simply because he turned around Microsoft without the benefit of the clout that comes from being the founder. https://t.co/wSge0SHa4L
-
West Texas storm chaser Laura Rowe captured the picture of a…
West Texas storm chaser Laura Rowe captured the picture of a lifetime, fantastic shot of a mature supercell thunderstorm, illuminated at varying heights from the setting sun. https://t.co/MxHsoG7g9N
Author: Aditya
-
Twitterfav archive 09/09/2022
-

Taking Stable Diffusion for a spin on a basic laptop
I’ve been quite intrigued by the recent public releases of Dall-E followed by Stable Diffusion which allow you to generate images from simple text prompts, & had been trying them out on the free online platforms. The main limitation of these is that you are limited to a certain quota for free, and to really try an opensource tool like Stable Diffusion locally, you need to pretty beefy system with a high end GPU.
All that changed when I came across a project on GitHub that lets you run Stable Diffusion on the CPU thanks to Intel’s OpenVINO framework. I promptly took it for a spin on my 4 year old laptop with an Intel quad core 8th gen CPU. The instructions are provided on the GitHub project itself as expected. If you are using Windows like me, you can do the following:
- Install Anaconda which simplifies the Python setup.
- Create a new environment in Anaconda for the project.
- Open the terminal, create a directory for the project & clone the GitHub repository for the project using the
git clone https://github.com/bes-dev/stable_diffusion.openvino.gitcommand with the project web URL. - Follow the installation instructions on the project page:
- Install the project dependencies using
pip install -r requirements.txt - Enable Developer Mode in Windows settings which allows the model to be downloaded on first run.
- If you plan to use the web interface also install streamlit drawable canvas using
pip install streamlit-drawable-canvas, as this module dependency seemed to be missing in the documentation & gave me errors on trying to run the web demo.
- Install the project dependencies using
- Run the script as per instructions replacing the prompt if you want (the developer seems to be a GoT/Emilia Clarke fan) –
python demo.py --prompt "Street-art painting of Emilia Clarke in style of Banksy, photorealism"
On my laptop it takes about 8-10 min to generate an image, though a more powerful CPU with more RAM should be able to cut it down to 3-4 min as mentioned in the project page benchmarks. Either way, it is a worthwhile tradeoff to be able to run it locally.
Here are a couple of results from the prompts I ran on my laptop (I chose a couple of the timeless beauties to see what Stable Diffusion has to offer):

Street-art painting of Elizabeth Taylor in style of Banksy, photorealism 
Street-art painting of Grace Kelly in style of Banksy, photorealism -
Twitterfav archive 07/27/2022
-
I just noticed Disney reused this bit two years later in the…
I just noticed Disney reused this bit two years later in the Mickey Mouse short Wild Waves https://t.co/XfVOhAf07Q
-
Oswald the Lucky Rabbit and Francine “Fanny” Cottontail in A…
Oswald the Lucky Rabbit and Francine “Fanny” Cottontail in All Wet (1927)
Directed by Ub Iwerks https://t.co/iEjFDYEbhj
-
-
Twitterfav archive 07/13/2022
-
Recently leaked China’s population data confirm my estimates…
Recently leaked China’s population data confirm my estimates: births began to decline in 1991, with no peak in 2004 or 2011; Population is now less than 1.28 billion, not the official 1.41 billion; Population began to shrink in 2018, not 2031 as officiall
-
It seems impossible at the beginning of this video that the …
It seems impossible at the beginning of this video that the person filming might be in danger https://t.co/XLvrmCOHRL
-
-
Twitterfav archive 07/12/2022
-
A wonderful thread on the limits of computation. https://t.c…
A wonderful thread on the limits of computation. https://t.co/KPWUt3SVBR
-
Richard Feynman famously drove nanotech with his speech, “Th…
Richard Feynman famously drove nanotech with his speech, “There’s Plenty of Room At the Bottom,” where he described, in detail, just exactly how small you can make things before physics itself stops you.
He described, for instance, the minimal energy nec
-
-
Twitterfav archive 07/01/2022
-
Today was asked by to explain a Web3 use case.I clipped …
Today @pmarca was asked by @tylercowen to explain a Web3 use case.
I clipped this gem from 28:08 of Conversations With Tyler.
Highly recommended… https://t.co/Qe2jlFuqKK
-
Yesterday was asked to explain a Web3 use case.I clipped …
Yesterday @packyM was asked to explain a Web3 use case.
I clipped this gem from 8:40 of @loganbartlett’s latest @cartoonavatars podcast episode with co-host @zachweinberg.
Highly recommended… https://t.co/x8Vdy1xb6o
-
-
Twitterfav archive 06/14/2022
-
Occam’s Razor, now with 6 blades and soothing aloe strip
Occam’s Razor, now with 6 blades and soothing aloe strip
-
-
Twitterfav archive 06/12/2022
-
The final dance in Dirty Dancing, but th…
The final dance in Dirty Dancing, but they’re dancing to The Muppet Show theme tune. https://t.co/ldfjmm5JoQ
-
-
Twitterfav archive 06/10/2022
-
Only eight. A fan of Albert Einstein’s q…
@davidwood1121 Only eight. A fan of Albert Einstein’s quote “Never memorize something that you can look up.”
-
-
Twitterfav archive 05/26/2022
-
Star Trek: The Next Generation – Full House Intro – YouTube
@desertgranite @StobiesGalaxy Also tng full house https://t.co/Chmswar3vK
-
Star Trek DS9 but with the Friends theme – YouTube
@StobiesGalaxy Just to note…someone actually put out a ds9 credits edited in the style of “friends”. Makes it look so goofy. https://t.co/AAXT00G15m
-