Skip to content

Commit 09dfaeb

Browse files
committed
docs(pipeline): Add clarification for repo name sanitization process
1 parent 6269caf commit 09dfaeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lerobot/processor/pipeline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ def save_pretrained(self, destination_path: str, config_filename: str | None = N
419419
# Sanitize processor name for use in filenames
420420
import re
421421

422+
# The huggingface hub does not allow special characters in the repo name, so we sanitize the name
422423
sanitized_name = re.sub(r"[^a-zA-Z0-9_]", "_", self.name.lower())
423424

424425
# Use sanitized name for config if not provided

0 commit comments

Comments
 (0)