Spaces:
Paused
Paused
Download utils/debug.py from MBG0903/Saree-Design-App: direct link, hf CLI and curl.
- Browser
- Download file 187 Bytes
-
https://huggingface.co/spaces/MBG0903/Saree-Design-App/resolve/main/utils/debug.py
- Command line
-
hf download hf://spaces/MBG0903/Saree-Design-App/utils/debug.py
-
curl -L -o debug.py https://huggingface.co/spaces/MBG0903/Saree-Design-App/resolve/main/utils/debug.py
187 Bytes
| import cv2 | |
| import os | |
| def save_debug_image(img, filename): | |
| os.makedirs( | |
| "debug", | |
| exist_ok=True | |
| ) | |
| cv2.imwrite( | |
| f"debug/{filename}", | |
| img | |
| ) |