Spaces:
Sleeping
Sleeping
Download systems/__init__.py from HorizonRobotics/DIPO: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/spaces/HorizonRobotics/DIPO/resolve/main/systems/__init__.py
- Command line
-
hf download hf://spaces/HorizonRobotics/DIPO/systems/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/HorizonRobotics/DIPO/resolve/main/systems/__init__.py
439 Bytes
| systems = {} | |
| def register(name): | |
| def decorator(cls): | |
| systems[name] = cls | |
| return cls | |
| return decorator | |
| def make(name, config, load_from_checkpoint=None): | |
| if load_from_checkpoint is None: | |
| system = systems[name](config) | |
| else: | |
| system = systems[name].load_from_checkpoint( | |
| load_from_checkpoint, strict=False, config=config | |
| ) | |
| return system | |
| from . import system_origin |