Miguel Piedrafita ✨ Profile picture
22. serial builder, purple-haired dev @worldcoin, core @ConstitutionDAO, friendly ambitious nerd.
Nov 23, 2022 8 tweets 3 min read
✨ So you want to add AI image generation to your website?

Rarely, Stable Diffusion will generate NSFW images from regular prompts. The default filter catches it, but your users getting a black image isn't much better. 😅

How can we get around this? With a new model 👇 The default filter Stable Diffusion comes with is pretty good, and usually manages to catch these "exceptions".

(it's easy to manually bypass and only filters sexual content, but that's for another thread 👀)

When it triggers, SD will replace your image with a black square. ⬛️
Nov 17, 2022 10 tweets 4 min read
✨ Defaults are incredibly important for image models.

Most users won't spent hours tweaking prompts, they'll type the first thing that comes to their minds and run with the result.

Fortunately, it's pretty easy to optimize for that, and generate better images by default. 🤯 Image Image models like Stable Diffusion or DALL-E are so amazing because they're general purpose.

They can generate drawings, photographs, icons and logos, 3D environments, and much more! 🚀

However, good results require work: paragraphs of prompts and constant iteration.
Sep 14, 2022 11 tweets 3 min read
✨ Yesterday, I made a tweet that converted all the replies into images, using Stable Diffusion.

It blew up, with +2k people coming together to generate all kinds of art, memes, and play around with ML.

Here's how I built it, how much it cost me, and how you can try it out! 👇 I'm a big fan of @midjourney's (another AI image tool) approach to launching:

They made a Discord, where everyone can generate images in public. If you see someone making something cool, you can see their prompt, tweak it, and put your own spin into it.

It makes AI multiplayer!
Sep 13, 2022 4 tweets 1 min read
✨ Stable Diffusion is amazing, but unfortunately it isn't trivial to setup (especially for people without good GPUs).

Instead, I made a Twitter bot that turns any reply to this tweet into an image, using SD!

Let's see what you can come up with! 👇 Rules:

- plz no NSFW. The model _should_ filter it out automatically, but just in case don't try it out (I don't wanna go to twitter jail, and WILL block you).

- It'll only work if you're following me!

- Enjoy, and consider RTing so more people can play around with it :D
Sep 7, 2022 10 tweets 4 min read
✨ As part of my quest to make my website more personal, I've now added a map showing where I am.

The cool thing? It dynamically updates the location every day when I wake up, generates an Apple Maps screenshot, and a low-res placeholder. 😮

Here's how I built it 👇 Firstly, we need a way to get the data.

There's probably a lot of ways to do this, but I went for the dumbest (and simplest) one: an iOS shortcut that runs every day after I wake up.

It reads the phone location, and sends it to an API route which saves it to the db. 🛌 ➡️ 🚀
Aug 26, 2022 4 tweets 3 min read
✨ Social has always has a big problem with bots & spam.

We're excited to work with @LensProtocol on a new solution to this: Have users verify themselves in a completely anonymous way, using World ID.

Human status available to all apps via the Lens API.

human.withlens.app @LensProtocol A few years ago, I tried to start a new social network.

Its main appeals were knowing which profiles belonged to humans, and content composability.

Lens has been doing an amazing job at composability, excited to finally have human badges on it!
Nov 13, 2021 8 tweets 3 min read
📜 My friends and I are buying one of the 11 surviving copies of the US Constitution, and you can help!

Introducing @ConstitutionDAO, a project to "rescue" the Constitution from the hands of private collectors, and put it back into the hands of The People.

WTF is going on? 👇 In September, @Sothebys announced they were going to auction the only copy of the Constitution still in the hands of private collectors.

This Reuters article surfaced in our feeds yesterday, and we started joking around with "aping into the constitution"

reuters.com/lifestyle/soth…
Nov 8, 2021 13 tweets 3 min read
✨ The blockchain is one of the biggest innovations of this century.

Like computers or the internet in their early stages, it's currently very limited.

We can't build most kinds of apps on-chain today, but we can future-proof them for when it evolves.

Welcome to web2.5 🚀 Smart contracts on the Ethereum blockchain are insanely powerful ideas but, in practice, they contain some pretty big limitations.

Contract code must >24KB. Each assembly call is priced by a certain amount of gas (storing a word is ~20k), and the maximum gas for any tx is ~30M
Oct 30, 2021 9 tweets 2 min read
Crypto is a trustless consensus engine.

It's not about the money, in fact it's not about money at all.

It just happened that the banking system was due for a big upgrade, and was the easiest thing to disrupt.

Everything else comes next. If you think about it, the only innovation here is a decentralized database, a global computer.

All the ERCs & EIPs are just about agreeing on shared interfaces so that everyone can benefit from each other's data.

It's not money blocks, it's data ownership and interoperability.
Oct 22, 2021 13 tweets 6 min read
🔥 I scanned my iris to participate in an experiment for global currency, UBI, biometric sybil-resistance and crypto.

Here’s what @worldcoin is, how it works, how it might not work, and why I’m very excited about it anyway. ImageImage ✨ Worldcoin is an attempt at creating a collectively-owned global currency that gets distributed fairly and anyone has access to.

To get there, they want to allow everyone to claim a free share of it. 💸