Spaces:
Sleeping
Sleeping
Download detectors/P2G/src/utils/zeroshot_checker.py from Truebees/DeepShield-Detectors: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/Truebees/DeepShield-Detectors/resolve/main/detectors/P2G/src/utils/zeroshot_checker.py
- Command line
-
hf download hf://spaces/Truebees/DeepShield-Detectors/detectors/P2G/src/utils/zeroshot_checker.py
-
curl -L -o zeroshot_checker.py https://huggingface.co/spaces/Truebees/DeepShield-Detectors/resolve/main/detectors/P2G/src/utils/zeroshot_checker.py
437 Bytes
| import pickle | |
| import os | |
| import glob | |
| dataroot = "/media/mmlab/Volume2/TrueFake" | |
| if __name__ == "__main__": | |
| with open("./classes.pkl", "rb") as f: | |
| results_new = pickle.load(f) | |
| with open("./classes_old.pkl", "rb") as f: | |
| results_old = pickle.load(f) | |
| for key, value in list(results_new.items())[:10]: | |
| print(key, value) | |
| for key, value in list(results_old.items())[:10]: | |
| print(key, value) | |