-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (119 loc) · 3.64 KB
/
Copy pathpyproject.toml
File metadata and controls
127 lines (119 loc) · 3.64 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[project]
name = "mlvc"
version = "0.1.0"
requires-python = ">=3.12,<3.14"
dependencies = [
"torch==2.10.0",
"torchao",
# Data & utilities
"tqdm",
"tabulate",
"pandas",
"scipy",
"matplotlib",
"dataclasses-json",
# ONNX / model conversion
"onnx",
"onnxscript",
"onnxconverter_common",
"coremltools",
# Azure
"cryptography<=46.0.3", # Latest versions missing ARM64 Windows wheels
"azure-identity",
"azure-storage-blob",
"azure-ai-ml",
"azureml-mlflow",
"mlflow-skinny",
# Not available for ARM64 Windows
"lpips; sys_platform != 'win32' or platform_machine != 'ARM64'",
"opencv-python==4.11.0.86; sys_platform != 'win32' or platform_machine != 'ARM64'",
"sentencepiece; sys_platform != 'win32' or platform_machine != 'ARM64'",
"transformers>=5.14.1,<6; sys_platform != 'win32' or platform_machine != 'ARM64'",
"pyfacer; sys_platform != 'win32' or platform_machine != 'ARM64'",
]
[project.optional-dependencies]
onnxruntime = ["onnxruntime"]
onnxruntime-gpu = [
"onnxruntime-gpu; sys_platform == 'linux' or (sys_platform == 'win32' and platform_machine == 'AMD64')",
]
onnxruntime-openvino = [
"onnxruntime-openvino==1.24.1; sys_platform == 'win32' and platform_machine == 'AMD64'",
"openvino==2025.4.1; sys_platform == 'win32' and platform_machine == 'AMD64'",
]
onnxruntime-qnn = [
"onnxruntime-qnn==1.24.4; sys_platform == 'win32' and platform_machine == 'ARM64'",
]
onnxruntime-windowsml = [
"winrt-Windows.Foundation; sys_platform == 'win32'",
"winrt-Windows.ApplicationModel; sys_platform == 'win32'",
"wasdk-Microsoft.Windows.AI.MachineLearning==1.8.*; sys_platform == 'win32'",
"wasdk-Microsoft.Windows.ApplicationModel.DynamicDependency.Bootstrap==1.8.*; sys_platform == 'win32'",
]
[dependency-groups]
ci = [
"pytest",
"pyright",
"ruff",
"pre-commit",
"pre-commit-hooks",
"python-dotenv",
]
dev = [
{ include-group = "ci" },
"jupyterlab",
]
[tool.uv]
package = false
conflicts = [
[
{ extra = "onnxruntime" },
{ extra = "onnxruntime-gpu" },
{ extra = "onnxruntime-qnn" },
{ extra = "onnxruntime-openvino" },
{ extra = "onnxruntime-windowsml" },
],
]
environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'",
"sys_platform == 'win32' and platform_machine == 'AMD64'",
"sys_platform == 'win32' and platform_machine == 'ARM64'",
"sys_platform == 'darwin' and platform_machine == 'arm64'",
]
[tool.uv.sources]
torch = [
{ index = "pytorch-cu128", marker = "sys_platform == 'win32' and platform_machine == 'AMD64'" },
{ index = "pytorch-cpu", marker = "sys_platform == 'win32' and platform_machine != 'AMD64'" },
]
torchvision = [
{ index = "pytorch-cu128", marker = "sys_platform == 'win32' and platform_machine == 'AMD64'" },
{ index = "pytorch-cpu", marker = "sys_platform == 'win32' and platform_machine != 'AMD64'" },
]
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.pyright]
include = ["video"]
extraPaths = ["packages/msrtc_rans/python/src"]
exclude = [
"**/node_modules",
"**/__pycache__",
"**/.*",
".venv",
"venv",
"video/src/vsr",
"video/src/metrics/deqa",
"video/src/models/legacy",
"video/src/utils/flow_tester.py",
"packages/msrtc_rans/python/src",
]
ignore = ["packages/msrtc_rans/python/src"]
pythonVersion = "3.12"
typeCheckingMode = "basic"
[tool.ruff]
line-length = 120
extend-exclude = ["video/src/vsr", "video/src/metrics/deqa"]