Spaces:
Running
on
A100
Running
on
A100
Env: created pyproject.toml instead of setup.py + requirements.
Browse files- pyproject.toml +34 -0
- requirements.txt +0 -8
- setup.py +0 -27
pyproject.toml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[build-system]
|
2 |
+
requires = ["setuptools>=42", "wheel"]
|
3 |
+
build-backend = "setuptools.build_meta"
|
4 |
+
|
5 |
+
[project]
|
6 |
+
name = "xora-core"
|
7 |
+
version = "0.1.0"
|
8 |
+
description = "A package for Xora model inference"
|
9 |
+
authors = [
|
10 |
+
{ name = "Sapir Weissbuch", email = "[email protected]" }
|
11 |
+
]
|
12 |
+
requires-python = ">=3.10"
|
13 |
+
readme = "README.md"
|
14 |
+
classifiers = [
|
15 |
+
"Programming Language :: Python :: 3",
|
16 |
+
"License :: OSI Approved :: MIT License",
|
17 |
+
"Operating System :: OS Independent"
|
18 |
+
]
|
19 |
+
dependencies = [
|
20 |
+
"torch>=2.1.0",
|
21 |
+
"diffusers~=0.28.2",
|
22 |
+
"transformers~=4.44.2",
|
23 |
+
"sentencepiece~=0.1.96",
|
24 |
+
"huggingface-hub~=0.25.2",
|
25 |
+
"einops"
|
26 |
+
]
|
27 |
+
|
28 |
+
[project.optional-dependencies]
|
29 |
+
# Instead of thinking of them as optional, think of them as specific modes
|
30 |
+
inference-script = [
|
31 |
+
"accelerate",
|
32 |
+
"matplotlib",
|
33 |
+
"opencv-python"
|
34 |
+
]
|
requirements.txt
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
torch==2.3.0
|
2 |
-
diffusers==0.28.2
|
3 |
-
transformers==4.44.2
|
4 |
-
sentencepiece>=0.1.96
|
5 |
-
accelerate
|
6 |
-
einops
|
7 |
-
matplotlib
|
8 |
-
opencv-python
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setup.py
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
from setuptools import setup, find_packages
|
2 |
-
|
3 |
-
|
4 |
-
def parse_requirements(filename):
|
5 |
-
"""Load requirements from a pip requirements file."""
|
6 |
-
with open(filename, "r") as file:
|
7 |
-
return file.read().splitlines()
|
8 |
-
|
9 |
-
|
10 |
-
setup(
|
11 |
-
name="xora-core", # The name of your package
|
12 |
-
version="0.1.0", # Version number of the package
|
13 |
-
description="A package for Xora model inferece", # Short description
|
14 |
-
author="YSapir Weissbuch", # Your name
|
15 |
-
author_email="[email protected]", # Your email
|
16 |
-
url="https://github.com/LightricksResearch/xora-core", # URL for the project (GitHub, etc.)
|
17 |
-
packages=find_packages(), # Automatically find all packages inside `xora`
|
18 |
-
install_requires=parse_requirements(
|
19 |
-
"requirements.txt"
|
20 |
-
), # Install dependencies from requirements.txt
|
21 |
-
classifiers=[
|
22 |
-
"Programming Language :: Python :: 3",
|
23 |
-
"License :: OSI Approved :: MIT License",
|
24 |
-
"Operating System :: OS Independent",
|
25 |
-
],
|
26 |
-
python_requires=">=3.10", # Specify Python version compatibility
|
27 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|