alessandro trinca tornidor
commited on
Commit
·
730ed45
1
Parent(s):
a58ebe1
chore: update samgis-lisa == 1.0.5 to avoid a CUDA init RuntimeError
Browse files- app.py +1 -1
- poetry.lock +8 -8
- pyproject.toml +3 -3
- requirements.txt +1 -1
app.py
CHANGED
@@ -143,7 +143,7 @@ def infer_lisa_gradio(request_input: StringPromptApiRequestBody) -> str:
|
|
143 |
output = lisa.lisa_predict(
|
144 |
bbox=body_request["bbox"], prompt=body_request["prompt"], zoom=body_request["zoom"],
|
145 |
source=source, source_name=source_name, inference_function_name_key=LISA_INFERENCE_FN,
|
146 |
-
inference_decorator=spaces.GPU
|
147 |
)
|
148 |
duration_run = time.time() - time_start_run
|
149 |
app_logger.info(f"duration_run:{duration_run}.")
|
|
|
143 |
output = lisa.lisa_predict(
|
144 |
bbox=body_request["bbox"], prompt=body_request["prompt"], zoom=body_request["zoom"],
|
145 |
source=source, source_name=source_name, inference_function_name_key=LISA_INFERENCE_FN,
|
146 |
+
inference_decorator=spaces.GPU, device_map="cpu"
|
147 |
)
|
148 |
duration_run = time.time() - time_start_run
|
149 |
app_logger.info(f"duration_run:{duration_run}.")
|
poetry.lock
CHANGED
@@ -1300,13 +1300,13 @@ files = [
|
|
1300 |
|
1301 |
[[package]]
|
1302 |
name = "lisa-on-cuda"
|
1303 |
-
version = "1.4.
|
1304 |
description = "LISA (Reasoning Segmentation via Large Language Model) on cuda, now with huggingface ZeroGPU support!"
|
1305 |
optional = false
|
1306 |
python-versions = "<3.12,>=3.10"
|
1307 |
files = [
|
1308 |
-
{file = "lisa_on_cuda-1.4.
|
1309 |
-
{file = "lisa_on_cuda-1.4.
|
1310 |
]
|
1311 |
|
1312 |
[package.dependencies]
|
@@ -2948,18 +2948,18 @@ structlog = ">=24.4.0,<25.0.0"
|
|
2948 |
|
2949 |
[[package]]
|
2950 |
name = "samgis-lisa"
|
2951 |
-
version = "1.0.
|
2952 |
description = "SamGIS LISA"
|
2953 |
optional = false
|
2954 |
python-versions = "<3.11,>=3.10"
|
2955 |
files = [
|
2956 |
-
{file = "samgis_lisa-1.0.
|
2957 |
-
{file = "samgis_lisa-1.0.
|
2958 |
]
|
2959 |
|
2960 |
[package.dependencies]
|
2961 |
gradio = "4.44.0"
|
2962 |
-
lisa-on-cuda = "1.4.
|
2963 |
samgis-web = "1.0.14"
|
2964 |
|
2965 |
[[package]]
|
@@ -3927,4 +3927,4 @@ files = [
|
|
3927 |
[metadata]
|
3928 |
lock-version = "2.0"
|
3929 |
python-versions = ">=3.10,<3.11"
|
3930 |
-
content-hash = "
|
|
|
1300 |
|
1301 |
[[package]]
|
1302 |
name = "lisa-on-cuda"
|
1303 |
+
version = "1.4.5"
|
1304 |
description = "LISA (Reasoning Segmentation via Large Language Model) on cuda, now with huggingface ZeroGPU support!"
|
1305 |
optional = false
|
1306 |
python-versions = "<3.12,>=3.10"
|
1307 |
files = [
|
1308 |
+
{file = "lisa_on_cuda-1.4.5-py3-none-any.whl", hash = "sha256:80008e59897483bc94c7eb07912a3d24b2a29411c12dbe4893580ed37737196f"},
|
1309 |
+
{file = "lisa_on_cuda-1.4.5.tar.gz", hash = "sha256:f2e7a8af2b167bc28eab0ed72a2bd91d9bb6297647f907683256df3e5026abb4"},
|
1310 |
]
|
1311 |
|
1312 |
[package.dependencies]
|
|
|
2948 |
|
2949 |
[[package]]
|
2950 |
name = "samgis-lisa"
|
2951 |
+
version = "1.0.5"
|
2952 |
description = "SamGIS LISA"
|
2953 |
optional = false
|
2954 |
python-versions = "<3.11,>=3.10"
|
2955 |
files = [
|
2956 |
+
{file = "samgis_lisa-1.0.5-py3-none-any.whl", hash = "sha256:2c27aeb266676892f5748d1fcbd0886861dac9df127baa997265e8377fefebf9"},
|
2957 |
+
{file = "samgis_lisa-1.0.5.tar.gz", hash = "sha256:a3d239cd66b73c8907bd5ed7a3538c19ca1c280346e700c8982b31538632c158"},
|
2958 |
]
|
2959 |
|
2960 |
[package.dependencies]
|
2961 |
gradio = "4.44.0"
|
2962 |
+
lisa-on-cuda = "1.4.5"
|
2963 |
samgis-web = "1.0.14"
|
2964 |
|
2965 |
[[package]]
|
|
|
3927 |
[metadata]
|
3928 |
lock-version = "2.0"
|
3929 |
python-versions = ">=3.10,<3.11"
|
3930 |
+
content-hash = "49ea508c8c47d6830bb6a1a7ad336c6e855440c552acd23c7698ef16e8d9004d"
|
pyproject.toml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
[tool.poetry]
|
2 |
name = "samgis-lisa-on-zero"
|
3 |
-
version = "1.5.
|
4 |
description = "A VLM backend for machine learning instance segmentation on geospatial data that uses LISA (Reasoning Segmentation via Large Language Model)."
|
5 |
authors = ["alessandro trinca tornidor <[email protected]>"]
|
6 |
license = "MIT license"
|
@@ -9,11 +9,11 @@ package-mode = false
|
|
9 |
|
10 |
[metadata]
|
11 |
name = "samgis-lisa-on-zero"
|
12 |
-
version = "1.5.
|
13 |
|
14 |
[tool.poetry.dependencies]
|
15 |
python = ">=3.10,<3.11"
|
16 |
-
samgis-lisa = "1.0.
|
17 |
|
18 |
[tool.poetry.group.test]
|
19 |
optional = true
|
|
|
1 |
[tool.poetry]
|
2 |
name = "samgis-lisa-on-zero"
|
3 |
+
version = "1.5.3"
|
4 |
description = "A VLM backend for machine learning instance segmentation on geospatial data that uses LISA (Reasoning Segmentation via Large Language Model)."
|
5 |
authors = ["alessandro trinca tornidor <[email protected]>"]
|
6 |
license = "MIT license"
|
|
|
9 |
|
10 |
[metadata]
|
11 |
name = "samgis-lisa-on-zero"
|
12 |
+
version = "1.5.3"
|
13 |
|
14 |
[tool.poetry.dependencies]
|
15 |
python = ">=3.10,<3.11"
|
16 |
+
samgis-lisa = "1.0.5"
|
17 |
|
18 |
[tool.poetry.group.test]
|
19 |
optional = true
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
samgis-lisa==1.0.
|
|
|
1 |
+
samgis-lisa==1.0.5
|