Download eval.py from EnerTEF/GCAEDetector: direct link, hf CLI and curl.
- Browser
- Download file 213 Bytes
-
https://huggingface.co/EnerTEF/GCAEDetector/resolve/main/eval.py
- Command line
-
hf download hf://EnerTEF/GCAEDetector/eval.py
-
curl -L -o eval.py https://huggingface.co/EnerTEF/GCAEDetector/resolve/main/eval.py
213 Bytes
| import torch | |
| from DetectorGCAE import GC_Autoencoder | |
| model = GC_Autoencoder(cuda_true=True, batch_size=32) | |
| model.load_state_dict(torch.load("GCAEDetector/gae_22_09_2025.pt")) | |
| print("model", model) | |
| model.eval() |