Skip to content

Instantly share code, notes, and snippets.

@Jaid
Jaid / comfyUiHelp.txt
Created August 27, 2024 07:51
ComfyUI --help output
usage: main.py [-h] [--listen [IP]] [--port PORT] [--tls-keyfile TLS_KEYFILE] [--tls-certfile TLS_CERTFILE]
[--enable-cors-header [ORIGIN]] [--max-upload-size MAX_UPLOAD_SIZE]
[--extra-model-paths-config PATH [PATH ...]] [--output-directory OUTPUT_DIRECTORY]
[--temp-directory TEMP_DIRECTORY] [--input-directory INPUT_DIRECTORY] [--auto-launch]
[--disable-auto-launch] [--cuda-device DEVICE_ID] [--cuda-malloc | --disable-cuda-malloc]
[--force-fp32 | --force-fp16] [--bf16-unet | --fp16-unet | --fp8_e4m3fn-unet | --fp8_e5m2-unet]
[--fp16-vae | --fp32-vae | --bf16-vae] [--cpu-vae]
[--fp8_e4m3fn-text-enc | --fp8_e5m2-text-enc | --fp16-text-enc | --fp32-text-enc]
[--force-channels-last] [--directml [DIRECTML_DEVICE]] [--disable-ipex-optimize]
[--preview-method [none,auto,latent2rgb,taesd]] [--cache-classic | --cache-lru CACHE_LRU]
@Jaid
Jaid / kohya-sd-scripts-help.txt
Last active August 17, 2024 10:34
Kohya-SS CLI help
usage: sdxl_train_network.py [-h] [--console_log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
[--console_log_file CONSOLE_LOG_FILE] [--console_log_simple] [--v2]
[--v_parameterization]
[--pretrained_model_name_or_path PRETRAINED_MODEL_NAME_OR_PATH]
[--tokenizer_cache_dir TOKENIZER_CACHE_DIR]
[--train_data_dir TRAIN_DATA_DIR] [--cache_info] [--shuffle_caption]
[--caption_separator CAPTION_SEPARATOR]
[--caption_extension CAPTION_EXTENSION]
[--caption_extention CAPTION_EXTENTION] [--keep_tokens KEEP_TOKENS]
[--keep_tokens_separator KEEP_TOKENS_SEPARATOR]
from __future__ import annotations
import logging
import random
from itertools import permutations
from typing import Any, Callable, Iterable, cast
from jinja2 import Environment, pass_environment
from jinja2.ext import Extension
from jinja2.nodes import CallBlock
@Jaid
Jaid / presets.md
Last active July 9, 2024 06:00
bmaltais/kohya_ss preset commands

SDXL - LoRA AI_characters standard v1.1

accelerate launch --num_cpu_threads_per_process=2 "./sdxl_train_network.py" --enable_bucket --min_bucket_reso=256 --max_bucket_reso=2048 --pretrained_model_name_or_path="stabilityai/stable-diffusion-xl-base-1.0" --train_data_dir="D:/git/.fork/kohya-gradio/img" --resolution="1024,1024" --output_dir="D:/git/.fork/kohya-gradio/out" --logging_dir="D:/git/.fork/kohya-gradio/out/log" --network_alpha="32" --training_comment="3 repeats. More info: https://civitai.com/articles/1771" --save_model_as=safetensors --network_module=networks.lora --text_encoder_lr=3e-05 --unet_lr=3e-05 --network_dim=32 --output_name="last" --lr_scheduler_num_cycles="50" --no_half_vae --learning_rate="3e-05" --lr_scheduler="constant" --train_batch_size="3" --max_train_steps="67" --save_every_n_epochs="1" --mixed_precision="fp16" --save_precision="fp16" --caption_extension=".t
@Jaid
Jaid / groups_merged_txt_links.md
Last active September 1, 2024 12:21
groups_merged.txt files (for GGUF imatrix quantization)
@Jaid
Jaid / best-open-source-ai-models.md
Last active June 20, 2024 00:15
Current best open-source AI models
{
"format_version": "1.2",
"target_page": "",
"headers": [
{
"url_contains": "i.4cdn.org",
"action": "delete",
"header_name": "referer",
"header_value": "-",
"comment": "4CHAN",
@Jaid
Jaid / oxipngHelp.txt
Created April 12, 2024 14:52
oxipng help
Losslessly improve compression of PNG files
Usage: oxipng.exe [OPTIONS] <files>...
Arguments:
<files>...
File(s) to compress (use '-' for stdin)
Options:
-o, --opt <level>
@Jaid
Jaid / cjxlHelp.txt
Created April 11, 2024 20:58
cjxl help
JPEG XL encoder v0.10.0 89ca2201 [AVX2,SSE4,SSE2]
Usage: D:\git\.foreign\autobuildSuite\local64\bin-global\cjxl.exe INPUT OUTPUT [OPTIONS...]
INPUT
the input can be PNG, APNG, GIF, JPEG, PPM, PFM, PAM, PGX, or JXL
OUTPUT
the compressed JXL output file
Basic options:
-d DISTANCE, --distance=DISTANCE
Target visual distance in JND units, lower = higher quality.
@Jaid
Jaid / fdHelp.txt
Created March 21, 2024 05:00
`fd --help`
A program to find entries in your filesystem
Usage: fd.exe [OPTIONS] [pattern] [path]...
Arguments:
[pattern]
the search pattern which is either a regular expression (default) or a glob pattern (if
--glob is used). If no pattern has been specified, every entry is considered a match. If
your pattern starts with a dash (-), make sure to pass '--' first, or it will be
considered as a flag (fd -- '-foo').