crazylemonade commited on
Commit
84b8f32
Β·
verified Β·
1 Parent(s): 6b1b2d4

Delete requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +0 -54
requirements.txt DELETED
@@ -1,54 +0,0 @@
1
- # Reference only β€” dependencies are installed directly in the Dockerfile
2
- # to allow layered pip caching. See Dockerfile for the authoritative install order.
3
- #
4
- # ── Layer 1 β€” FastAPI + lightweight runtime deps ──────────────────────────────
5
- fastapi>=0.115.0
6
- uvicorn[standard]>=0.32.0
7
- python-multipart>=0.0.12
8
- Pillow>=10.0.0
9
- pillow-heif>=0.18.0
10
- huggingface_hub>=0.25.0
11
- opencv-python-headless>=4.8.0 # placeholder; force-reinstalled in Layer 4
12
- #
13
- # ── Layer 2 β€” CPU-only PyTorch ────────────────────────────────────────────────
14
- # pip install --index-url https://download.pytorch.org/whl/cpu torch torchvision
15
- # MUST come before magic-pdf. PyPI serves the CUDA wheel by default (~2.5 GB).
16
- # Pre-installing the CPU build causes pip to skip the CUDA wheel when resolving
17
- # magic-pdf's `torch` requirement.
18
- torch>=2.2.2,!=2.5.0,!=2.5.1,<3
19
- torchvision>=0.15.2
20
- #
21
- # ── Layer 3 β€” magic-pdf with CORRECT extras ───────────────────────────────────
22
- # pip install --extra-index-url https://myhloli.github.io/wheels/ magic-pdf[full]==1.3.12
23
- #
24
- # FORENSIC SUMMARY:
25
- #
26
- # [full-cpu] is NOT a valid extra in magic-pdf 1.3.12.
27
- # Valid extras: [full], [full_old_linux], [lite]
28
- # Using an invalid extra causes pip to install base-only β€” omitting
29
- # ultralytics, doclayout-yolo, rapid-table, and OCR support entirely.
30
- #
31
- # [full] provides:
32
- # ultralytics >=8.3.48 YOLO framework, required by doclayout-yolo
33
- # doclayout-yolo ==0.0.2b1 layout detection (myhloli index only)
34
- # rapid-table >=1.0.5 table detection (onnxruntime pulled as transitive dep)
35
- # shapely, pyclipper used by paddleocr2pytorch (baked into magic-pdf wheel)
36
- # omegaconf, matplotlib, ftfy, dill, PyYAML, openai, albumentations
37
- #
38
- # [lite] is NOT used because:
39
- # - paddlepaddle==3.0.0b1 pinned by [lite] does not exist on PyPI (removed beta)
40
- # - paddleocr==2.7.3 requires opencv-python <=4.6.0.66, incompatible with
41
- # ultralytics (>=4.6.0) and doclayout-yolo (>=4.6.0)
42
- # - paddlepaddle/paddleocr are NOT needed: pipeline backend uses paddleocr2pytorch,
43
- # a self-contained PyTorch reimplementation bundled inside the magic-pdf wheel
44
- #
45
- # --extra-index-url https://myhloli.github.io/wheels/ is required because
46
- # doclayout-yolo==0.0.2b1 is only on the myhloli wheel server, not on PyPI.
47
- magic-pdf[full]==1.3.12
48
- #
49
- # ── Layer 4 β€” Restore headless OpenCV (MUST be last) ─────────────────────────
50
- # pip install --force-reinstall opencv-python-headless>=4.8.0
51
- # Layer 3 installs opencv-python (non-headless) via doclayout-yolo + ultralytics
52
- # + rapid-table transitive deps. Force-reinstalling headless overwrites cv2 with
53
- # the build that works on this container without X11 libs.
54
- opencv-python-headless>=4.8.0 # force-reinstalled in Layer 4