Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions examples/stable-diffusion/training/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ Now let's get our dataset. For this example we will use some dog images: https:/
Let's first download it locally:

```python
import os
from huggingface_hub import snapshot_download

local_dir = "./dog"
Expand All @@ -281,6 +282,12 @@ snapshot_download(
local_dir=local_dir, repo_type="dataset",
ignore_patterns=".gitattributes",
)

# check if .cache folder exists and remove it.
cache_folder = os.path.join(local_dir, ".cache")
if os.path.exists(cache_folder):
import shutil
shutil.rmtree(cache_folder)
```

### Full model finetune
Expand Down