alessandro trinca tornidor commited on
Commit
50f88de
·
1 Parent(s): 4364464
lisa_on_cuda/utils/app_helpers.py CHANGED
@@ -17,6 +17,7 @@ from lisa_on_cuda.llava import conversation as conversation_lib
17
  from lisa_on_cuda.llava.mm_utils import tokenizer_image_token
18
  from lisa_on_cuda.segment_anything.utils.transforms import ResizeLongestSide
19
 
 
20
  placeholders = utils.create_placeholder_variables()
21
  app_logger = logging.getLogger(__name__)
22
 
 
17
  from lisa_on_cuda.llava.mm_utils import tokenizer_image_token
18
  from lisa_on_cuda.segment_anything.utils.transforms import ResizeLongestSide
19
 
20
+
21
  placeholders = utils.create_placeholder_variables()
22
  app_logger = logging.getLogger(__name__)
23
 
poetry.lock CHANGED
@@ -133,6 +133,20 @@ files = [
133
  [package.dependencies]
134
  scipy = "*"
135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  [[package]]
137
  name = "certifi"
138
  version = "2024.7.4"
@@ -2623,6 +2637,27 @@ tensorflow = ["safetensors[numpy]", "tensorflow (>=2.11.0)"]
2623
  testing = ["h5py (>=3.7.0)", "huggingface-hub (>=0.12.1)", "hypothesis (>=6.70.2)", "pytest (>=7.2.0)", "pytest-benchmark (>=4.0.0)", "safetensors[numpy]", "setuptools-rust (>=1.5.2)"]
2624
  torch = ["safetensors[numpy]", "torch (>=1.10)"]
2625
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2626
  [[package]]
2627
  name = "scipy"
2628
  version = "1.14.0"
@@ -2823,6 +2858,23 @@ anyio = ">=3.4.0,<5"
2823
  [package.extras]
2824
  full = ["httpx (>=0.22.0)", "itsdangerous", "jinja2", "python-multipart (>=0.0.7)", "pyyaml"]
2825
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2826
  [[package]]
2827
  name = "sympy"
2828
  version = "1.13.0"
@@ -3522,4 +3574,4 @@ files = [
3522
  [metadata]
3523
  lock-version = "2.0"
3524
  python-versions = ">=3.10, <3.12"
3525
- content-hash = "43852c8641f9a2bdab2434c46dcbd09fac796aaf40986147cff683616aa2b67b"
 
133
  [package.dependencies]
134
  scipy = "*"
135
 
136
+ [[package]]
137
+ name = "bson"
138
+ version = "0.5.10"
139
+ description = "BSON codec for Python"
140
+ optional = false
141
+ python-versions = "*"
142
+ files = [
143
+ {file = "bson-0.5.10.tar.gz", hash = "sha256:d6511b2ab051139a9123c184de1a04227262173ad593429d21e443d6462d6590"},
144
+ ]
145
+
146
+ [package.dependencies]
147
+ python-dateutil = ">=2.4.0"
148
+ six = ">=1.9.0"
149
+
150
  [[package]]
151
  name = "certifi"
152
  version = "2024.7.4"
 
2637
  testing = ["h5py (>=3.7.0)", "huggingface-hub (>=0.12.1)", "hypothesis (>=6.70.2)", "pytest (>=7.2.0)", "pytest-benchmark (>=4.0.0)", "safetensors[numpy]", "setuptools-rust (>=1.5.2)"]
2638
  torch = ["safetensors[numpy]", "torch (>=1.10)"]
2639
 
2640
+ [[package]]
2641
+ name = "samgis-core"
2642
+ version = "3.0.11"
2643
+ description = "SamGIS CORE"
2644
+ optional = false
2645
+ python-versions = "<3.12,>=3.10"
2646
+ files = [
2647
+ {file = "samgis_core-3.0.11-py3-none-any.whl", hash = "sha256:54bae8777c50e6b5c6ab8064499bcc3c659514d9f02a1af24f079101bccf837e"},
2648
+ {file = "samgis_core-3.0.11.tar.gz", hash = "sha256:b1765adf4cfee6c702ddf8588d2f28a40cd50e145efe26d628b0e200f8dbeaf0"},
2649
+ ]
2650
+
2651
+ [package.dependencies]
2652
+ bson = ">=0.5.10,<0.6.0"
2653
+ numpy = [
2654
+ {version = "1.25.2", markers = "python_version >= \"3.10\" and python_version < \"3.11\""},
2655
+ {version = ">=1.26,<2.0", markers = "python_version >= \"3.11\" and python_version < \"3.12\""},
2656
+ ]
2657
+ pillow = ">=10.4.0,<11.0.0"
2658
+ python-dotenv = ">=1.0.1,<2.0.0"
2659
+ structlog = ">=24.4.0,<25.0.0"
2660
+
2661
  [[package]]
2662
  name = "scipy"
2663
  version = "1.14.0"
 
2858
  [package.extras]
2859
  full = ["httpx (>=0.22.0)", "itsdangerous", "jinja2", "python-multipart (>=0.0.7)", "pyyaml"]
2860
 
2861
+ [[package]]
2862
+ name = "structlog"
2863
+ version = "24.4.0"
2864
+ description = "Structured Logging for Python"
2865
+ optional = false
2866
+ python-versions = ">=3.8"
2867
+ files = [
2868
+ {file = "structlog-24.4.0-py3-none-any.whl", hash = "sha256:597f61e80a91cc0749a9fd2a098ed76715a1c8a01f73e336b746504d1aad7610"},
2869
+ {file = "structlog-24.4.0.tar.gz", hash = "sha256:b27bfecede327a6d2da5fbc96bd859f114ecc398a6389d664f62085ee7ae6fc4"},
2870
+ ]
2871
+
2872
+ [package.extras]
2873
+ dev = ["freezegun (>=0.2.8)", "mypy (>=1.4)", "pretend", "pytest (>=6.0)", "pytest-asyncio (>=0.17)", "rich", "simplejson", "twisted"]
2874
+ docs = ["cogapp", "furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-mermaid", "sphinxext-opengraph", "twisted"]
2875
+ tests = ["freezegun (>=0.2.8)", "pretend", "pytest (>=6.0)", "pytest-asyncio (>=0.17)", "simplejson"]
2876
+ typing = ["mypy (>=1.4)", "rich", "twisted"]
2877
+
2878
  [[package]]
2879
  name = "sympy"
2880
  version = "1.13.0"
 
3574
  [metadata]
3575
  lock-version = "2.0"
3576
  python-versions = ">=3.10, <3.12"
3577
+ content-hash = "668b148bb7d3a1776a83392c46bdc9609acb8d7b3a7b2513ed1fc73e3a142cb1"
pyproject.toml CHANGED
@@ -32,6 +32,7 @@ peft-patched = "0.9.3"
32
  pycocotools = "^2.0.8"
33
  python = ">=3.10, <3.12"
34
  requests = "^2.32.3"
 
35
  scipy = "^1.14.0"
36
  sentencepiece = "^0.2.0"
37
  shortuuid = "^1.0.13"
 
32
  pycocotools = "^2.0.8"
33
  python = ">=3.10, <3.12"
34
  requests = "^2.32.3"
35
+ samgis-core = "3.0.11"
36
  scipy = "^1.14.0"
37
  sentencepiece = "^0.2.0"
38
  shortuuid = "^1.0.13"
requirements.txt CHANGED
@@ -1,22 +1,21 @@
1
  bitsandbytes==0.42.0
2
  einops==0.8.0
3
- fastapi==0.111.1
4
- gradio==4.40.0
5
- markdown2==2.5.0
6
  nh3==0.2.18
7
  numpy==1.25.2
8
- openai==1.37.1
9
  opencv-python-headless==4.8.1.78
10
  packaging
11
- peft_patched==0.9.3
12
  pycocotools==2.0.8
13
- samgis_core==3.0.8
 
14
  scipy==1.14.0
15
  sentencepiece==0.2.0
16
  shortuuid==1.0.13
17
- spaces==0.28.3
18
  torch==2.2.0
19
  torchvision==0.17.0
20
  tqdm==4.66.4
21
  transformers-backport==4.31.2
22
- uvicorn==0.30.4
 
1
  bitsandbytes==0.42.0
2
  einops==0.8.0
3
+ fastapi==0.111.0
4
+ markdown2==2.4.13
 
5
  nh3==0.2.18
6
  numpy==1.25.2
7
+ openai==1.35.12
8
  opencv-python-headless==4.8.1.78
9
  packaging
10
+ peft-patched==0.9.3
11
  pycocotools==2.0.8
12
+ requests==2.32.3
13
+ samgis-core==3.0.11
14
  scipy==1.14.0
15
  sentencepiece==0.2.0
16
  shortuuid==1.0.13
 
17
  torch==2.2.0
18
  torchvision==0.17.0
19
  tqdm==4.66.4
20
  transformers-backport==4.31.2
21
+ uvicorn==0.30.1
requirements_no_versions.txt CHANGED
@@ -1,22 +1,25 @@
1
  bitsandbytes
2
  einops
3
  fastapi
4
- gradio
5
- gradio_client
6
  markdown2
7
  nh3
8
  numpy
9
  openai
10
  opencv-python-headless
11
  packaging
12
- peft
 
13
  pycocotools
14
  ray
 
 
 
15
  scipy
16
  sentencepiece
17
  shortuuid
18
  torch
19
  torchvision
20
  tqdm
21
- transformers
 
22
  uvicorn
 
1
  bitsandbytes
2
  einops
3
  fastapi
 
 
4
  markdown2
5
  nh3
6
  numpy
7
  openai
8
  opencv-python-headless
9
  packaging
10
+ peft-patched
11
+ peft_patched
12
  pycocotools
13
  ray
14
+ requests
15
+ samgis-core
16
+ samgis_core
17
  scipy
18
  sentencepiece
19
  shortuuid
20
  torch
21
  torchvision
22
  tqdm
23
+ transformers-backport
24
+ transformers_backport
25
  uvicorn