Back to <til> Today I learned

Run Most Basic Way the Stable Diffusion Model in M1

All internet is talking about Stable Diffusion, so I give it a try. I know is becoming mainstream, several people is building products on top of it, some simple like generate an avatar or how to decorate a house. I want to try the most basic way to use it, so I can understand the concept.

I followed the steps in this page: Run Stable Diffusion on your M1 Mac’s GPU which allowed me to generate an image in 10 minutes. I used the default parameters, so I got this images:

  1. The prompt from the tutorial
python scripts/txt2img.py \
          --prompt "a red juicy apple floating in outer space, like a planet" \
          --n_samples 1 --n_iter 1 --plms

Result:

a red juicy apple floating in outer space, like a planet

  1. I was with my kid so I just described what he was doing
python scripts/txt2img.py \
          --prompt "a baby with a space suit eating a tangarine over a craddle" \
          --n_samples 1 --n_iter 1 --plms

Result:

a baby with a space suit eating a tangarine over a craddle

  1. Then I got inspired and tried this: “a teddy bear in a farmer suit looking to a landscape with pine trees a farm far away, all the picture with a van goh style”
python scripts/txt2img.py \
          --prompt "a teddy bear in a farmer suit looking to a landscape with pine trees a farm far away, all the picture with a van goh style" \
          --n_samples 1 --n_iter 1 --plms

Result:

a teddy bear in a farmer suit looking to a landscape with pine trees a farm far away, all the picture with a van goh style

Thats all, I just wanted to try the most basic way to use Stable Diffusion, I will try more complex things in the future.

Back to <til> Today I learned

Posts by me

Popular git config options

Yeah, another hightlight from HN. This time Julia Evans (I have her in my syndication list, but saw her post from HN), shared a very interesting list of pupular git config options, source

Recurrency notation RFC-5545

I learn about the https://datatracker.ietf.org/doc/html/rfc5545 From the specification: This document defines the iCalendar data format for representing and exchanging calendaring and scheduling information such as events, to-dos, journal …

Log Search Utility

I found out in HN about logdy which is a web UI for displaying logs from the stdin to a browser, pretty neat. and reading in the comments also learn about lnav pretty cool tool too (three double oo words 😀).