forked from BrokenSource/DepthFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
57 lines (48 loc) · 2.1 KB
/
pyproject.toml
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
[tool.poetry]
name = "DepthFlow"
version = "2024.2.6"
description = "Image to 2.5D Parallax Effect Video"
authors = ["Tremeschin <tremeschin@users.noreply.github.com>"]
license = "AGPLv3-only"
[[tool.poetry.packages]]
include = "DepthFlow"
[tool.poetry.scripts]
main = "DepthFlow.__main__:main"
[tool.poe.tasks]
_install_venv = "poetry install"
_install_torch_default = "python -m pip install torch==2.0.1 torchvision"
_install_torch_cuda = "python -m pip install torch==2.0.1 torchvision --index-url https://download.pytorch.org/whl/cu118"
_install_torch_rocm = "python -m pip install torch==2.0.1 torchvision --index-url https://download.pytorch.org/whl/rocm5.7"
_install_torch_cpu = "python -m pip install torch==2.0.1 torchvision --index-url https://download.pytorch.org/whl/cpu"
_uninstall_torch = "python -m pip uninstall -y torch torchvision"
default = ["_install_venv", "_uninstall_torch", "_install_torch_default"]
cuda = ["_install_venv", "_uninstall_torch", "_install_torch_cuda"]
rocm = ["_install_venv", "_uninstall_torch", "_install_torch_rocm"]
cpu = ["_install_venv", "_uninstall_torch", "_install_torch_cpu" ]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
timm = "0.6.7"
gradio = "^4.13.0"
broken-source = "^2024.1.15"
transformers = "^4.37.1"
torch = {version="2.0.1", source="torch-cpu"}
torchvision = "0.15.2"
[tool.poetry.dev-dependencies]
broken-source = {path="../../", develop=true}
shaderflow = {path="../ShaderFlow", develop=true}
moderngl-window = {path="../../Meta/Fork/ModernGLW", develop=true}
[[tool.poetry.source]]
name = "torch-cpu"
priority = "explicit"
url = "https://download.pytorch.org/whl/cpu"
[[tool.poetry.source]]
name = "torch-cuda"
priority = "explicit"
url = "https://download.pytorch.org/whl/cu118"
[[tool.poetry.source]]
name = "torch-rocm"
priority = "explicit"
url = "https://download.pytorch.org/whl/rocm5.4.2"