File size: 2,101 Bytes
bb1671a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[project]
name = "dreamsim-space"
version = "0.1.0"
authors = [
  { name = "Stephanie Fu" },
  { name = "Netanel Tamir" },
  { name = "Shobhita Sundaram" },
  { name = "Lucy Chai" },
  { name = "Richard Zhang" },
  { name = "Tali Dekel" },
  { name = "Phillip Isola" },
]
maintainers = [
  { name = "Andi Powers-Holmes", email = "[email protected]" },
]
description = "DreamSim Gradio Space"
readme = "README.md"
requires-python = ">=3.9, <3.11"
keywords = [
  "deep-learning",
  "machine-learning",
  "pytorch",
]
license = { file = "LICENSE.md" }
classifiers = [
  "Programming Language :: Python :: 3",
  "License :: OSI Approved :: MIT License",
]
dependencies = [
  "accelerate",
  "diffusers",
  "gradio >=4.19.1, < 5.0.0",
  "numpy",
  "pandas",
  "Pillow",
  "PyYAML",
  "safetensors",
  "simple-parsing >= 0.1.0",
  "torch",
  "torchvision",
  "transformers",
  'xformers; sys_platform != "win32"',
]

[project.urls]
Repository = "https://huggingface.co./spaces/neggles/dreamsim"

[project.optional-dependencies]
dev = [
  "ruff >=0.0.289",
  "setuptools-scm >= 8.0.0",
  "pre-commit >= 3.0.0",     # remember to run `pre-commit install` after installing
  "tabulate >= 0.8.9",       # for inductor log prettyprinting
]
all = [
  "dreamsim-space[dev]",
]

[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "wheel"]

[tool.setuptools.packages.find]
namespaces = true
where = ["."]
include = ["dreamsim"]


[tool.ruff]
line-length = 110
target-version = "py310"
extend-exclude = ["/usr/lib/*"]

[tool.ruff.lint]
ignore = [
  "F841", # local variable assigned but never used
  "F842", # local variable annotated but never used
  "E501", # line too long - will be fixed in format
]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
docstring-code-format = true

[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
known-local-folder = ["dreamsim"]
known-first-party = ["dreamsim"]


[tool.pyright]
include = ["src/**"]
exclude = ["/usr/lib/**"]
stubPath = "./typings"