Merge branch 'diffusion-lora-training-api' of https://github.com/unslothai/unsloth into diffusion-lora-training-api
This commit is contained in:
commit
8cbdd88c0b
1 changed files with 1 additions and 0 deletions
|
|
@ -1262,6 +1262,7 @@ _DATASET_NAME_RE = None # compiled lazily; module keeps its import block torch-
|
|||
def _clean_diffusion_dataset_name(name: str) -> str:
|
||||
"""Validate a dataset folder name: a single path component, no traversal, printable."""
|
||||
import re
|
||||
|
||||
global _DATASET_NAME_RE
|
||||
if _DATASET_NAME_RE is None:
|
||||
_DATASET_NAME_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._ -]{0,127}$")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue