Skip to content

Instantly share code, notes, and snippets.

@JTriggerFish
JTriggerFish / checkpoints_stats.py
Last active February 10, 2025 23:37
SDXL checkpoint std stats
import re
import pandas as pd
import torch
from safetensors import torch as storch
def parse_layer_name(name: str):
"""Same as before: parse (component, sub_block, param_type). Adjust as needed."""
if "model.diffusion_model" in name:
component = "unet"
@JTriggerFish
JTriggerFish / Tanh approximations.ipynb.json
Created August 13, 2013 22:33
Tanh approximation ipython notebook
{
"metadata": {
"name": "Tanh approximations"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{