SD3 Medium Slightly Decensored (Perturbed)版本1% (no clips) (no clips)

SD3 Medium Slightly Decensored (Perturbed)版本1% (no clips) (no clips)

credits to Thyri

Perturbed Version of SD3 using script (replace input and output location)

  1. download sd3 from huggingface

  2. put script in a .py (replace input with sd3 model location and output location with where and what you want to name it). modify 0.01 to how much you want it to be perturbed (0.01 = 1%)

  3. execute the .py using "python your_py_script.py" (maybe you need to activate your virtual environment)

import torch

from safetensors.torch import load_file, save_file

# Load the safetensors model

model = load_file('__INPUT LOCATION__')

# Extract the keys and tensors

keys = model.keys()

dic = {key: model[key] for key in keys}

# Define parts to filter

parts = ['diffusion_model']

count = 0

# Perturb the specified parts

for k in keys:

if all(part in k for part in parts):

v = dic[k]

print(f'{k}: {v.std()}')

dic[k] += torch.normal(torch.zeros_like(v), v.std() * 0.01)

count += 1

print(f'Total perturbed tensors: {count}')

# Save the perturbed model

save_file(dic, '__OUTPUT LOCATION__')

描述:

训练词语:

名称: sd3MediumSlightly_1NoClips.safetensors

大小 (KB): 4235976

类型: Model

Pickle 扫描结果: Success

Pickle 扫描信息: No Pickle imports

病毒扫描结果: Success

SD3 Medium Slightly Decensored (Perturbed)

SD3 Medium Slightly Decensored (Perturbed)

SD3 Medium Slightly Decensored (Perturbed)

资源下载
下载价格VIP专享
仅限VIP下载升级VIP
犹豫不决让我们错失一次又一次机会!!!
原文链接:https://1111down.com/1069113.html,转载请注明出处
由于网站升级,部分用户密码全部设置为111111,登入后自己修改, 并且VIP等级提升一级(包月提升至包季,包季提升到包年 包年提升至永久)
没有账号?注册  忘记密码?

社交账号快速登录