File size: 465 Bytes
c794b6b
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import numpy as np
import os

path1 = r"c:\Users\kvidi\Desktop\cepheus_final\backend\Face_Recognition\faces_db\Urvi.npy"
path2 = r"c:\Users\kvidi\Desktop\cepheus_final\backend\Face_Recognition\faces_db\Vidit.npy"

for p in [path1, path2]:
    if os.path.exists(p):
        emb = np.load(p)
        print(f"{os.path.basename(p)}: shape={emb.shape}, dtype={emb.dtype}, norm={np.linalg.norm(emb, axis=-1)}")
    else:
        print(f"{os.path.basename(p)} not found")