Skip to main content

kerfex

Generic feature extraction using keras pre-built CNN's with imagenet weights.

Getting Started

Dependencies

You need Python 3.7 or later to run kerfex. You can find it at python.org.

You aso need pandas, numpy, keras and tensorflow packages, which is available from PyPI. If you have PyPI, run:

pip install pandas numpy keras tensorflow

Installation

Clone this repo to your local machine using:

git clone https://github.com/caiocarneloz/kerfex.git

Or install it using pip:

pip install kerfex

Usage

The demo.py file shows a simple example using VGG16 with three Unsplash images from the authors @mybibimbaplife, @davidbraud, and @analoglugunler. The "extract" function requires:

  • CNN instance itself
  • CNN pre-processing module
  • List of images
  • Images shape

As return, the function will send a pandas Dataframe containing the numerical features extracted from every image, where each line represents a single image and each column represents a single feature:

                0          1          2   ...      15599     15600     15601
	
0  	 0.000000   0.000000   0.000000   ...   0.000000  0.000000  3.754401
1  	 0.000000  15.284859  37.369953   ...  22.756908  6.398854  0.000000
2  	12.172541   0.000000   0.000000   ...   0.000000  0.000000  0.000000

Metadata

Release files for kerfex 0.0.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 kerfex 0.0.1
File Size Uploaded Provenance Actions
kerfex-0.0.1.tar.gz 2.6 kB Without provenance Details for kerfex-0.0.1.tar.gz

Release files / kerfex-0.0.1.tar.gz

Download URL kerfex-0.0.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
056b425c21d87ecf5412fa0a517b80c33f540e67c616ddf5da83376ad61c7325
BLAKE2b-256 checksum
How to use checksums
6794e2a6daa4f55172993e63c9f419a0f191ecfa08c6a253bbbbf07b5fb2ce74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Security for kerfex 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

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