mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 10:16:09 +00:00
docs(pipeline): Add clarification for repo name sanitization process
This commit is contained in:
@@ -419,6 +419,7 @@ class RobotProcessor(ModelHubMixin):
|
|||||||
# Sanitize processor name for use in filenames
|
# Sanitize processor name for use in filenames
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
# The huggingface hub does not allow special characters in the repo name, so we sanitize the name
|
||||||
sanitized_name = re.sub(r"[^a-zA-Z0-9_]", "_", self.name.lower())
|
sanitized_name = re.sub(r"[^a-zA-Z0-9_]", "_", self.name.lower())
|
||||||
|
|
||||||
# Use sanitized name for config if not provided
|
# Use sanitized name for config if not provided
|
||||||
|
|||||||
Reference in New Issue
Block a user