Download detectron2/projects/DensePose/tests/test_setup.py from trimble/GRiT: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/trimble/GRiT/resolve/main/detectron2/projects/DensePose/tests/test_setup.py
- Command line
-
hf download hf://trimble/GRiT/detectron2/projects/DensePose/tests/test_setup.py
-
curl -L -o test_setup.py https://huggingface.co/trimble/GRiT/resolve/main/detectron2/projects/DensePose/tests/test_setup.py
1.03 kB
| # Copyright (c) Facebook, Inc. and its affiliates. | |
| import unittest | |
| from .common import ( | |
| get_config_files, | |
| get_evolution_config_files, | |
| get_hrnet_config_files, | |
| get_quick_schedules_config_files, | |
| setup, | |
| ) | |
| class TestSetup(unittest.TestCase): | |
| def _test_setup(self, config_file): | |
| setup(config_file) | |
| def test_setup_configs(self): | |
| config_files = get_config_files() | |
| for config_file in config_files: | |
| self._test_setup(config_file) | |
| def test_setup_evolution_configs(self): | |
| config_files = get_evolution_config_files() | |
| for config_file in config_files: | |
| self._test_setup(config_file) | |
| def test_setup_hrnet_configs(self): | |
| config_files = get_hrnet_config_files() | |
| for config_file in config_files: | |
| self._test_setup(config_file) | |
| def test_setup_quick_schedules_configs(self): | |
| config_files = get_quick_schedules_config_files() | |
| for config_file in config_files: | |
| self._test_setup(config_file) | |