Code Monkey home page Code Monkey logo

image-gender-classification's Introduction

- AUTHORS
		* Laura C.
		* Carles G.
		* Balbina V.


- IMPLEMENTATION
	All of our code has been done in Python except the images extraction from subfolders, which have been done with Bash.

- PROJECT STRUCTURE
	.
	├── datasets
	│   ├── extractPictures.sh
	│   ├── facesInTheWild
	|	|	└── [...]
	│   ├── female_names.txt
	│   └── male_names.txt
	├── README.txt
	├── refs
	│   └── interesting_links.txt
	└── src
	    ├── classifiers
	    │   ├── ClassifierManager.py
	    │   ├── classifiers
	    │   │   ├── KNearestNeighbors.py
	    │   │   ├── MLP.py
	    │   │   └── SVM.py
	    │   ├── cnn_tensorflow.py
	    │   ├── Constants.py
	    │   ├── main.py
	    │   ├── utils_plot.py
	    │   └── Utils.py
	    └── preprocessing
	        ├── extractPictures.sh
	        ├── labels_merger.py
	        ├── merged_labels.txt
	        └── Utils.py

In this compressed file we can find three folders:

	- datasets: which is a folder with the labels of females, males and an empty folder call faceInTheWild where the images should be decompressed.
	- refs: which contains a txt inside with interesting URLs that we found interesting and relevant to our project.
	- src: which contains all the code.
		In this folder we have 2 subfolders: classifiers, which contains all the models we have used, and preprocessing, which has the scripts
		for the preprocessing of data.

	Please note that to facilitate the experiments on the LBP, feature extraction has been done on classifiers/main.py and not in the folder preprocessing,
	so that we could test different values for the number of points and the radius easily.

		- classifiers: contains the classifiers used on this project.

			To execute either KNN or SVM, one can do so by:
			$ python3.6 main.py -i ../preprocessing/merged_labels.txt

			* To choose which models will be computed (Knn or SVM) you have to put to True the flags
			that control which execution will be done:

			PERFORM_KNN = False
			PERFORM_SVM = False
			PERFORM_MLP = False
			PERFORM_CROSS_KNN = False
			PERFORM_CROSS_SVM = False

		- To execute the CNN model, the requirements are to have Tensorflow and Keras installed in your machine.
			Then, one can execute the CNN by executing cnn_tensorflow.py:
		
			$ python3.6 cnn_tensorflow.py



** WARNING **

We HAVE NOT included all the images for they weight 116MB. However, one can find all the images in here:
	http://vis-www.cs.umass.edu/lfw/

	More specifically, to download the funneled faces we used you can use the following link:
	http://vis-www.cs.umass.edu/lfw/lfw-deepfunneled.tgz

Once these images have downloaded, you should uncompress them in the subfolders ./datasets/facesInTheWild
Then, you can change the extractPictures.sh inside the datasets folder and put your own path. Then you just run it and it will extract the images and
you are ready to go.

image-gender-classification's People

Contributors

balbinavr avatar charlyo avatar laz08 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.