Spaces:
Sleeping
Sleeping
Download detectors/P2G/parser.py from Truebees/DeepShield-Detectors: direct link, hf CLI and curl.
- Browser
- Download file 682 Bytes
-
https://huggingface.co/spaces/Truebees/DeepShield-Detectors/resolve/main/detectors/P2G/parser.py
- Command line
-
hf download hf://spaces/Truebees/DeepShield-Detectors/detectors/P2G/parser.py
-
curl -L -o parser.py https://huggingface.co/spaces/Truebees/DeepShield-Detectors/resolve/main/detectors/P2G/parser.py
682 Bytes
| import argparse | |
| def get_parser(): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--name", type=str, default="test", help="run name") | |
| parser.add_argument("--device", type=str, default="cuda:0", help="cuda device to use") | |
| parser.add_argument("--split_file", type=str, help="Path to split json") | |
| parser.add_argument("--data_root", type=str, help="Path to dataset") | |
| parser.add_argument("--data_keys", type=str, help="Dataset specifications") | |
| parser.add_argument("--task", type=str, help="Unused") | |
| parser.add_argument("--num_threads", type=int, help="Unused") | |
| parser.add_argument("--num_epoches", type=int, help="Unused") | |
| return parser |