forked from Ancientea/CannotMax
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (69 loc) · 1.71 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (69 loc) · 1.71 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
[project]
name = "CannotMax-Greenvine"
version = "1.1.0"
description = "这是一个基于深度学习的明日方舟游戏辅助工具,用于自动识别游戏画面中的单位并预测战斗结果。"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"matplotlib",
"numpy",
"onnxruntime",
"opencv-python",
"pandas",
"pillow",
"pyqt6",
"rapidocr",
"scikit-learn",
"windows-capture",
"toml",
"pywin32>=311",
"maafw>=5.10.2",
]
[dependency-groups]
dev = ["onnx>=1.19.0", "onnxscript>=0.7.0", "pyinstaller>=6.15.0"]
[project.optional-dependencies]
cpu = ["torch", "torchvision"]
cu128 = ["torch>=2.7.0", "torchvision>=0.22.0"]
cu130 = ["torch>=2.7.0", "torchvision>=0.22.0"]
[tool.uv]
python-install-mirror = "https://mirror.nju.edu.cn/github-release/astral-sh/python-build-standalone/"
conflicts = [
[
{ extra = "cpu" },
{ extra = "cu128" },
],
[
{ extra = "cpu" },
{ extra = "cu130" },
],
[
{ extra = "cu128" },
{ extra = "cu130" },
],
]
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", extra = "cpu" },
{ index = "pytorch-cu128", extra = "cu128" },
{ index = "pytorch-cu130", extra = "cu130" },
]
torchvision = [
{ index = "pytorch-cpu", extra = "cpu" },
{ index = "pytorch-cu128", extra = "cu128" },
{ index = "pytorch-cu130", extra = "cu130" },
]
[[tool.uv.index]]
url = "https://mirrors.cloud.tencent.com/pypi/simple/"
default = true
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true