Some random useful scripts for stable diffusion, like fixing clip pos_id, bake vae, generate empty civitai info, etc.
convert_ckpt_to_safetensor.py: Convert SD checkpoint to safetensor format while keeping the orignal dtypeconvert_fp8_scaled_stochastic.py: Build a float8_scaled_stochastic checkpoint from https://huggingface.co/Clybius/Chroma-fp8-scaled/blob/main/convert_fp8_scaled_stochastic.pyconvert_sdxl_to_fp8e4m3.py: Convert SDXL checkpoint to float8_e4m3fn dtypeextract_dir_locon.py: Extract SDXL locons from safetensors under specific directory. My common use case is to somehow save some unstable but stylish checkpointsfix_drawthings_sdxl_checkpoint.py: Fix SDXL checkpoint from MacDraw Things, so that webui can recognize itfix_sdxl_clip.py: Fix SDXL clip pos_id, so thatModel Toolkitcan recognize itfix_sdxl_vae.py: Bake VAE into SDXL checkpoint without opening webuigenerate_civitai_info.py: Generate empty.civitai.infounder specific directory, so thatCivitai Shortcutwon't complain about missing infogroup_basemodel.py: Group models by baseModel in.civitai.inforemove_tag_from_exif.py: Remove specific tags from EXIF data of an image fileset_sdxl_vpred.py: Set VPred for SDXL checkpointtest_triton.py: Test if triton is working on your machineworkflow2png.py: Bake ComfyUI workflow into png, like workflow screenshots