Download clean/image/effort/DeepfakeBench/training/metrics/__init__.py from deepsafe/model-code: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/deepsafe/model-code/resolve/main/clean/image/effort/DeepfakeBench/training/metrics/__init__.py
- Command line
-
hf download hf://deepsafe/model-code/clean/image/effort/DeepfakeBench/training/metrics/__init__.py
-
curl -L -o __init__.py https://huggingface.co/deepsafe/model-code/resolve/main/clean/image/effort/DeepfakeBench/training/metrics/__init__.py
241 Bytes
| import os | |
| import sys | |
| current_file_path = os.path.abspath(__file__) | |
| parent_dir = os.path.dirname(os.path.dirname(current_file_path)) | |
| project_root_dir = os.path.dirname(parent_dir) | |
| sys.path.append(parent_dir) | |
| sys.path.append(project_root_dir) | |