Update README.md
Browse files
README.md
CHANGED
|
@@ -17,4 +17,7 @@ Then
|
|
| 17 |
```
|
| 18 |
python trainscripts/uce_sd_erase.py --model_id 'CompVis/stable-diffusion-v1-4' --edit_concepts 'nudity; porn; sex' --concept_type object --save_dir uce --exp_name NSFW --device cuda
|
| 19 |
python -c "import torch; from safetensors.torch import load_file; torch.save(load_file('uce/NSFW.safetensors'), 'uce/NSFW.pt')"
|
| 20 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
```
|
| 18 |
python trainscripts/uce_sd_erase.py --model_id 'CompVis/stable-diffusion-v1-4' --edit_concepts 'nudity; porn; sex' --concept_type object --save_dir uce --exp_name NSFW --device cuda
|
| 19 |
python -c "import torch; from safetensors.torch import load_file; torch.save(load_file('uce/NSFW.safetensors'), 'uce/NSFW.pt')"
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
Note:
|
| 23 |
+
The weights here are a partial UNet state_dict (e.g. only a few attn2.to_k/to_v weights). So in loading it with PyTorch’s default strict=False is required.
|