varun-suresh / clustering Goto Github PK
View Code? Open in Web Editor NEWImplements "Clustering a Million Faces by Identity"
License: MIT License
Implements "Clustering a Million Faces by Identity"
License: MIT License
cluster(vectors, n_neighbors=200, thresh= [1.1])
what is your principle of setting the n_neighbors and thresh?
moreover, when most of face in datasets is isolated, I think your method will be invalid?
Hi Varun,
were you able to resolve, why your implementation has such a huge drop in precision? Thanks and looking forward to your reply.
best, Vivek
When I cluster.py
I got this error ::
Traceback (most recent call last):
File "clustering.py", line 4, in
import pyflann
File "/Users/youyin/anaconda3/lib/python3.6/site-packages/pyflann/init.py", line 27, in
from index import *
ModuleNotFoundError: No module named 'index'
My python version is 3.6.4
Do you have any suggestions?Thank you
I have been trying to understand the feature extraction process. My approach to this is from the book creative illustration Beautiful paper 😃
Could this work on a dir of unlabeled faces?
A path traversal attack (also known as directory traversal) aims to access files and directories that are stored outside the web root folder. By manipulating variables that reference files with “dot-dot-slash (../)” sequences and its variations or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system including application source code or configuration and critical system files. It should be noted that access to files is limited by system operational access control (such as in the case of locked or in-use files on the Microsoft Windows operating system).
This attack is also known as “dot-dot-slash”, “directory traversal”, “directory climbing” and “backtracking”.
In this case, the path traversal vulnerability can be blamed on incorrect usage of the send_from_directory Flask call. The vulnerability occurs due to the code snippet shown below
Lines 33 to 36 in 53e663e
Here, since the fpath
parameter is attacker controlled, the effective directory and filename passed to the send_from_directory call can be controlled by the attacker leading to a path traversal attack.
The bug can be verified using the proof of concept similar to the one shown below.
curl -i --path-as-is -s -k -X $'GET' \
-H $'Host: 0.0.0.0:5000' -H $'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0' -H $'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H $'Accept-Language: en-US,en;q=0.5' -H $'Accept-Encoding: gzip, deflate' -H $'Connection: close' -H $'Upgrade-Insecure-Requests: 1' \
$'http://0.0.0.0:5000/img/../../../../../../etc/passwd'
This can be easily fixed my restricting the value of file and path parameters by a fixed whitelist of possible values.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
please give me some tips,thank you~~~
Does it support new data clustering based on the model which has already converged?
Can i ask how to produce the vectors of new data like the form of lfw? i saw the .mat is complicated .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.