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

Machine Learning Specialization Learnings 1

I’m doing the new Machine Learning Specializationg by Andrew Ng in Coursera, great content so far. Due to that, I’m refreshing my college Calculus and Linear Algebra. In the first week we look at Regression Models with Gradent …

How to Generate a Secure Password From Command Line

When installing a new server or just creating an online account is common to need a secure password. You can use a password generator to create a secure password, but you can also use the command line to generate a secure password.

Los datos de los clientes de Panamericana estuvieron expuestos

El pasado 5 de abril fuí a Panamericana a comprar un libro, al momento de pagar, la cajera me hizo la invitación a actualizar mis datos para que me envien la factura electrónicamente.