Skip to main content

Add your description here

Project description

cakelens-v5 CircleCI

Open-source AI-gen video detection model

Installation

Install the package with its dependencies:

pip install -e .

Command Line Interface

The package provides a command line tool cakelens for easy video detection:

Basic Usage

# Using Hugging Face Hub (recommended)
cakelens video.mp4

# Using local model file
cakelens video.mp4 --model-path model.pt

Options

  • --model-path: Path to the model checkpoint file (optional - will load from Hugging Face Hub if not provided)
  • --batch-size: Batch size for inference (default: 1)
  • --device: Device to run inference on (cpu, cuda, mps) - auto-detected if not specified
  • --verbose, -v: Enable verbose logging
  • --output: Output file path for results (JSON format)

Examples

# Basic detection (uses Hugging Face Hub)
cakelens video.mp4

# Using local model file
cakelens video.mp4 --model-path model.pt

# With custom batch size and device
cakelens video.mp4 --batch-size 4 --device cuda

# Save results to JSON file
cakelens video.mp4 --output results.json

# Verbose output
cakelens video.mp4 --verbose

Output

The tool provides:

  • Real-time prediction percentages for each label
  • Final mean predictions across all frames
  • Option to save results in JSON format
  • Detailed logging (with --verbose flag)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cakelens_v5-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cakelens_v5-0.1.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file cakelens_v5-0.1.0.tar.gz.

File metadata

  • Download URL: cakelens_v5-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.30

File hashes

Hashes for cakelens_v5-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86785b4065cd35a2a8fa45014a62ff0a40e231fd58911ce2823cc0e2e529d157
MD5 d9a30e02b7907af1e32adb67817e5e2b
BLAKE2b-256 5e054c6379229877b33ff1b7a18122c1134847e2597aba3a095f69d61695cafc

See more details on using hashes here.

File details

Details for the file cakelens_v5-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cakelens_v5-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31a76f753e722fdab282adb14378d8437127be96236e0c6b20bbae33427ca41c
MD5 8e8842cdf036b2efe4c0ee961b9a1947
BLAKE2b-256 91fcf62b629483fee241752fc4e964ffb382336fd16a73c4a32bc5e5e61e81fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page