Skip to content

Instantly share code, notes, and snippets.

View arodland's full-sized avatar

Andrew Rodland arodland

View GitHub Profile
@madebyollin
madebyollin / notes_on_sd_vae.md
Last active March 10, 2026 22:10
notes_on_sd_vae

Notes / Links about Stable Diffusion VAE

Stable Diffusion's VAE is a neural network that encodes images into a compressed "latent" format and decodes them back. The encoder performs 48x lossy compression, and the decoder generates new detail to fill in the gaps.

(Calling this model a "VAE" is sort of a misnomer - it's an encoder with some very slight KL regularization, and a conditional GAN decoder)

This document is a big pile of various links with more info.

use strict;
use warnings;
use Email::Address;
use Email::MIME;
my $str = q{"=?utf-8?B?PHByZT4NCltHb25lIFRvbW9ycm93?= =?utf-8?B?XSBZb3VyIHByaXZhdGUgbGluayB0byBmaXJzdA0KZXZlciBtb25leS1jcmVh?= =?utf-8?B?dGlvbiBhcHAhDQoNCmhpZ2hsYW5kZXJ0cmFmZmljLmNvbS9saW5rL2FtYXBw?= =?utf-8?B?DQoNCihjb3B5LXBhc3RlIGxpbmsgaW50byB5b3VyIGJyb3dzZXIgaWYgaXQn?= =?utf-8?B?cyBub3QgY2xpY2thYmxlKQ0KDQoNClJlZ2FyZHMsDQpFbnRpbmcgQmlzb3Rl?= =?utf-8?B?DQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoN?= =?utf-8?B?Cg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0K?= =?utf-8?B?DQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoN?= =?utf-8?B?Cg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCjwvcHJlPn4=?=" <equipe@amoremcristo.com>};
my $email = Email::Simple->create(
header => [ From => $str ],
body => "",
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: