Matching working really well for Germany photos
Signed-off-by: James P. Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
parent
e54fc968e6
commit
99db385686
@ -124,14 +124,15 @@ print('Loading faces from database')
|
||||
faces = load_faces(db_path = db_path)
|
||||
|
||||
minPts = max(len(faces) / 500, 5)
|
||||
eps = 0.185
|
||||
eps = 0.25
|
||||
#eps = 0.185
|
||||
print(f'Scanning {len(faces)} faces for clusters (minPts: {minPts}, eps: {eps})')
|
||||
identities = DBSCAN(faces, minPts = minPts, eps = eps)
|
||||
print(f'{len(identities)} clusters grouped')
|
||||
|
||||
# Compute average center for all clusters
|
||||
identities = update_cluster_averages(identities)
|
||||
epoch_prune = True
|
||||
epoch_prune = True
|
||||
merge_identities = True
|
||||
|
||||
if epoch_prune:
|
||||
|
@ -99,7 +99,7 @@ def load_faces(db_path ):
|
||||
FROM faces
|
||||
INNER JOIN photos ON (photos.duplicate == 0 OR photos.duplicate IS NULL)
|
||||
JOIN facedescriptors ON (faces.descriptorId=facedescriptors.id)
|
||||
WHERE faces.identityId IS null AND faces.faceConfidence>0.99
|
||||
WHERE faces.identityId IS null
|
||||
AND faces.photoId=photos.id
|
||||
''')
|
||||
for row in res.fetchall():
|
||||
|
@ -91,7 +91,7 @@ app.use(function(req, res, next){
|
||||
});
|
||||
});
|
||||
|
||||
let dbPath = { ...config.get("sessions.db") };
|
||||
let dbPath = config.get("sessions.db");
|
||||
let configPath = process.env.NODE_CONFIG_DIR;
|
||||
if (configPath) {
|
||||
configPath = configPath.replace(/config/, '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user