Skip to content

Instantly share code, notes, and snippets.

@madrang
madrang / v2.1-inference-v.yaml
Created December 24, 2022 21:48 — forked from cmdr2/v2.1-inference.yaml
Custom model config for Stable Diffusion 2.0 models, adds an "extra: {attn_precision: 'fp32'}" field to the end of the model config. This "extra" field is recognized by SDKit (https://github.com/easydiffusion/sdkit)
model:
base_learning_rate: 1.0e-4
target: ldm.models.diffusion.ddpm.LatentDiffusion
params:
parameterization: "v"
linear_start: 0.00085
linear_end: 0.0120
num_timesteps_cond: 1
log_every_t: 200
timesteps: 1000
#undef HID_ENABLED
// Arduino Due ADC->DMA->USB 1MSPS
// by stimmer
// from http://forum.arduino.cc/index.php?topic=137635.msg1136315#msg1136315
// Input: Analog in A0
// Output: Raw stream of uint16_t in range 0-4095 on Native USB Serial/ACM
// on linux, to stop the OS cooking your data:
// stty -F /dev/ttyACM0 raw -iexten -echo -echoe -echok -echoctl -echoke -onlcr