Download face_detect/core/structex.py from GuijiAI/ReHiFace-S: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/GuijiAI/ReHiFace-S/resolve/refs%2Fpr%2F2/face_detect/core/structex.py
- Command line
-
hf download hf://GuijiAI/ReHiFace-S@refs/pr/2/face_detect/core/structex.py
-
curl -L -o structex.py https://huggingface.co/GuijiAI/ReHiFace-S/resolve/refs%2Fpr%2F2/face_detect/core/structex.py
175 Bytes
| import struct | |
| def struct_unpack(data, counter, fmt): | |
| fmt_size = struct.calcsize(fmt) | |
| return (counter+fmt_size,) + struct.unpack (fmt, data[counter:counter+fmt_size]) | |