Skip to main content

cfd-reader

pipeline status

A python3 module to index, pre-process, and supply facial data from the Chicago Face Database (CFD).

A convenient way to load data from the Chicago Face Database, wrapped in numpy arrays, to feed to your neural network.

installation

From a terminal, run the command:

[sudo -H] pip3 install cfd-reader

usage

In your Python (3.5+) script or interpreter session, run (suggested syntax):

import cfd_reader as cfdr

load face data

cfdr.load_data([options])

where options include:

  • grayscale=[True, False]:
    • True: provides 3 channel BGR output
    • False: provides single channel grayscale output
  • train_proportion=x:
    • x: real-valued variable between 0 and 1. x proportion of all data will be supplied as training data, and 1-x data will be supplied as test data
  • resize=[False, (x,y)]:
    • False: keeps images in their original resolution
    • (x,y): tuple of integers to resize the image to

returns:

numpy array of shape (n, x, y, c) where n are the total number of images in that particular set (train/test), (x,y) is the 2D image shape, and c is the number of channels. In other words, (x,y,c) is the image shape.

Metadata

Release files for cfd-reader 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfd-reader 0.2.1
File Size Uploaded
cfd-reader-0.2.1.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cfd-reader 0.2.1
File Interpreter ABI Platform
cfd_reader-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / cfd-reader-0.2.1.tar.gz

Download URL cfd-reader-0.2.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
573bb1de3d17ca556df43a7d38e691964c0ba2cd9038e567df533ada087e482f
BLAKE2b-256 checksum
How to use checksums
c8b21a25b271ed1f652263a22e6b062e4e9326679c901f3364f76141a5c126c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / cfd_reader-0.2.1-py3-none-any.whl

Download URL cfd_reader-0.2.1-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f00467a6e74be0879bf4b05c48be9b27d323c599d07cc6a8a2f8adbc8f3a31ed
BLAKE2b-256 checksum
How to use checksums
3024b6c639990ae16920f4d403d7d7902f368d3394d9e9f36b749b286a444f96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page