-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (101 loc) · 3.17 KB
/
Copy pathpyproject.toml
File metadata and controls
107 lines (101 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "falcon-perception"
version = "1.0.0"
description = "Falcon Perception is a dense vision-language model that performs object detection, instance segmentation, and OCR from natural language queries."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
requires-python = ">=3.10"
authors = [{name = "Technology Innovation Institute"}]
maintainers = [{name = "Phuc H. Le Khac", email = "phuc.lekhac@tii.ae"}]
keywords = [
"vision-language-model",
"object-detection",
"instance-segmentation",
"ocr",
"falcon",
"deep-learning",
"computer-vision",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Recognition",
]
dependencies = [
# Core (framework-agnostic)
"einops>=0.8.1",
"numpy>=1.24",
"pillow>=12.0.0",
"tokenizers>=0.21.0",
"datasets>=4.5.0",
"pycocotools>=2.0.11",
"opencv-python>=4.12.0.88",
"scipy>=1.15.3",
"tyro>=1.0.3",
"hf-transfer>=0.1.9",
"requests>=2.31.0",
"hf-xet>=1.3.1",
# Auto-detect backend by platform
"mlx>=0.30.0; sys_platform == 'darwin' and platform_machine == 'arm64'",
"torch>=2.11.0; sys_platform != 'darwin'",
"torchvision>=0.26.0; sys_platform != 'darwin'",
"safetensors>=0.7.0",
]
[project.optional-dependencies]
torch = [
"torch>=2.11.0",
"torchvision>=0.26.0",
]
mlx = [
"mlx>=0.30.0; sys_platform == 'darwin' and platform_machine == 'arm64'",
]
ocr = [
"falcon-perception[torch]",
"transformers>=4.57.3",
]
dev = [
"tensorboard>=2.20.0",
"ipykernel>=7.2.0",
"matplotlib>=3.10.8",
]
server = [
"fastapi>=0.129.0",
"uvicorn[standard]>=0.40.0",
"python-multipart>=0.0.22",
]
demo = [
"streamlit>=1.52.2",
"requests>=2.31.0",
]
[project.urls]
Homepage = "https://github.com/tiiuae/Falcon-Perception"
Repository = "https://github.com/tiiuae/Falcon-Perception"
Issues = "https://github.com/tiiuae/Falcon-Perception/issues"
"Hugging Face" = "https://huggingface.co/tiiuae/Falcon-Perception"
[tool.setuptools.packages.find]
where = ["."]
include = ["falcon_perception*"]
# ---------------------------------------------------------------------------
# uv: use the PyTorch cu128 index for torch / torchvision so we get wheels
# built against CUDA 12.8 (compatible with driver ≥ 570.x / CUDA 12.8).
# Without this, uv pulls the default PyPI wheels which since torch 2.11
# ship CUDA 13.0 and require a newer driver.
# ---------------------------------------------------------------------------
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch-cu128" }
torchvision = { index = "pytorch-cu128" }