Spaces:
Paused
Paused
Download tests/test_memory.py from minhho/facefusion-nexttech: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/spaces/minhho/facefusion-nexttech/resolve/main/tests/test_memory.py
- Command line
-
hf download hf://spaces/minhho/facefusion-nexttech/tests/test_memory.py
-
curl -L -o test_memory.py https://huggingface.co/spaces/minhho/facefusion-nexttech/resolve/main/tests/test_memory.py
261 Bytes
| from facefusion.common_helper import is_linux, is_macos | |
| from facefusion.memory import limit_system_memory | |
| def test_limit_system_memory() -> None: | |
| assert limit_system_memory(4) is True | |
| if is_linux() or is_macos(): | |
| assert limit_system_memory(1024) is False | |