Download constant.py from qibin0506/Cortex: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/spaces/qibin0506/Cortex/resolve/main/constant.py
- Command line
-
hf download hf://spaces/qibin0506/Cortex/constant.py
-
curl -L -o constant.py https://huggingface.co/spaces/qibin0506/Cortex/resolve/main/constant.py
252 Bytes
| import os | |
| developer_name = 'QB' | |
| assistant_name = 'Cortex' | |
| image_size = 224 | |
| patch_size = 16 | |
| tokens_per_image = 196 | |
| def data_root_dir(): | |
| dir_name = './data/' | |
| if not os.path.exists(dir_name): | |
| os.makedirs(dir_name) | |
| return dir_name | |