Spaces:
Runtime error
Runtime error
Download src/model/utils.py from pkiage/fast_arbitrary_image_style_transfer: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/spaces/pkiage/fast_arbitrary_image_style_transfer/resolve/main/src/model/utils.py
- Command line
-
hf download hf://spaces/pkiage/fast_arbitrary_image_style_transfer/src/model/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/pkiage/fast_arbitrary_image_style_transfer/resolve/main/src/model/utils.py
290 Bytes
| import os | |
| def use_low_resource_settings(option): | |
| if option == 'Yes': | |
| os.environ['CUDA_VISIBLE_DEVICES'] = '' | |
| os.environ['TFHUB_MODEL_LOAD_FORMAT'] = 'COMPRESSED' | |
| def suppress_warnings(option): | |
| if option == 'Yes': | |
| os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' | |