Skip to content

Instantly share code, notes, and snippets.

View cpietsch's full-sized avatar
💭
in the void

Christopher Pietsch cpietsch

💭
in the void
View GitHub Profile
I am attesting that this GitHub handle cpietsch is linked to the Tezos account tz1X4sxpgg5X6aag4Mf1TmdWTrDbx3jBFwyT for tzprofiles
sig:edsigttRYKYY5rFmaLSW2S6zGJJC5dUcF7LVy24fR4P5kvQ3JVxgXfftChT4oH8FcbQaehLAhGYdPcYcEyRy8jDLDgF7WFqbyDN
@cpietsch
cpietsch / Artillery.ini
Created July 23, 2023 18:05
Artillery prusaslic3r ini
###############
# AUTHOR: Szabolcs Hornyak / design85@gmail.com
# https://szabolcs.eu/2020/12/29/prusaslicer-sw-x1-genius/
###############
## Artillery Hornet printer profile is based on PR https://github.com/slic3r/slic3r-profiles/pull/14 created by https://github.com/newbeetle
# Print profiles for the Artillery printers.
[vendor]
@cpietsch
cpietsch / convert.py
Created August 16, 2023 15:38
Here we convert all the automatic1111 pngs into jpgs and add the custom metadata
import os
from PIL import Image
from PIL import ExifTags
import glob
def convert_png_to_jpg(png_path, jpg_path):
png_files = glob.glob(os.path.join(png_path, '**/*.png'), recursive=True) #[:1]
# print(png_files)
for png_file in png_files:
@cpietsch
cpietsch / extract.sh
Created August 16, 2023 15:39
bash script to extract automatic1111 output image metadata and generate a csv
#!/bin/bash
# Path to the directory containing folders with images
base_dir="/home/jovyan/stable-diffusion-webui/outputs/txt2img-images"
# Path to the ExifTool executable
exiftool_path="/home/jovyan/Image-ExifTool-12.65/exiftool"
# Loop through each folder in the base directory
for folder in "$base_dir"/*; do
@cpietsch
cpietsch / install.md
Created January 18, 2023 12:35
Lovelace Optimization for Stable Diffusion on Linux (Automatic1111/InvokeAI)

Lovelace Optimization for Stable Diffusion

Currently you will need to hotfix/manually update some packages in order to get the performance you deserve when using a lovelace gpu (4080/4090/etc)

Automatic1111

@cpietsch
cpietsch / README.md
Last active December 30, 2023 04:16
d3.js map with markers

Easy example on how to put marker on a d3.js map.

You got 2 options:

  • using d3.geo.path() which does all the work for you
  • using svg circles and translating them via projection(d.geometry.coordinates)
@cpietsch
cpietsch / down.sh
Created February 24, 2024 20:10
download civicai models on command line
curl -JL --remote-name -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" https://civitai.com/api/download/models/XXX