This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yaoi diffusion V2.0 tag list: | |
Common Names | |
tag | |
tag_other | |
Other is usually the cellshading version | |
ex: | |
A muscular male by tag_other |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yaoi diffusion V2.0 beta1 tag list: | |
Common Names | |
tag | |
tag_other | |
ex: | |
A muscular male by tag_other | |
=========================================================== | |
0vv0b zhineart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |