7
7
# ######################
8
8
9
9
[[tool .uv .index ]]
10
- name = " torch-gpu "
11
- url = " https://download.pytorch.org/whl/cu121 "
10
+ name = " torch-cpu "
11
+ url = " https://download.pytorch.org/whl/cpu "
12
12
explicit = true
13
13
14
+
14
15
[[tool .uv .index ]]
15
- name = " torch-cpu "
16
- url = " https://download.pytorch.org/whl/cpu "
16
+ name = " torch-gpu "
17
+ url = " https://download.pytorch.org/whl/cu121 "
17
18
explicit = true
18
19
19
- # ################################
20
- # Dependency-to-Index Mapping #
21
- # ################################
20
+ # #################################
21
+ # Pin torch/vision to *an* index #
22
+ # #################################
22
23
24
+ [tool .uv .sources ]
23
25
torch = [
24
- # CUDA build on Linux/Windows only
25
- { index = " torch-gpu" , marker = " sys_platform != 'darwin'" },
26
- # CPU build on macOS
27
- { index = " torch-cpu" , marker = " sys_platform == 'darwin'" }
26
+ { index = " torch-cpu" , marker = " sys_platform == 'darwin'" },
27
+ { index = " torch-gpu" , marker = " sys_platform == 'linux' or sys_platform == 'win32'" },
28
28
]
29
29
torchvision = [
30
- { index = " torch-gpu " , marker = " sys_platform ! = 'darwin'" },
31
- { index = " torch-cpu " , marker = " sys_platform == 'darwin' " }
30
+ { index = " torch-cpu " , marker = " sys_platform = = 'darwin'" },
31
+ { index = " torch-gpu " , marker = " sys_platform == 'linux' or sys_platform == 'win32' " },
32
32
]
33
33
34
+
34
35
# ########################
35
36
# UV-specific Overrides #
36
37
# ########################
@@ -43,6 +44,7 @@ requires-dist = ["onnx>=1.17.0", "onnxsim<1.0.0,>=0.4.36"]
43
44
[tool .uv ]
44
45
no-build-isolation-package = [" yolox" ]
45
46
47
+
46
48
# ###########
47
49
# Flake8 #
48
50
# ###########
@@ -111,12 +113,12 @@ keywords = [
111
113
]
112
114
113
115
dependencies = [
114
- " setuptools>=78.0.0 " ,
116
+ " setuptools" ,
115
117
" filterpy<2.0.0,>=1.4.5" ,
116
118
" gdown<6.0.0,>=5.1.0" ,
117
119
" lapx<1.0.0,>=0.5.5" ,
118
120
" loguru<1.0.0,>=0.7.2" ,
119
- " numpy==1.26.4 " ,
121
+ " numpy" ,
120
122
" pyyaml<7.0.0,>=6.0.1" ,
121
123
" regex<2025.0.0,>=2024.0.0" ,
122
124
" yacs<1.0.0,>=0.1.8" ,
@@ -155,7 +157,7 @@ evolve = [
155
157
dev = [" ipykernel<7.0.0,>=6.29.5" ]
156
158
157
159
yolox-build-deps = [
158
- " setuptools>=78.0.0 " ,
160
+ " setuptools" ,
159
161
" torch<3.0.0,>=2.2.1" ,
160
162
]
161
163
0 commit comments