Spaces:
Sleeping
Sleeping
Download src/models/test_models.py from quangdat05/AIChamcong: direct link, hf CLI and curl.
- Browser
- Download file 251 Bytes
-
https://huggingface.co/spaces/quangdat05/AIChamcong/resolve/main/src/models/test_models.py
- Command line
-
hf download hf://spaces/quangdat05/AIChamcong/src/models/test_models.py
-
curl -L -o test_models.py https://huggingface.co/spaces/quangdat05/AIChamcong/resolve/main/src/models/test_models.py
251 Bytes
| import torch | |
| from src.models.face_recognition_model import ( | |
| FaceRecognitionModel | |
| ) | |
| model = FaceRecognitionModel() | |
| dummy = torch.randn( | |
| 1, | |
| 3, | |
| 112, | |
| 112 | |
| ) | |
| embedding = model.get_embedding( | |
| dummy | |
| ) | |
| print( | |
| embedding.shape | |
| ) |