cheenchan commited on
Commit
92d9dda
·
1 Parent(s): afa3503

Remove egg-info from package

Browse files
frame_extraction/src/frame_extraction.egg-info/PKG-INFO DELETED
@@ -1,74 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: frame-extraction
3
- Version: 0.1.0
4
- Summary: Character-centric frame extraction and matching pipeline
5
- Requires-Python: >=3.10
6
- Description-Content-Type: text/markdown
7
- Requires-Dist: typer>=0.12
8
- Requires-Dist: rich>=13.7
9
- Requires-Dist: numpy>=1.24
10
- Requires-Dist: pandas>=2.1
11
- Requires-Dist: opencv-python>=4.8
12
- Requires-Dist: torch>=2.1
13
- Requires-Dist: torchvision>=0.16
14
- Requires-Dist: facenet-pytorch>=2.5.3
15
- Requires-Dist: scikit-learn>=1.4
16
- Requires-Dist: Pillow>=10.0
17
- Requires-Dist: tqdm>=4.66
18
- Requires-Dist: gradio>=4.0
19
- Requires-Dist: faiss-cpu>=1.7.4
20
-
21
- # Frame Extraction & Character Matching
22
-
23
- This package turns raw video into character reference catalogs and lets you match new frames against those references. It is designed to be deployed quickly (e.g., on Hugging Face Spaces) for interactive character discovery.
24
-
25
- ## Features
26
- - Shot-aware frame sampling to keep only useful stills.
27
- - Face detection, embedding, and clustering (MTCNN + InceptionResnet).
28
- - Automatic reference selection per character (sharpest, most frontal crop).
29
- - JSON catalog output and optional reference thumbnails.
30
- - Matching API/CLI for user-uploaded frames with multi-character support.
31
- - Gradio app template ready for Hugging Face hosting.
32
-
33
- ## Install
34
- ```bash
35
- cd projects/UMO-Qwen-Edit/data_curation_scripts/frame_extraction
36
- pip install -e .
37
- ```
38
-
39
- ## CLI Usage
40
- ### Build a catalog from a video
41
- ```bash
42
- frame-catalog catalog \
43
- --video-path data/source.mp4 \
44
- --output-dir outputs/catalog \
45
- --frame-interval 12 \
46
- --min-track-length 5
47
- ```
48
-
49
- ### Match new frames against the catalog
50
- ```bash
51
- frame-catalog match \
52
- --catalog-path outputs/catalog/catalog.json \
53
- --frames-dir uploads/ \
54
- --output-path outputs/matches.json
55
- ```
56
-
57
- ## Deploy on Hugging Face Spaces
58
- 1. Copy this folder to a new Space (Python SDK).
59
- 2. Install dependencies with `pip install -e .`.
60
- 3. Upload a pre-built `catalog/catalog.json` plus the `references/` images.
61
- 4. Set environment variables in the Space:
62
- - `FRAME_CATALOG=/home/user/app/catalog/catalog.json`
63
- - `FRAME_OUTPUT_DIR=/home/user/app/output`
64
- 5. Set the Space entrypoint to `python -m frame_extraction.app`.
65
-
66
- ## Outputs
67
- - `catalog.json`: character reference metadata with embeddings and chosen frames.
68
- - `references/`: cropped reference images per character.
69
- - `matches.json`: mapping from user frames to character IDs with similarity scores.
70
-
71
- ## Roadmap
72
- - Integrate more robust trackers (DeepSort/ByteTrack).
73
- - Add active learning loop for manual character corrections.
74
- - Expose REST endpoints for automated ingestion.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frame_extraction/src/frame_extraction.egg-info/SOURCES.txt DELETED
@@ -1,18 +0,0 @@
1
- README.md
2
- pyproject.toml
3
- src/frame_extraction/__init__.py
4
- src/frame_extraction/app.py
5
- src/frame_extraction/catalog.py
6
- src/frame_extraction/cli.py
7
- src/frame_extraction/clustering.py
8
- src/frame_extraction/config.py
9
- src/frame_extraction/face.py
10
- src/frame_extraction/matcher.py
11
- src/frame_extraction/quality.py
12
- src/frame_extraction/video.py
13
- src/frame_extraction.egg-info/PKG-INFO
14
- src/frame_extraction.egg-info/SOURCES.txt
15
- src/frame_extraction.egg-info/dependency_links.txt
16
- src/frame_extraction.egg-info/entry_points.txt
17
- src/frame_extraction.egg-info/requires.txt
18
- src/frame_extraction.egg-info/top_level.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frame_extraction/src/frame_extraction.egg-info/dependency_links.txt DELETED
@@ -1 +0,0 @@
1
-
 
 
frame_extraction/src/frame_extraction.egg-info/entry_points.txt DELETED
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- frame-catalog = frame_extraction.cli:app
 
 
 
frame_extraction/src/frame_extraction.egg-info/requires.txt DELETED
@@ -1,13 +0,0 @@
1
- typer>=0.12
2
- rich>=13.7
3
- numpy>=1.24
4
- pandas>=2.1
5
- opencv-python>=4.8
6
- torch>=2.1
7
- torchvision>=0.16
8
- facenet-pytorch>=2.5.3
9
- scikit-learn>=1.4
10
- Pillow>=10.0
11
- tqdm>=4.66
12
- gradio>=4.0
13
- faiss-cpu>=1.7.4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frame_extraction/src/frame_extraction.egg-info/top_level.txt DELETED
@@ -1 +0,0 @@
1
- frame_extraction