Download Isaac-GR00T/external_dependencies/LIBERO/scripts/config_copy.py from Timsty/groot_deployment: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/Timsty/groot_deployment/resolve/main/Isaac-GR00T/external_dependencies/LIBERO/scripts/config_copy.py
- Command line
-
hf download hf://Timsty/groot_deployment/Isaac-GR00T/external_dependencies/LIBERO/scripts/config_copy.py
-
curl -L -o config_copy.py https://huggingface.co/Timsty/groot_deployment/resolve/main/Isaac-GR00T/external_dependencies/LIBERO/scripts/config_copy.py
554 Bytes
| import os | |
| import shutil | |
| from libero.libero import get_libero_path | |
| def main(): | |
| target_path = os.path.abspath(os.path.join("./", "configs")) | |
| print(f"Copying configs to {target_path}") | |
| if os.path.exists(target_path): | |
| response = input("The target directory already exists. Overwrite it? (y/n) ") | |
| if response.lower() != "y": | |
| return | |
| shutil.rmtree(target_path) | |
| shutil.copytree( | |
| os.path.join(get_libero_path("benchmark_root"), "../configs"), target_path | |
| ) | |
| if __name__ == "__main__": | |
| main() | |