Skip to content

Instantly share code, notes, and snippets.

@RassilonSleeps
RassilonSleeps / Convert2SafeTensor.py
Last active December 4, 2022 08:25
Convert all .ckpt files in all subdirectories to .safetensors files, NAI fix
# Got a bunch of .ckpt files to convert?
# Here's a handy script to take care of all that for you!
# Original .ckpt files are not touched!
# Make sure you have enough disk space! You are going to DOUBLE the size of your models folder!
#
# First, run:
# pip install torch torchsde==0.2.5 safetensors==0.2.5
#
# Place this file in the **SAME DIRECTORY** as all of your .ckpt files, open a command prompt for that folder, and run:
# python convert_to_safe.py
@RassilonSleeps
RassilonSleeps / convert_to_safe_fix.py
Created December 2, 2022 06:46
Convert all CKPT files to SAFETENSOR files in a directory, NAI fix
# Got a bunch of .ckpt files to convert?
# Here's a handy script to take care of all that for you!
# Original .ckpt files are not touched!
# Make sure you have enough disk space! You are going to DOUBLE the size of your models folder!
#
# First, run:
# pip install torch torchsde==0.2.5 safetensors==0.2.5
#
# Place this file in the **SAME DIRECTORY** as all of your .ckpt files, open a command prompt for that folder, and run:
# python convert_to_safe.py
@RassilonSleeps
RassilonSleeps / issue.json
Created August 23, 2023 03:46
rgthree-comfy issue json
{
"last_node_id": 563,
"last_link_id": 3516,
"nodes": [
{
"id": 17,
"type": "UpscaleModelLoader",
"pos": [
450,
560