-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
49 lines (46 loc) · 2.17 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
[build-system]
requires = ["poetry-core>=1.4.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "diffhandles"
version = "0.1.0"
description = "DiffusionHandles: Enabling 3D Edits for Diffusion Models by Lifting Activations to 3D"
documentation = "https://diffusionhandles.github.io/"
repository = "https://github.com/paulguerrero/diffusionhandles.git"
authors = [
"Karran Pandey",
"Paul Guerrero",
"Matheus Gadelha",
"Yannick Hold-Geoffroy",
"Niloy Mitra",
"Karan Singh",
]
[tool.poetry.dependencies]
pip = "*"
python = ">=3.9, <3.11"
torch = ">=2.0"
torchvision = "*"
trimesh = "*"
numpy = ">=1.24.1"
scipy = "*"
timm = "0.6.12" # required by ZoeDepth (the pretrained weights are for this version and do not work with some later versions)
diffusers = "0.23.*" # since we use a custom denoising UNet that we obtain by patching the model in the diffusers library, we need the exact version
opencv-python = "*"
transformers = ">=4.33"
accelerate = "*"
tqdm = ">=4.64.1"
pytorch3d = { git = "https://github.com/facebookresearch/pytorch3d.git" } # for depth mesh rendering
zoedepth = { git = "https://github.com/paulguerrero/ZoeDepth.git", optional = true } # for depth estimation
saicinpainting = { git = "https://github.com/paulguerrero/lama.git", optional = true } # for foreground removal
omegaconf = "*"
imageio = { version = "*", optional = true } # to load exr images
Jinja2 = { version = "*", optional = true } # for generating the test result website
matplotlib = { version = "*", optional = true } # for the transform visualizer jupyter notebook
lang-sam = { git = "https://github.com/paulguerrero/lang-sam", optional = true } # for foreground mask estimation from a text prompt
gradio = { version = "*", optional = true } # for the web app.
fastapi = { version = "*", optional = true } # for the web app
uvicorn = { version = "*", extras = ["standard"], optional = true } # for the web app
gradio_hdrimage = { version = "*", optional = true } # for the web app
[tool.poetry.extras]
test = ["zoedepth", "saicinpainting", "lang-sam", "Jinja2", "matplotlib", "imageio"]
webapp = ["zoedepth", "saicinpainting", "lang-sam", "gradio", "fastapi", "uvicorn", "gradio_hdrimage"]