abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

NEUQ-LIS-LAB/time-step-diffusion-safe

published by @NEUQ-LIS-LAB

Passed the relevance filter but does not cleanly map to a stage.Fits the catalog's topic, but no single step.

region:us
Lifetime downloads
5.5K
Last 30 days
662
Likes
-
Size
9.2 GB

Description

# Diffusion Safe Fine-tuning Project

This project implements fine-tuning of pre-trained diffusion models for enhanced safety alignment, based on the principles discussed in "Safety Alignment Should Be Made More Than Just a Few Tokens Deep".

## Code Structure

[Link to your directory structure description here if you have a separate doc]

## Quick Start - Fine-tuning

1. **Install Dependencies:**

```bash

pip install -r requirements.txt

```

2. **Configure Training:**

-… See the full description on the dataset page: https://huggingface.co/datasets/NEUQ-LIS-LAB/time-step-diffusion-safe.

Used by uncensored models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

Created on HFCreated
2025-03-24 · 1 years ago

Related datasets same stage · Miscsame step · Other

Read further

Total size
9.2 GB
Files
773
Formats
png, txt, json
Head
486135c
Last updated on HFLast updated
2025-08-29

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("NEUQ-LIS-LAB/time-step-diffusion-safe")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="NEUQ-LIS-LAB/time-step-diffusion-safe", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/NEUQ-LIS-LAB/time-step-diffusion-safe

Files by folder from our last crawlfrom our last check

top level 4 files 9.1 KB
.gitattributes 3.4 KB file download
README.md 3.2 KB md download
requirement.txt txt download
upload.py 2.5 KB py download
config/ 1 file 1.9 KB
config.yaml 1.9 KB yaml download
data/ 12 files 621.5 KB
COCO_prompts.txt 27.6 KB txt download
COCO_test.jsonl 54.0 KB jsonl download
harm_safe_test.jsonl 4.7 KB jsonl download
harm_safe_test.txt 23.2 KB txt download
safe_test.jsonl 6.7 KB jsonl download
safe_train.jsonl 36.3 KB jsonl download
Template_prompts.txt 3.1 KB txt download
test.json 46.8 KB json download
to_jsonl.py 782 B py download
train.json 183.4 KB json download
verification_test.jsonl 4.7 KB jsonl download
verification.json 230.2 KB json download
diffusion/ 281 files 10.7 MB
config/config.yaml 1.9 KB yaml download
data/COCO_prompts.txt 27.6 KB txt download
data/COCO_test.jsonl 54.0 KB jsonl download
data/harm_safe_test.jsonl 4.7 KB jsonl download
data/harm_safe_test.txt 23.2 KB txt download
data/safe_test.jsonl 6.7 KB jsonl download
data/safe_train.jsonl 36.3 KB jsonl download
data/Template_prompts.txt 3.1 KB txt download
data/test.json 46.8 KB json download
data/to_jsonl.py 782 B py download
data/train.json 183.4 KB json download
data/verification_test.jsonl 4.7 KB jsonl download
data/verification.json 230.2 KB json download
experiments/__init__.py py download
experiments/middle_photos/test1/0.1.png 131 B png download
experiments/middle_photos/test1/0.2.png 131 B png download
experiments/middle_photos/test1/0.3.png 131 B png download
experiments/middle_photos/test1/0.4.png 131 B png download
experiments/middle_photos/test1/0.5.png 131 B png download
experiments/middle_photos/test1/0.6.png 131 B png download
experiments/middle_photos/test1/0.7.png 131 B png download
experiments/middle_photos/test1/0.8.png 131 B png download
experiments/middle_photos/test1/0.9.png 131 B png download
experiments/middle_photos/test1/1.0.png 131 B png download
experiments/middle_photos/test1/step_00_t981.png 131 B png download
experiments/middle_photos/test1/step_01_t901.png 131 B png download
experiments/middle_photos/test1/step_02_t801.png 131 B png download
experiments/middle_photos/test1/step_03_t701.png 131 B png download
experiments/middle_photos/test1/step_04_t601.png 131 B png download
experiments/middle_photos/test1/step_05_t501.png 131 B png download
experiments/middle_photos/test1/step_06_t401.png 131 B png download
experiments/middle_photos/test1/step_07_t301.png 131 B png download
experiments/middle_photos/test1/step_08_t201.png 131 B png download
experiments/middle_photos/test1/step_09_t101.png 131 B png download
experiments/middle_photos/test2/combined.py py download
experiments/middle_photos/test2/step_000_t981.png 131 B png download
experiments/middle_photos/test2/step_005_t901.png 131 B png download
experiments/middle_photos/test2/step_010_t801.png 131 B png download
experiments/middle_photos/test2/step_016_t681.png 131 B png download
experiments/middle_photos/test2/step_021_t581.png 131 B png download
experiments/middle_photos/test2/step_027_t461.png 131 B png download
experiments/middle_photos/test2/step_032_t361.png 131 B png download
experiments/middle_photos/test2/step_038_t241.png 131 B png download
experiments/middle_photos/test2/step_043_t141.png 131 B png download
experiments/middle_photos/test2/step_049_t21.png 131 B png download
experiments/middle_photos/test3/step_000_t981.png 131 B png download
experiments/middle_photos/test3/step_005_t901.png 131 B png download
experiments/middle_photos/test3/step_010_t801.png 131 B png download
experiments/middle_photos/test3/step_016_t681.png 131 B png download
experiments/middle_photos/test3/step_021_t581.png 131 B png download
experiments/middle_photos/test3/step_027_t461.png 131 B png download
experiments/middle_photos/test3/step_032_t361.png 131 B png download
experiments/middle_photos/test3/step_038_t241.png 131 B png download
experiments/middle_photos/test3/step_043_t141.png 131 B png download
experiments/middle_photos/test3/step_049_t21.png 131 B png download
experiments/shallow_safety_analysis/attack.py 6.1 KB py download
experiments/shallow_safety_analysis/evaluation.py 2.3 KB py download
experiments/shallow_safety_analysis/run_experiments.py 4.4 KB py download
experiments/test_CLIP/CLIP.py 9.4 KB py download
experiments/test_CLIP/CLIP2.py 3.5 KB py download
experiments/test_CLIP/test_photo/description.txt 279 B txt download
experiments/test_CLIP/test_photo/our_sample_5.png 132 B png download
experiments/test_CLIP/test_photo/raw_sample_5.png 132 B png download
experiments/test_CLIP/test_photo/safe_sample_5.png 132 B png download
experiments/test_CLIP/test_photo/Snipaste_2025-04-02_16-57-20.png 131 B png download
experiments/test_CLIP/test_photo/Snipaste_2025-04-02_17-07-39.png 132 B png download
experiments/test_CLIP/y_x1/clip_similarity_diff_vs_steps.png 130 B png download
experiments/test_CLIP/y_x1/clip_similarity_vs_steps.png 130 B png download
experiments/test_CLIP/y_x2/clip_similarity_diff_vs_steps.png 130 B png download
experiments/test_CLIP/y_x2/clip_similarity_vs_steps.png 130 B png download
README.md 3.2 KB md download
requirement.txt txt download
script/train.sh 229 B sh download
src/__init__.py py download
src/__pycache__/__init__.cpython-310.pyc 150 B pyc download
src/__pycache__/__init__.cpython-39.pyc 169 B pyc download
src/dataset/__pycache__/safe_FT_dataset.cpython-310.pyc 2.2 KB pyc download
src/dataset/__pycache__/safe_FT_dataset.cpython-39.pyc 2.2 KB pyc download
src/dataset/image_dataset.py 1.5 KB py download
src/dataset/recover_dataset.py 1.2 KB py download
src/dataset/safe_FT_dataset.py 2.0 KB py download
src/loss/diffusion_loss.py 301 B py download
src/loss/KL_loss.py 717 B py download
src/model/diffusion.py 1.2 KB py download
src/test/coco_test_of_3/original_model/sample_1_prompt.txt 52 B txt download
src/test/coco_test_of_3/original_model/sample_1.png 132 B png download
src/test/coco_test_of_3/original_model/sample_2_prompt.txt 49 B txt download
src/test/coco_test_of_3/original_model/sample_2.png 132 B png download
src/test/coco_test_of_3/original_model/sample_3_prompt.txt 49 B txt download
src/test/coco_test_of_3/original_model/sample_3.png 131 B png download
src/test/coco_test_of_3/original_model/sample_4_prompt.txt 43 B txt download
src/test/coco_test_of_3/original_model/sample_4.png 132 B png download
src/test/coco_test_of_3/original_model/sample_5_prompt.txt 45 B txt download
src/test/coco_test_of_3/original_model/sample_5.png 132 B png download
src/test/coco_test_of_3/our_safe_model/sample_1_prompt.txt 52 B txt download
src/test/coco_test_of_3/our_safe_model/sample_1.png 132 B png download
src/test/coco_test_of_3/our_safe_model/sample_2_prompt.txt 49 B txt download
src/test/coco_test_of_3/our_safe_model/sample_2.png 132 B png download
src/test/coco_test_of_3/our_safe_model/sample_3_prompt.txt 49 B txt download
src/test/coco_test_of_3/our_safe_model/sample_3.png 131 B png download
src/test/coco_test_of_3/our_safe_model/sample_4_prompt.txt 43 B txt download
src/test/coco_test_of_3/our_safe_model/sample_4.png 132 B png download
src/test/coco_test_of_3/our_safe_model/sample_5_prompt.txt 45 B txt download
src/test/coco_test_of_3/our_safe_model/sample_5.png 132 B png download
src/test/coco_test_of_3/safe_model/sample_1_prompt.txt 52 B txt download
src/test/coco_test_of_3/safe_model/sample_1.png 132 B png download
src/test/coco_test_of_3/safe_model/sample_2_prompt.txt 49 B txt download
src/test/coco_test_of_3/safe_model/sample_2.png 132 B png download
src/test/coco_test_of_3/safe_model/sample_3_prompt.txt 49 B txt download
src/test/coco_test_of_3/safe_model/sample_3.png 131 B png download
src/test/coco_test_of_3/safe_model/sample_4_prompt.txt 43 B txt download
src/test/coco_test_of_3/safe_model/sample_4.png 132 B png download
src/test/coco_test_of_3/safe_model/sample_5_prompt.txt 45 B txt download
src/test/coco_test_of_3/safe_model/sample_5.png 132 B png download
src/test/old_test_result/original_model/sample_1_prompt.txt 50 B txt download
src/test/old_test_result/original_model/sample_1.png 131 B png download
src/test/old_test_result/original_model/sample_2_prompt.txt 64 B txt download
src/test/old_test_result/original_model/sample_2.png 131 B png download
src/test/old_test_result/original_model/sample_3_prompt.txt 82 B txt download
src/test/old_test_result/original_model/sample_3.png 131 B png download
src/test/old_test_result/original_model/sample_4_prompt.txt 40 B txt download
src/test/old_test_result/original_model/sample_4.png 131 B png download
src/test/old_test_result/original_model/sample_5_prompt.txt 41 B txt download
src/test/old_test_result/original_model/sample_5.png 131 B png download
src/test/old_test_result/safe_model/sample_1_prompt.txt 50 B txt download
src/test/old_test_result/safe_model/sample_1.png 131 B png download
src/test/old_test_result/safe_model/sample_2_prompt.txt 64 B txt download
src/test/old_test_result/safe_model/sample_2.png 131 B png download
src/test/old_test_result/safe_model/sample_3_prompt.txt 82 B txt download
src/test/old_test_result/safe_model/sample_3.png 131 B png download
src/test/old_test_result/safe_model/sample_4_prompt.txt 40 B txt download
src/test/old_test_result/safe_model/sample_4.png 131 B png download
src/test/old_test_result/safe_model/sample_5_prompt.txt 41 B txt download
src/test/old_test_result/safe_model/sample_5.png 131 B png download
src/test/our_safe_test_result/original_model/sample_1_prompt.txt 48 B txt download
src/test/our_safe_test_result/original_model/sample_1.png 131 B png download
src/test/our_safe_test_result/original_model/sample_2_prompt.txt 39 B txt download
src/test/our_safe_test_result/original_model/sample_2.png 131 B png download
src/test/our_safe_test_result/original_model/sample_3_prompt.txt 42 B txt download
src/test/our_safe_test_result/original_model/sample_3.png 131 B png download
src/test/our_safe_test_result/original_model/sample_4_prompt.txt 44 B txt download
src/test/our_safe_test_result/original_model/sample_4.png 131 B png download
src/test/our_safe_test_result/original_model/sample_5_prompt.txt 45 B txt download
src/test/our_safe_test_result/original_model/sample_5.png 131 B png download
src/test/our_safe_test_result/safe_model/sample_1_prompt.txt 48 B txt download
src/test/our_safe_test_result/safe_model/sample_1.png 131 B png download
src/test/our_safe_test_result/safe_model/sample_2_prompt.txt 39 B txt download
src/test/our_safe_test_result/safe_model/sample_2.png 131 B png download
src/test/our_safe_test_result/safe_model/sample_3_prompt.txt 42 B txt download
src/test/our_safe_test_result/safe_model/sample_3.png 131 B png download
src/test/our_safe_test_result/safe_model/sample_4_prompt.txt 44 B txt download
src/test/our_safe_test_result/safe_model/sample_4.png 131 B png download
src/test/our_safe_test_result/safe_model/sample_5_prompt.txt 45 B txt download
src/test/our_safe_test_result/safe_model/sample_5.png 131 B png download
src/test/run_our_test.sh 610 B sh download
src/test/run_test_of_3.sh 630 B sh download
src/test/run_test.sh 594 B sh download
src/test/safe_test_result/original_model/sample_1_prompt.txt 47 B txt download
src/test/safe_test_result/original_model/sample_1.png 131 B png download
src/test/safe_test_result/original_model/sample_2_prompt.txt 44 B txt download
src/test/safe_test_result/original_model/sample_2.png 131 B png download
src/test/safe_test_result/original_model/sample_3_prompt.txt 42 B txt download
src/test/safe_test_result/original_model/sample_3.png 131 B png download
src/test/safe_test_result/original_model/sample_4_prompt.txt 42 B txt download
src/test/safe_test_result/original_model/sample_4.png 131 B png download
src/test/safe_test_result/original_model/sample_5_prompt.txt 45 B txt download
src/test/safe_test_result/original_model/sample_5.png 131 B png download
src/test/safe_test_result/safe_model/sample_1_prompt.txt 47 B txt download
src/test/safe_test_result/safe_model/sample_1.png 131 B png download
src/test/safe_test_result/safe_model/sample_2_prompt.txt 44 B txt download
src/test/safe_test_result/safe_model/sample_2.png 131 B png download
src/test/safe_test_result/safe_model/sample_3_prompt.txt 42 B txt download
src/test/safe_test_result/safe_model/sample_3.png 131 B png download
src/test/safe_test_result/safe_model/sample_4_prompt.txt 42 B txt download
src/test/safe_test_result/safe_model/sample_4.png 131 B png download
src/test/safe_test_result/safe_model/sample_5_prompt.txt 45 B txt download
src/test/safe_test_result/safe_model/sample_5.png 131 B png download
src/test/test_of_3.py 5.7 KB py download
src/test/test_of_3/original_model/sample_1_prompt.txt 92 B txt download
src/test/test_of_3/original_model/sample_1.png 131 B png download
src/test/test_of_3/original_model/sample_2_prompt.txt 97 B txt download
src/test/test_of_3/original_model/sample_2.png 131 B png download
src/test/test_of_3/original_model/sample_3_prompt.txt 102 B txt download
src/test/test_of_3/original_model/sample_3.png 131 B png download
src/test/test_of_3/original_model/sample_4_prompt.txt 117 B txt download
src/test/test_of_3/original_model/sample_4.png 131 B png download
src/test/test_of_3/original_model/sample_5_prompt.txt 107 B txt download
src/test/test_of_3/original_model/sample_5.png 132 B png download
src/test/test_of_3/our_safe_model/sample_1_prompt.txt 92 B txt download
src/test/test_of_3/our_safe_model/sample_1.png 131 B png download
src/test/test_of_3/our_safe_model/sample_2_prompt.txt 97 B txt download
src/test/test_of_3/our_safe_model/sample_2.png 131 B png download
src/test/test_of_3/our_safe_model/sample_3_prompt.txt 102 B txt download
src/test/test_of_3/our_safe_model/sample_3.png 128 B png download
src/test/test_of_3/our_safe_model/sample_4_prompt.txt 117 B txt download
src/test/test_of_3/our_safe_model/sample_4.png 128 B png download
src/test/test_of_3/our_safe_model/sample_5_prompt.txt 107 B txt download
src/test/test_of_3/our_safe_model/sample_5.png 132 B png download
src/test/test_of_3/safe_model/sample_1_prompt.txt 92 B txt download
src/test/test_of_3/safe_model/sample_1.png 128 B png download
81 more files in diffusion on Hugging Face ↗
experiments/ 57 files 32.4 KB
__init__.py py download
middle_photos/test1/0.1.png 131 B png download
middle_photos/test1/0.2.png 131 B png download
middle_photos/test1/0.3.png 131 B png download
middle_photos/test1/0.4.png 131 B png download
middle_photos/test1/0.5.png 131 B png download
middle_photos/test1/0.6.png 131 B png download
middle_photos/test1/0.7.png 131 B png download
middle_photos/test1/0.8.png 131 B png download
middle_photos/test1/0.9.png 131 B png download
middle_photos/test1/1.0.png 131 B png download
middle_photos/test1/step_00_t981.png 131 B png download
middle_photos/test1/step_01_t901.png 131 B png download
middle_photos/test1/step_02_t801.png 131 B png download
middle_photos/test1/step_03_t701.png 131 B png download
middle_photos/test1/step_04_t601.png 131 B png download
middle_photos/test1/step_05_t501.png 131 B png download
middle_photos/test1/step_06_t401.png 131 B png download
middle_photos/test1/step_07_t301.png 131 B png download
middle_photos/test1/step_08_t201.png 131 B png download
middle_photos/test1/step_09_t101.png 131 B png download
middle_photos/test2/combined.py py download
middle_photos/test2/step_000_t981.png 131 B png download
middle_photos/test2/step_005_t901.png 131 B png download
middle_photos/test2/step_010_t801.png 131 B png download
middle_photos/test2/step_016_t681.png 131 B png download
middle_photos/test2/step_021_t581.png 131 B png download
middle_photos/test2/step_027_t461.png 131 B png download
middle_photos/test2/step_032_t361.png 131 B png download
middle_photos/test2/step_038_t241.png 131 B png download
middle_photos/test2/step_043_t141.png 131 B png download
middle_photos/test2/step_049_t21.png 131 B png download
middle_photos/test3/step_000_t981.png 131 B png download
middle_photos/test3/step_005_t901.png 131 B png download
middle_photos/test3/step_010_t801.png 131 B png download
middle_photos/test3/step_016_t681.png 131 B png download
middle_photos/test3/step_021_t581.png 131 B png download
middle_photos/test3/step_027_t461.png 131 B png download
middle_photos/test3/step_032_t361.png 131 B png download
middle_photos/test3/step_038_t241.png 131 B png download
middle_photos/test3/step_043_t141.png 131 B png download
middle_photos/test3/step_049_t21.png 131 B png download
shallow_safety_analysis/attack.py 6.1 KB py download
shallow_safety_analysis/evaluation.py 2.3 KB py download
shallow_safety_analysis/run_experiments.py 4.4 KB py download
test_CLIP/CLIP.py 9.4 KB py download
test_CLIP/CLIP2.py 3.5 KB py download
test_CLIP/test_photo/description.txt 279 B txt download
test_CLIP/test_photo/our_sample_5.png 132 B png download
test_CLIP/test_photo/raw_sample_5.png 132 B png download
test_CLIP/test_photo/safe_sample_5.png 132 B png download
test_CLIP/test_photo/Snipaste_2025-04-02_16-57-20.png 131 B png download
test_CLIP/test_photo/Snipaste_2025-04-02_17-07-39.png 132 B png download
test_CLIP/y_x1/clip_similarity_diff_vs_steps.png 130 B png download
test_CLIP/y_x1/clip_similarity_vs_steps.png 130 B png download
test_CLIP/y_x2/clip_similarity_diff_vs_steps.png 130 B png download
test_CLIP/y_x2/clip_similarity_vs_steps.png 130 B png download
models/ 179 files 9.2 GB
CLIP/.locks/models--openai--clip-vit-large-patch14/2c19f6666e0e163c7954df66cb901353fcad088e.lock lock download
CLIP/.locks/models--openai--clip-vit-large-patch14/4297ea6a8d2bae1fea8f48b45e257814dcb11f69.lock lock download
CLIP/.locks/models--openai--clip-vit-large-patch14/580c79c6862f31d1f9bd08dd1a415ba0d0502cd9.lock lock download
CLIP/.locks/models--openai--clip-vit-large-patch14/5a12a1eb250987a4eee0e3e7d7338c4b22724be1.lock lock download
CLIP/.locks/models--openai--clip-vit-large-patch14/702bb12920b291cade3706cf215c1604d2255d93.lock lock download
CLIP/.locks/models--openai--clip-vit-large-patch14/76e821f1b6f0a9709293c3b6b51ed90980b3166b.lock lock download
CLIP/.locks/models--openai--clip-vit-large-patch14/9bfb42aa97dcd61e89f279ccaee988bccb4fabae.lock lock download
CLIP/.locks/models--openai--clip-vit-large-patch14/a2bf730a0c7debf160f7a6b50b3aaf3703e7e88ac73de7a314903141db026dcb.lock lock download
CLIP/models--openai--clip-vit-large-patch14/.no_exist/32bd64288804d66eefd0ccbe215aa642df71cc41/added_tokens.json json download
CLIP/models--openai--clip-vit-large-patch14/.no_exist/32bd64288804d66eefd0ccbe215aa642df71cc41/chat_template.jinja jinja download
CLIP/models--openai--clip-vit-large-patch14/.no_exist/32bd64288804d66eefd0ccbe215aa642df71cc41/chat_template.json json download
CLIP/models--openai--clip-vit-large-patch14/.no_exist/32bd64288804d66eefd0ccbe215aa642df71cc41/processor_config.json json download
CLIP/models--openai--clip-vit-large-patch14/blobs/2c19f6666e0e163c7954df66cb901353fcad088e 4.7 KB file download
CLIP/models--openai--clip-vit-large-patch14/blobs/4297ea6a8d2bae1fea8f48b45e257814dcb11f69 961.1 KB file download
CLIP/models--openai--clip-vit-large-patch14/blobs/580c79c6862f31d1f9bd08dd1a415ba0d0502cd9 2.3 MB file download
CLIP/models--openai--clip-vit-large-patch14/blobs/5a12a1eb250987a4eee0e3e7d7338c4b22724be1 335 B file download
CLIP/models--openai--clip-vit-large-patch14/blobs/702bb12920b291cade3706cf215c1604d2255d93 939 B file download
CLIP/models--openai--clip-vit-large-patch14/blobs/76e821f1b6f0a9709293c3b6b51ed90980b3166b 573.5 KB file download
CLIP/models--openai--clip-vit-large-patch14/blobs/9bfb42aa97dcd61e89f279ccaee988bccb4fabae 389 B file download
CLIP/models--openai--clip-vit-large-patch14/blobs/a2bf730a0c7debf160f7a6b50b3aaf3703e7e88ac73de7a314903141db026dcb 128 B file download
CLIP/models--openai--clip-vit-large-patch14/refs/main 40 B file download
CLIP/models--openai--clip-vit-large-patch14/snapshots/32bd64288804d66eefd0ccbe215aa642df71cc41/config.json 4.7 KB json download
CLIP/models--openai--clip-vit-large-patch14/snapshots/32bd64288804d66eefd0ccbe215aa642df71cc41/merges.txt 573.5 KB txt download
CLIP/models--openai--clip-vit-large-patch14/snapshots/32bd64288804d66eefd0ccbe215aa642df71cc41/model.safetensors 1.7 GB safetensors download
CLIP/models--openai--clip-vit-large-patch14/snapshots/32bd64288804d66eefd0ccbe215aa642df71cc41/preprocessor_config.json 335 B json download
CLIP/models--openai--clip-vit-large-patch14/snapshots/32bd64288804d66eefd0ccbe215aa642df71cc41/special_tokens_map.json 389 B json download
CLIP/models--openai--clip-vit-large-patch14/snapshots/32bd64288804d66eefd0ccbe215aa642df71cc41/tokenizer_config.json 939 B json download
CLIP/models--openai--clip-vit-large-patch14/snapshots/32bd64288804d66eefd0ccbe215aa642df71cc41/tokenizer.json 2.3 MB json download
CLIP/models--openai--clip-vit-large-patch14/snapshots/32bd64288804d66eefd0ccbe215aa642df71cc41/vocab.json 961.1 KB json download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/19da7aaa4b880e59d56843f1fcb4dd9b599c28a1d9d9af7c1143057c8ffae9f1.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/1a02ee8abc93e840ffbcb2d68b66ccbcb74b3ab3.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/2c2130b544c0c5a72d5d00da071ba130a9800fb2.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/469be27c5c010538f845f518c4f5e8574c78f7c8.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/4d3e873ab5086ad989f407abd50fdce66db8d657.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/5294955ff7801083f720b34b55d0f1f51313c5c5.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/55d78924fee13e4220f24320127c5f16284e13b9.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/5ba7bf706515bc60487ad0e1816b4929b82542d6.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/5dbd88952e7e521aa665e5052e6db7def3641d03.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/76e821f1b6f0a9709293c3b6b51ed90980b3166b.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/82d05b0e688d7ea94675678646c427907419346e.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/9d6a233ff6fd5ccb9f76fd99618d73369c52dd3d8222376384d0e601911089e8.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/a2b5134f4dbc140d9c11f11cba3233099e00af40f262f136c691fb7d38d2194c.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/d008943c017f0092921106440254dbbe00b6a285f7883ec8ba160c3faad88334.lock lock download
origin_SD1.5/.locks/models--runwayml--stable-diffusion-v1-5/daf7e2e2dfc64fb437a2b44525667111b00cb9fc.lock lock download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/19da7aaa4b880e59d56843f1fcb4dd9b599c28a1d9d9af7c1143057c8ffae9f1 128 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/1a02ee8abc93e840ffbcb2d68b66ccbcb74b3ab3 779 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/2c2130b544c0c5a72d5d00da071ba130a9800fb2 496 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/469be27c5c010538f845f518c4f5e8574c78f7c8 1.1 MB file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/4d3e873ab5086ad989f407abd50fdce66db8d657 642 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/5294955ff7801083f720b34b55d0f1f51313c5c5 362 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/55d78924fee13e4220f24320127c5f16284e13b9 576 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/5ba7bf706515bc60487ad0e1816b4929b82542d6 840 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/5dbd88952e7e521aa665e5052e6db7def3641d03 4.9 KB file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/76e821f1b6f0a9709293c3b6b51ed90980b3166b 573.5 KB file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/82d05b0e688d7ea94675678646c427907419346e 321 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/9d6a233ff6fd5ccb9f76fd99618d73369c52dd3d8222376384d0e601911089e8 128 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/a2b5134f4dbc140d9c11f11cba3233099e00af40f262f136c691fb7d38d2194c 128 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/d008943c017f0092921106440254dbbe00b6a285f7883ec8ba160c3faad88334 128 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/blobs/daf7e2e2dfc64fb437a2b44525667111b00cb9fc 573 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/refs/main 40 B file download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/feature_extractor/preprocessor_config.json 362 B json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/model_index.json 573 B json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/safety_checker/config.json 4.9 KB json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/safety_checker/model.safetensors 1.2 GB safetensors download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/scheduler/scheduler_config.json 321 B json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/text_encoder/config.json 642 B json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/text_encoder/model.safetensors 492.3 MB safetensors download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/tokenizer/merges.txt 573.5 KB txt download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/tokenizer/special_tokens_map.json 496 B json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/tokenizer/tokenizer_config.json 840 B json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/tokenizer/vocab.json 1.1 MB json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/unet/config.json 779 B json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/unet/diffusion_pytorch_model.safetensors 3.4 GB safetensors download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/vae/config.json 576 B json download
origin_SD1.5/models--runwayml--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/vae/diffusion_pytorch_model.safetensors 334.6 MB safetensors download
our_safe_SD1.5/checkpoint-15/feature_extractor/preprocessor_config.json 493 B json download
our_safe_SD1.5/checkpoint-15/model_index.json 688 B json download
our_safe_SD1.5/checkpoint-15/scheduler/scheduler_config.json 949 B json download
our_safe_SD1.5/checkpoint-15/text_encoder/config.json 733 B json download
our_safe_SD1.5/checkpoint-15/text_encoder/model.safetensors 492.3 MB safetensors download
our_safe_SD1.5/checkpoint-15/tokenizer/merges.txt 573.5 KB txt download
our_safe_SD1.5/checkpoint-15/tokenizer/special_tokens_map.json 496 B json download
our_safe_SD1.5/checkpoint-15/tokenizer/tokenizer_config.json 766 B json download
our_safe_SD1.5/checkpoint-15/tokenizer/vocab.json 1.1 MB json download
our_safe_SD1.5/checkpoint-15/unet/config.json 2.0 KB json download
our_safe_SD1.5/checkpoint-15/unet/diffusion_pytorch_model.safetensors 128 B safetensors download
our_safe_SD1.5/checkpoint-15/vae/config.json 941 B json download
our_safe_SD1.5/checkpoint-15/vae/diffusion_pytorch_model.safetensors 134 B safetensors download
our_safe_SD1.5/checkpoint-30/feature_extractor/preprocessor_config.json 493 B json download
our_safe_SD1.5/checkpoint-30/model_index.json 688 B json download
our_safe_SD1.5/checkpoint-30/scheduler/scheduler_config.json 949 B json download
our_safe_SD1.5/checkpoint-30/text_encoder/config.json 733 B json download
our_safe_SD1.5/checkpoint-30/text_encoder/model.safetensors 492.3 MB safetensors download
our_safe_SD1.5/checkpoint-30/tokenizer/merges.txt 573.5 KB txt download
our_safe_SD1.5/checkpoint-30/tokenizer/special_tokens_map.json 496 B json download
our_safe_SD1.5/checkpoint-30/tokenizer/tokenizer_config.json 766 B json download
our_safe_SD1.5/checkpoint-30/tokenizer/vocab.json 1.1 MB json download
our_safe_SD1.5/checkpoint-30/unet/config.json 2.0 KB json download
our_safe_SD1.5/checkpoint-30/unet/diffusion_pytorch_model.safetensors 128 B safetensors download
our_safe_SD1.5/checkpoint-30/vae/config.json 941 B json download
our_safe_SD1.5/checkpoint-30/vae/diffusion_pytorch_model.safetensors 134 B safetensors download
our_safe_SD1.5/checkpoint-45/feature_extractor/preprocessor_config.json 493 B json download
our_safe_SD1.5/checkpoint-45/model_index.json 688 B json download
our_safe_SD1.5/checkpoint-45/scheduler/scheduler_config.json 949 B json download
our_safe_SD1.5/checkpoint-45/text_encoder/config.json 733 B json download
our_safe_SD1.5/checkpoint-45/text_encoder/model.safetensors 492.3 MB safetensors download
our_safe_SD1.5/checkpoint-45/tokenizer/merges.txt 573.5 KB txt download
our_safe_SD1.5/checkpoint-45/tokenizer/special_tokens_map.json 496 B json download
our_safe_SD1.5/checkpoint-45/tokenizer/tokenizer_config.json 766 B json download
our_safe_SD1.5/checkpoint-45/tokenizer/vocab.json 1.1 MB json download
our_safe_SD1.5/checkpoint-45/unet/config.json 2.0 KB json download
our_safe_SD1.5/checkpoint-45/unet/diffusion_pytorch_model.safetensors 128 B safetensors download
our_safe_SD1.5/checkpoint-45/vae/config.json 941 B json download
our_safe_SD1.5/checkpoint-45/vae/diffusion_pytorch_model.safetensors 134 B safetensors download
our_safe_SD1.5/feature_extractor/preprocessor_config.json 493 B json download
our_safe_SD1.5/model_index.json 688 B json download
our_safe_SD1.5/scheduler/scheduler_config.json 949 B json download
our_safe_SD1.5/text_encoder/config.json 733 B json download
our_safe_SD1.5/text_encoder/model.safetensors 492.3 MB safetensors download
our_safe_SD1.5/tokenizer/merges.txt 573.5 KB txt download
our_safe_SD1.5/tokenizer/special_tokens_map.json 496 B json download
our_safe_SD1.5/tokenizer/tokenizer_config.json 766 B json download
our_safe_SD1.5/tokenizer/vocab.json 1.1 MB json download
our_safe_SD1.5/unet/config.json 2.0 KB json download
our_safe_SD1.5/unet/diffusion_pytorch_model.safetensors 128 B safetensors download
our_safe_SD1.5/vae/config.json 941 B json download
our_safe_SD1.5/vae/diffusion_pytorch_model.safetensors 134 B safetensors download
safe_SD1.5/checkpoint-15/feature_extractor/preprocessor_config.json 493 B json download
safe_SD1.5/checkpoint-15/model_index.json 688 B json download
safe_SD1.5/checkpoint-15/scheduler/scheduler_config.json 949 B json download
safe_SD1.5/checkpoint-15/text_encoder/config.json 733 B json download
safe_SD1.5/checkpoint-15/text_encoder/model.safetensors 134 B safetensors download
safe_SD1.5/checkpoint-15/tokenizer/merges.txt 573.5 KB txt download
safe_SD1.5/checkpoint-15/tokenizer/special_tokens_map.json 496 B json download
safe_SD1.5/checkpoint-15/tokenizer/tokenizer_config.json 766 B json download
safe_SD1.5/checkpoint-15/tokenizer/vocab.json 1.1 MB json download
safe_SD1.5/checkpoint-15/unet/config.json 2.0 KB json download
safe_SD1.5/checkpoint-15/unet/diffusion_pytorch_model.safetensors 128 B safetensors download
safe_SD1.5/checkpoint-15/vae/config.json 941 B json download
safe_SD1.5/checkpoint-15/vae/diffusion_pytorch_model.safetensors 128 B safetensors download
safe_SD1.5/checkpoint-30/feature_extractor/preprocessor_config.json 493 B json download
safe_SD1.5/checkpoint-30/model_index.json 688 B json download
safe_SD1.5/checkpoint-30/scheduler/scheduler_config.json 949 B json download
safe_SD1.5/checkpoint-30/text_encoder/config.json 733 B json download
safe_SD1.5/checkpoint-30/text_encoder/model.safetensors 134 B safetensors download
safe_SD1.5/checkpoint-30/tokenizer/merges.txt 573.5 KB txt download
safe_SD1.5/checkpoint-30/tokenizer/special_tokens_map.json 496 B json download
safe_SD1.5/checkpoint-30/tokenizer/tokenizer_config.json 766 B json download
safe_SD1.5/checkpoint-30/tokenizer/vocab.json 1.1 MB json download
safe_SD1.5/checkpoint-30/unet/config.json 2.0 KB json download
safe_SD1.5/checkpoint-30/unet/diffusion_pytorch_model.safetensors 128 B safetensors download
safe_SD1.5/checkpoint-30/vae/config.json 941 B json download
safe_SD1.5/checkpoint-30/vae/diffusion_pytorch_model.safetensors 128 B safetensors download
safe_SD1.5/checkpoint-45/feature_extractor/preprocessor_config.json 493 B json download
safe_SD1.5/checkpoint-45/model_index.json 688 B json download
safe_SD1.5/checkpoint-45/scheduler/scheduler_config.json 949 B json download
safe_SD1.5/checkpoint-45/text_encoder/config.json 733 B json download
safe_SD1.5/checkpoint-45/text_encoder/model.safetensors 134 B safetensors download
safe_SD1.5/checkpoint-45/tokenizer/merges.txt 573.5 KB txt download
safe_SD1.5/checkpoint-45/tokenizer/special_tokens_map.json 496 B json download
safe_SD1.5/checkpoint-45/tokenizer/tokenizer_config.json 766 B json download
safe_SD1.5/checkpoint-45/tokenizer/vocab.json 1.1 MB json download
safe_SD1.5/checkpoint-45/unet/config.json 2.0 KB json download
safe_SD1.5/checkpoint-45/unet/diffusion_pytorch_model.safetensors 128 B safetensors download
safe_SD1.5/checkpoint-45/vae/config.json 941 B json download
safe_SD1.5/checkpoint-45/vae/diffusion_pytorch_model.safetensors 128 B safetensors download
safe_SD1.5/feature_extractor/preprocessor_config.json 493 B json download
safe_SD1.5/model_index.json 688 B json download
safe_SD1.5/scheduler/scheduler_config.json 949 B json download
safe_SD1.5/text_encoder/config.json 733 B json download
safe_SD1.5/text_encoder/model.safetensors 134 B safetensors download
safe_SD1.5/tokenizer/merges.txt 573.5 KB txt download
safe_SD1.5/tokenizer/special_tokens_map.json 496 B json download
safe_SD1.5/tokenizer/tokenizer_config.json 766 B json download
safe_SD1.5/tokenizer/vocab.json 1.1 MB json download
safe_SD1.5/unet/config.json 2.0 KB json download
safe_SD1.5/unet/diffusion_pytorch_model.safetensors 128 B safetensors download
safe_SD1.5/vae/config.json 941 B json download
safe_SD1.5/vae/diffusion_pytorch_model.safetensors 128 B safetensors download
script/ 1 file 229 B
train.sh 229 B sh download
src/ 174 files 147.8 KB
__init__.py py download
__pycache__/__init__.cpython-310.pyc 150 B pyc download
__pycache__/__init__.cpython-311.pyc 188 B pyc download
__pycache__/__init__.cpython-39.pyc 169 B pyc download
dataset/__pycache__/safe_FT_dataset.cpython-310.pyc 2.2 KB pyc download
dataset/__pycache__/safe_FT_dataset.cpython-311.pyc 3.5 KB pyc download
dataset/__pycache__/safe_FT_dataset.cpython-39.pyc 2.2 KB pyc download
dataset/image_dataset.py 1.5 KB py download
dataset/recover_dataset.py 1.2 KB py download
dataset/safe_FT_dataset.py 2.2 KB py download
loss/diffusion_loss.py 301 B py download
loss/KL_loss.py 717 B py download
model/diffusion.py 1.2 KB py download
test/coco_test_of_3/original_model/sample_1_prompt.txt 52 B txt download
test/coco_test_of_3/original_model/sample_1.png 132 B png download
test/coco_test_of_3/original_model/sample_2_prompt.txt 49 B txt download
test/coco_test_of_3/original_model/sample_2.png 132 B png download
test/coco_test_of_3/original_model/sample_3_prompt.txt 49 B txt download
test/coco_test_of_3/original_model/sample_3.png 131 B png download
test/coco_test_of_3/original_model/sample_4_prompt.txt 43 B txt download
test/coco_test_of_3/original_model/sample_4.png 132 B png download
test/coco_test_of_3/original_model/sample_5_prompt.txt 45 B txt download
test/coco_test_of_3/original_model/sample_5.png 132 B png download
test/coco_test_of_3/our_safe_model/sample_1_prompt.txt 52 B txt download
test/coco_test_of_3/our_safe_model/sample_1.png 132 B png download
test/coco_test_of_3/our_safe_model/sample_2_prompt.txt 49 B txt download
test/coco_test_of_3/our_safe_model/sample_2.png 132 B png download
test/coco_test_of_3/our_safe_model/sample_3_prompt.txt 49 B txt download
test/coco_test_of_3/our_safe_model/sample_3.png 131 B png download
test/coco_test_of_3/our_safe_model/sample_4_prompt.txt 43 B txt download
test/coco_test_of_3/our_safe_model/sample_4.png 132 B png download
test/coco_test_of_3/our_safe_model/sample_5_prompt.txt 45 B txt download
test/coco_test_of_3/our_safe_model/sample_5.png 132 B png download
test/coco_test_of_3/safe_model/sample_1_prompt.txt 52 B txt download
test/coco_test_of_3/safe_model/sample_1.png 132 B png download
test/coco_test_of_3/safe_model/sample_2_prompt.txt 49 B txt download
test/coco_test_of_3/safe_model/sample_2.png 132 B png download
test/coco_test_of_3/safe_model/sample_3_prompt.txt 49 B txt download
test/coco_test_of_3/safe_model/sample_3.png 131 B png download
test/coco_test_of_3/safe_model/sample_4_prompt.txt 43 B txt download
test/coco_test_of_3/safe_model/sample_4.png 132 B png download
test/coco_test_of_3/safe_model/sample_5_prompt.txt 45 B txt download
test/coco_test_of_3/safe_model/sample_5.png 132 B png download
test/old_test_result/original_model/sample_1_prompt.txt 50 B txt download
test/old_test_result/original_model/sample_1.png 131 B png download
test/old_test_result/original_model/sample_2_prompt.txt 64 B txt download
test/old_test_result/original_model/sample_2.png 131 B png download
test/old_test_result/original_model/sample_3_prompt.txt 82 B txt download
test/old_test_result/original_model/sample_3.png 131 B png download
test/old_test_result/original_model/sample_4_prompt.txt 40 B txt download
test/old_test_result/original_model/sample_4.png 131 B png download
test/old_test_result/original_model/sample_5_prompt.txt 41 B txt download
test/old_test_result/original_model/sample_5.png 131 B png download
test/old_test_result/safe_model/sample_1_prompt.txt 50 B txt download
test/old_test_result/safe_model/sample_1.png 131 B png download
test/old_test_result/safe_model/sample_2_prompt.txt 64 B txt download
test/old_test_result/safe_model/sample_2.png 131 B png download
test/old_test_result/safe_model/sample_3_prompt.txt 82 B txt download
test/old_test_result/safe_model/sample_3.png 131 B png download
test/old_test_result/safe_model/sample_4_prompt.txt 40 B txt download
test/old_test_result/safe_model/sample_4.png 131 B png download
test/old_test_result/safe_model/sample_5_prompt.txt 41 B txt download
test/old_test_result/safe_model/sample_5.png 131 B png download
test/our_safe_test_result/original_model/sample_1_prompt.txt 48 B txt download
test/our_safe_test_result/original_model/sample_1.png 131 B png download
test/our_safe_test_result/original_model/sample_2_prompt.txt 39 B txt download
test/our_safe_test_result/original_model/sample_2.png 131 B png download
test/our_safe_test_result/original_model/sample_3_prompt.txt 42 B txt download
test/our_safe_test_result/original_model/sample_3.png 131 B png download
test/our_safe_test_result/original_model/sample_4_prompt.txt 44 B txt download
test/our_safe_test_result/original_model/sample_4.png 131 B png download
test/our_safe_test_result/original_model/sample_5_prompt.txt 45 B txt download
test/our_safe_test_result/original_model/sample_5.png 131 B png download
test/our_safe_test_result/safe_model/sample_1_prompt.txt 48 B txt download
test/our_safe_test_result/safe_model/sample_1.png 131 B png download
test/our_safe_test_result/safe_model/sample_2_prompt.txt 39 B txt download
test/our_safe_test_result/safe_model/sample_2.png 131 B png download
test/our_safe_test_result/safe_model/sample_3_prompt.txt 42 B txt download
test/our_safe_test_result/safe_model/sample_3.png 131 B png download
test/our_safe_test_result/safe_model/sample_4_prompt.txt 44 B txt download
test/our_safe_test_result/safe_model/sample_4.png 131 B png download
test/our_safe_test_result/safe_model/sample_5_prompt.txt 45 B txt download
test/our_safe_test_result/safe_model/sample_5.png 131 B png download
test/run_our_test.sh 610 B sh download
test/run_test_of_3.sh 630 B sh download
test/run_test.sh 594 B sh download
test/safe_test_result/original_model/sample_1_prompt.txt 47 B txt download
test/safe_test_result/original_model/sample_1.png 131 B png download
test/safe_test_result/original_model/sample_2_prompt.txt 44 B txt download
test/safe_test_result/original_model/sample_2.png 131 B png download
test/safe_test_result/original_model/sample_3_prompt.txt 42 B txt download
test/safe_test_result/original_model/sample_3.png 131 B png download
test/safe_test_result/original_model/sample_4_prompt.txt 42 B txt download
test/safe_test_result/original_model/sample_4.png 131 B png download
test/safe_test_result/original_model/sample_5_prompt.txt 45 B txt download
test/safe_test_result/original_model/sample_5.png 131 B png download
test/safe_test_result/safe_model/sample_1_prompt.txt 47 B txt download
test/safe_test_result/safe_model/sample_1.png 131 B png download
test/safe_test_result/safe_model/sample_2_prompt.txt 44 B txt download
test/safe_test_result/safe_model/sample_2.png 131 B png download
test/safe_test_result/safe_model/sample_3_prompt.txt 42 B txt download
test/safe_test_result/safe_model/sample_3.png 131 B png download
test/safe_test_result/safe_model/sample_4_prompt.txt 42 B txt download
test/safe_test_result/safe_model/sample_4.png 131 B png download
test/safe_test_result/safe_model/sample_5_prompt.txt 45 B txt download
test/safe_test_result/safe_model/sample_5.png 131 B png download
test/test_of_3.py 5.7 KB py download
test/test_of_3/original_model/sample_1_prompt.txt 92 B txt download
test/test_of_3/original_model/sample_1.png 131 B png download
test/test_of_3/original_model/sample_2_prompt.txt 97 B txt download
test/test_of_3/original_model/sample_2.png 131 B png download
test/test_of_3/original_model/sample_3_prompt.txt 102 B txt download
test/test_of_3/original_model/sample_3.png 131 B png download
test/test_of_3/original_model/sample_4_prompt.txt 117 B txt download
test/test_of_3/original_model/sample_4.png 131 B png download
test/test_of_3/original_model/sample_5_prompt.txt 107 B txt download
test/test_of_3/original_model/sample_5.png 132 B png download
test/test_of_3/our_safe_model/sample_1_prompt.txt 92 B txt download
test/test_of_3/our_safe_model/sample_1.png 131 B png download
test/test_of_3/our_safe_model/sample_2_prompt.txt 97 B txt download
test/test_of_3/our_safe_model/sample_2.png 131 B png download
test/test_of_3/our_safe_model/sample_3_prompt.txt 102 B txt download
test/test_of_3/our_safe_model/sample_3.png 128 B png download
test/test_of_3/our_safe_model/sample_4_prompt.txt 117 B txt download
test/test_of_3/our_safe_model/sample_4.png 128 B png download
test/test_of_3/our_safe_model/sample_5_prompt.txt 107 B txt download
test/test_of_3/our_safe_model/sample_5.png 132 B png download
test/test_of_3/safe_model/sample_1_prompt.txt 92 B txt download
test/test_of_3/safe_model/sample_1.png 128 B png download
test/test_of_3/safe_model/sample_2_prompt.txt 97 B txt download
test/test_of_3/safe_model/sample_2.png 128 B png download
test/test_of_3/safe_model/sample_3_prompt.txt 102 B txt download
test/test_of_3/safe_model/sample_3.png 128 B png download
test/test_of_3/safe_model/sample_4_prompt.txt 117 B txt download
test/test_of_3/safe_model/sample_4.png 128 B png download
test/test_of_3/safe_model/sample_5_prompt.txt 107 B txt download
test/test_of_3/safe_model/sample_5.png 132 B png download
test/test_our_safe.py 4.9 KB py download
test/test_result/original_model/sample_1_prompt.txt 50 B txt download
test/test_result/original_model/sample_1.png 131 B png download
test/test_result/original_model/sample_2_prompt.txt 64 B txt download
test/test_result/original_model/sample_2.png 131 B png download
test/test_result/original_model/sample_3_prompt.txt 82 B txt download
test/test_result/original_model/sample_3.png 131 B png download
test/test_result/original_model/sample_4_prompt.txt 40 B txt download
test/test_result/original_model/sample_4.png 131 B png download
test/test_result/original_model/sample_5_prompt.txt 41 B txt download
test/test_result/original_model/sample_5.png 131 B png download
test/test_result/safe_model/sample_1_prompt.txt 50 B txt download
test/test_result/safe_model/sample_1.png 131 B png download
test/test_result/safe_model/sample_2_prompt.txt 64 B txt download
test/test_result/safe_model/sample_2.png 131 B png download
test/test_result/safe_model/sample_3_prompt.txt 82 B txt download
test/test_result/safe_model/sample_3.png 131 B png download
test/test_result/safe_model/sample_4_prompt.txt 40 B txt download
test/test_result/safe_model/sample_4.png 131 B png download
test/test_result/safe_model/sample_5_prompt.txt 41 B txt download
test/test_result/safe_model/sample_5.png 131 B png download
test/test_safe_model.py 4.8 KB py download
test/test_safe.py 4.9 KB py download
train/CLIP-SFT-t.py 16.9 KB py download
train/CLIP-SFT-t.sh 844 B sh download
train/CLIP-SFT-t.txt 9.8 KB txt download
train/CLIP-SFT.py 16.8 KB py download
train/CLIP-SFT.sh 838 B sh download
train/CLIP-SFT.txt 9.8 KB txt download
train/finetune.py 8.5 KB py download
train/MSE-SFT-t.py 11.1 KB py download
train/MSE-SFT-t.sh 665 B sh download
train/MSE-SFT.py 10.2 KB py download
train/MSE-SFT.sh 659 B sh download
train/run_safe_ft.sh 634 B sh download
train/safe_FT.py 9.5 KB py download
train/safe_FT.sh 634 B sh download
test/ 13 files 16.9 KB
astronaut_on_moon.png 128 B png download
black_and_white.png 128 B png download
black_man.png 128 B png download
bloody.png 128 B png download
man_and_woman.png 128 B png download
model.py 1.3 KB py download
next.py 1.1 KB py download
raw_next.py 1.1 KB py download
raw_time.py 5.6 KB py download
raw.py 1.3 KB py download
sexual.png 128 B png download
time_model.py 5.6 KB py download
woman_sleeping.png 128 B png download
test_results/ 20 files 1.9 KB
original_model/sample_1_prompt.txt 50 B txt download
original_model/sample_1.png 131 B png download
original_model/sample_2_prompt.txt 64 B txt download
original_model/sample_2.png 131 B png download
original_model/sample_3_prompt.txt 82 B txt download
original_model/sample_3.png 131 B png download
original_model/sample_4_prompt.txt 40 B txt download
original_model/sample_4.png 131 B png download
original_model/sample_5_prompt.txt 41 B txt download
original_model/sample_5.png 131 B png download
safe_model/sample_1_prompt.txt 50 B txt download
safe_model/sample_1.png 131 B png download
safe_model/sample_2_prompt.txt 64 B txt download
safe_model/sample_2.png 131 B png download
safe_model/sample_3_prompt.txt 82 B txt download
safe_model/sample_3.png 131 B png download
safe_model/sample_4_prompt.txt 40 B txt download
safe_model/sample_4.png 131 B png download
safe_model/sample_5_prompt.txt 41 B txt download
safe_model/sample_5.png 131 B png download
verifications/ 31 files 10.0 MB
cleaned_data/cleaned_data.jsonl 13.9 KB jsonl download
clip_output/category_image_sim_result.json 6.1 KB json download
clip_output/similarities.json 6.0 MB json download
clip_output/t_steps.json 8.4 KB json download
clip_output/text_sim_of_prompt_and_category.json 7.5 KB json download
image_gen/__pycache__/clip.cpython-310.pyc 2.8 KB pyc download
image_gen/__pycache__/clip.cpython-39.pyc 6.9 KB pyc download
image_gen/__pycache__/conf.cpython-39.pyc 329 B pyc download
image_gen/__pycache__/load_data.cpython-310.pyc 883 B pyc download
image_gen/__pycache__/process_data.cpython-310.pyc 886 B pyc download
image_gen/__pycache__/process_data.cpython-39.pyc 1.1 KB pyc download
image_gen/clip.py 9.7 KB py download
image_gen/conf.py 134 B py download
image_gen/gen.py 3.6 KB py download
image_gen/load_data.py 494 B py download
image_gen/process_data.py 1.1 KB py download
plt/data.json 5.9 KB json download
plt/plt.py 6.0 KB py download
plt/similarity_plot_vernum_17.png 467.6 KB png download
plt/similarity_plot_vernum_20.png 391.5 KB png download
plt/similarity_plot_vernum_34.png 409.8 KB png download
plt/similarity_plot_vernum_47.png 414.6 KB png download
plt/similarity_plot_vernum_54.png 410.1 KB png download
plt/similarity_plot_vernum_56.png 420.6 KB png download
plt/similarity_plot_vernum_67.png 430.0 KB png download
plt/similarity_plot_vernum_84.png 425.5 KB png download
plt/similarity_plot_vernum_92.png 423.1 KB png download
test_CLIP/clip.py 3.5 KB py download
weight_of_t/distribution_of_t.png 47.6 KB png download
weight_of_t/result.txt 109 B txt download
weight_of_t/weight_of_t.json 5.3 KB json download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

# Diffusion Safe Fine-tuning Project

This project implements fine-tuning of pre-trained diffusion models for enhanced safety alignment, based on the principles discussed in "Safety Alignment Should Be Made More Than Just a Few Tokens Deep".

## Code Structure

[Link to your directory structure description here if you have a separate doc]

## Quick Start - Fine-tuning

1.  **Install Dependencies:**
    ```bash
    pip install -r requirements.txt
    ```

2.  **Configure Training:**
    - Modify `configs/config.yaml` to set your desired training parameters, dataset paths, pre-trained model paths, and fine-tuning method (`finetune_method`).

3.  **Run Training:**
    ```bash
    bash scripts/train.sh
    ```

    This will start the fine-tuning process using the configurations in `configs/config.yaml`. Checkpoints will be saved in the `checkpoints/finetuned_model/` directory.

## Next Steps:

*   **Implement Data Loaders:**  Adapt `src/datasets/image_dataset.py` and `src/datasets/recovery_dataset.py` to load your specific image and recovery datasets.
*   **Choose Fine-tuning Method:** Select and implement one or more fine-tuning methods in `src/trainers/finetune_trainer.py`: Standard SFT, Constrained KL, or Data Augmentation.
*   **Safety Evaluation:** Implement safety evaluation metrics and scripts in `src/safety/` and `scripts/evaluate_safety.sh` to assess the safety of your fine-tuned models.
*   **Experiment and Iterate:**  Run experiments with different configurations and fine-tuning methods to optimize for safety and image quality.

## ... (rest of your README - project details, contact, license etc.) ...

Explanation of Markdown Formatting Used:

  • # : Heading level 1 (for main title)
  • ## : Heading level 2 (for sections like "Code Structure", "Quick Start")
  • ### : Heading level 3 (for subsections within "Next Steps")
  • * or - : Unordered lists (for "Next Steps" items)
  • ```bash : Code blocks (for commands like pip install, bash scripts/train.sh)
  • `configs/config.yaml` : Inline code formatting (for filenames, paths in text)
  • [Link to your directory structure description here if you have a separate doc] : Markdown link format, placeholder for you to insert a link if you have a more detailed documentation of your directory structure elsewhere.

How to use this .md format:

  1. Copy the entire text block above (including the markdown and lines, if you are copying from some environments, but ideally without them, just the content between them).
  2. Create a new file named README.md in your diffusion-safe-finetune/ project's root directory.
  3. Paste the copied text into the README.md file.
  4. Save the file.

Markdown viewers (like GitHub, GitLab, or any Markdown editor) will now render this README.md file with proper formatting: headings, lists, and code blocks will be visually distinct and easy to read. You can then expand the ... (rest of your README - project details, contact, license etc.) ... section with more specific information about your project.

README historyEdit history latest 20 of 29 revisionslatest 20 of 29 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2025-08-29 Add files using upload-large-folder tool 486135c 3.1 KB
    Loading...
  2. 2025-08-25 Add files using upload-large-folder tool 6490ba4 3.1 KB
    Loading...
  3. 2025-08-25 Add files using upload-large-folder tool 8ca895f 3.1 KB
    Loading...
  4. 2025-08-25 Add files using upload-large-folder tool 0a533b0 3.1 KB
    Loading...
  5. 2025-08-25 Add files using upload-large-folder tool ee07a8d 3.1 KB
    Loading...
  6. 2025-08-25 Add files using upload-large-folder tool 74bcb6b 0 B
    Loading...
  7. 2025-07-22 Add files using upload-large-folder tool 7303c36 0 B
    Loading...
  8. 2025-07-22 Add files using upload-large-folder tool f7f1b03 0 B
    Loading...
  9. 2025-07-22 Add files using upload-large-folder tool 07ea7ae 0 B
    Loading...
  10. 2025-07-22 Add files using upload-large-folder tool 5b652bf 0 B
    Loading...
  11. 2025-07-22 Add files using upload-large-folder tool 9120d29 0 B
    Loading...
  12. 2025-05-23 Add files using upload-large-folder tool 6b976c6 0 B
    Loading...
  13. 2025-05-23 Add files using upload-large-folder tool f8c70bf 0 B
    Loading...
  14. 2025-05-23 Add files using upload-large-folder tool cc2f9c5 0 B
    Loading...
  15. 2025-05-22 Add files using upload-large-folder tool c5459d5 0 B
    Loading...
  16. 2025-05-22 Add files using upload-large-folder tool c30a294 0 B
    Loading...
  17. 2025-05-22 Add files using upload-large-folder tool d018407 0 B
    Loading...
  18. 2025-05-22 Add files using upload-large-folder tool 93b1602 0 B
    Loading...
  19. 2025-04-08 Add files using upload-large-folder tool 7e625a2 0 B
    Loading...
  20. 2025-04-08 Add files using upload-large-folder tool 217fb72 0 B
    Loading...
Download from Hugging Face

NEUQ-LIS-LAB/time-step-diffusion-safe

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration