GithubHelp home page GithubHelp logo

leonshting / fec-dataset-loader Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 4.0 9 KB

Loader for Google facial expression comparison dataset

Python 100.00%
facial-expression-recognition dataset-loader

fec-dataset-loader's Introduction

This package loads images and composes these images into triplets according to Google facial expression comparison dataset

  1. Fetch submodule with some useful utils git pull --recurse-submodules

  2. The package uses Tor service to rotate IPs since it was observed, that connection to Flickr, where most of photos from dataset are hosted, stalls after some number of downloads. So the first stage is to start tor service, with which IPs are rotated, refer to this beautifully useful repo

  3. Once the service is started and dataset meta is loaded from Google servers, make sure you pip install -r requirements.txt

  4. The first actual dataset related command is the following: python3 ./load/load_fec.py --tor_pass=mypass --path_to_meta=<meta_info_path> --path_to_images=<path_to_save_images>, this will take some time, depends on your bandwidth

  5. The second command is: python3 ./load/prettify_fec.py --path_to_meta=<meta_info_path> --path_to_images=<path_with_saved_images> --path_to_triplets=/home/mininlab/DATA/fec_try_triplets --split=(train|test)

At the end you will have 3 new files in <meta_info_path>: list with loaded and missed images loaded_images_meta.json, missed_images_meta and final markup file (train|test)_triplets_info.csv and 2 folders with genuine images and triplet images respectively.

fec-dataset-loader's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fec-dataset-loader's Issues

Issue with SocksiPy and Tor in Python3

Hi, when I try to attempt step 3 in the README I run into the following error:

RuntimeError: maximum recursion depth exceeded while calling a Python object

It appears this is an issue with using SocksiPy with Tor in Python3. However, downloading socks.py to the working directory per this suggestion on SO https://stackoverflow.com/questions/21357909/socksipy-fails-when-connecting-throug-tor
doesn't help, it appears that the socks.py script is not compatible with Python3.

What environment did you use to run this downloader for yourself? Thanks.

cannot fetch images through flickr urls

Before applying your loader, I cannot even download images from the provided sheet.
It seems flickr is almostly dead. If you have a local copy of dataset, could you share with google drive or something?

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.