FaceScrub | Python script for downloading the FaceScrub face dataset
kandi X-RAY | FaceScrub Summary
kandi X-RAY | FaceScrub Summary
This project is released under a Creative Commons Attribution-NonCommercial 4.0 International Public License. To view a copy of this license, visit python_download_facescrub.py downloads the FaceScrub dataset described in. H.-W. Ng, S. Winkler. A data-driven approach to cleaning large face datasets. Proc. IEEE International Conference on Image Processing (ICIP), Paris, France, Oct. 27-30, 2014. If you are using Python 2, use the script python2_download_facescrub.py. If you are using Python 3, use python3_download_facescrub.py. In particular, the Python 3 version has been updated by ottocho to support multi-threading. This code was tested on Ubuntu 14.04 and Mac OS X El Capitan.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Download an image
- Return the URL for a given URL
- Generate headers
- Generate a hash from raw bytes
- Save an image
- Ensure directory exists
- Create a logger
- Parse a line from a line
- Setup a Requests session
FaceScrub Key Features
FaceScrub Examples and Code Snippets
Community Discussions
Trending Discussions on FaceScrub
QUESTION
I'm doing a AlexNet fine tuning for face detection following this: link
The only difference with the link is that I am using another dataset (facescrub and some images from imagenet as negative examples).
I noticed the accuracy increasing too fast, in 50 iterations it goes from 0.308 to 0.967 and when it is about 0.999 I stop the training and use the model using the same python script as the above link.
I use for testing an image from the dataset and the result is nowhere near good, test image result. As you can see the box in the faces is too big (and the dataset images are tightly cropped), not to mention the box not containing a face.
My solver and train_val files are exactly the same, only difference is batch sizes and max iter size.
...ANSWER
Answered 2017-Mar-20 at 11:28The reason was that my dataset has way more face examples than non-face examples. I tried the same setup with the same number of positive and negative examples and now the accuracy increases slower.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install FaceScrub
Next, set MY_USER_AGENT_STRING in the script. You can obtain it by visiting a site such as https://www.whatismybrowser.com/detect/what-is-my-user-agent
Finally, run download_facescrub.py to download the dataset.
Note: actors_users_normal_bbox.txt is obtained from http://vintage.winklerbros.net/facescrub.html. The above code will save full size images to the directory actors/images and faces (if required) to actors/faces. The naming convention for full size images is <name>_<image_id>.<ext> and <name>_<image_id>_<face_id>.<ext> for face images. Note that <ext> is the extension of image format for the image. It need not be "jpeg". All error messages in the log are of the form "Line <number>: <error message>: <url>", in case users are interested in them.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page