Spaces:
Runtime error
Runtime error
Download models/grit_src/third_party/CenterNet2/tests/test_packaging.py from ynhe/AskAnything: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/spaces/ynhe/AskAnything/resolve/main/models/grit_src/third_party/CenterNet2/tests/test_packaging.py
- Command line
-
hf download hf://spaces/ynhe/AskAnything/models/grit_src/third_party/CenterNet2/tests/test_packaging.py
-
curl -L -o test_packaging.py https://huggingface.co/spaces/ynhe/AskAnything/resolve/main/models/grit_src/third_party/CenterNet2/tests/test_packaging.py
614 Bytes
| # Copyright (c) Facebook, Inc. and its affiliates. | |
| import unittest | |
| from detectron2.utils.collect_env import collect_env_info | |
| class TestProjects(unittest.TestCase): | |
| def test_import(self): | |
| from detectron2.projects import point_rend | |
| _ = point_rend.add_pointrend_config | |
| import detectron2.projects.deeplab as deeplab | |
| _ = deeplab.add_deeplab_config | |
| # import detectron2.projects.panoptic_deeplab as panoptic_deeplab | |
| # _ = panoptic_deeplab.add_panoptic_deeplab_config | |
| class TestCollectEnv(unittest.TestCase): | |
| def test(self): | |
| _ = collect_env_info() | |