Skip to content

Instantly share code, notes, and snippets.

View iszotic's full-sized avatar

iszotic

  • Bogotá, Colombia
View GitHub Profile
common_name_1 common_name_2 common_name_3 ...
style
style_other
style_alter
....
ex.
A muscular male by style_other
the numbers are percentages of how well the style probably can be generated
--------------------------------------------------------
@iszotic
iszotic / list.txt
Created September 7, 2023 14:55
Yaoi Diffusion v2.0 list
Yaoi diffusion V2.0 tag list:
Common Names
tag
tag_other
Other is usually the cellshading version
ex:
A muscular male by tag_other
@iszotic
iszotic / list.txt
Last active August 27, 2023 21:16
Yaoi diffusion V2 beta1 list
Yaoi diffusion V2.0 beta1 tag list:
Common Names
tag
tag_other
ex:
A muscular male by tag_other
===========================================================
0vv0b zhineart
@iszotic
iszotic / convert_diffusers_vae_to_original_stable_diffusion_vae.py
Last active August 4, 2023 04:09
Convert diffusers vae into stable diffusion vae
# Script for converting a HF Diffusers saved pipeline to a Stable Diffusion checkpoint.
# *Only* converts the VAE.
# Does not convert optimizer state or any other thing.
import argparse
import os.path as osp
import re
import torch
from safetensors.torch import load_file, save_file
@iszotic
iszotic / controlnet.csv
Last active May 26, 2023 16:46
Script for convert controlnet from diffusers to control stable diffusion control net 1.x
time_embed.0.weight time_embedding.linear_1.weight
time_embed.0.bias time_embedding.linear_1.bias
time_embed.2.weight time_embedding.linear_2.weight
time_embed.2.bias time_embedding.linear_2.bias
input_blocks.0.0.weight conv_in.weight
input_blocks.0.0.bias conv_in.bias
input_blocks.1.0.in_layers.0.weight down_blocks.0.resnets.0.norm1.weight
input_blocks.1.0.in_layers.0.bias down_blocks.0.resnets.0.norm1.bias
input_blocks.1.0.in_layers.2.weight down_blocks.0.resnets.0.conv1.weight
input_blocks.1.0.in_layers.2.bias down_blocks.0.resnets.0.conv1.bias
@iszotic
iszotic / flip.py
Created May 18, 2021 01:23
flip bone vertex groups
import bpy
toflip = [
('.R', '._R'),
('.L', '.R'),
('._R', '.L')
]
for pair in toflip:
for vg in bpy.context.object.vertex_groups:
if pair[0] in vg.name:
vg.name = vg.name.replace(*pair)
@iszotic
iszotic / obj2gp_28.py
Last active May 29, 2019 23:47
Convert mesh/curve into grease pencil for 2.8
import bpy
from mathutils import Vector
def convert_to_GP(context, object = None, use_one_GP = True):
if object == None:
objects = context.selected_objects
else:
if isinstance(object,list):
objects = object
else: