Spaces:
Runtime error
Runtime error
Download annotator/uniformer/mmcv/parallel/registry.py from shadow/Text2Video-Zero: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/shadow/Text2Video-Zero/resolve/main/annotator/uniformer/mmcv/parallel/registry.py
- Command line
-
hf download hf://spaces/shadow/Text2Video-Zero/annotator/uniformer/mmcv/parallel/registry.py
-
curl -L -o registry.py https://huggingface.co/spaces/shadow/Text2Video-Zero/resolve/main/annotator/uniformer/mmcv/parallel/registry.py
332 Bytes
| # Copyright (c) OpenMMLab. All rights reserved. | |
| from torch.nn.parallel import DataParallel, DistributedDataParallel | |
| from annotator.uniformer.mmcv.utils import Registry | |
| MODULE_WRAPPERS = Registry('module wrapper') | |
| MODULE_WRAPPERS.register_module(module=DataParallel) | |
| MODULE_WRAPPERS.register_module(module=DistributedDataParallel) | |