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
Files changed (4) hide show
  1. app.py +1 -1
  2. poetry.lock +8 -8
  3. pyproject.toml +3 -3
  4. 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.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.4-py3-none-any.whl", hash = "sha256:5d052e7531514ffb260d4c2fb9c13a37d06fc7657d8635ff9a0b1f74bba01e5d"},
1309
- {file = "lisa_on_cuda-1.4.4.tar.gz", hash = "sha256:f743e05c985af36cd63cbafb2fbebbc4ff69f267792b733166c824f425f410f2"},
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.3"
2952
  description = "SamGIS LISA"
2953
  optional = false
2954
  python-versions = "<3.11,>=3.10"
2955
  files = [
2956
- {file = "samgis_lisa-1.0.3-py3-none-any.whl", hash = "sha256:23bd6349087af3ef41e4e23bdab1df9c685dd83d881fc63226883d71b27c32bd"},
2957
- {file = "samgis_lisa-1.0.3.tar.gz", hash = "sha256:9cbb58bd075512b8164bf85714432d53f455f7fd8d5a480367f019d894cf16fa"},
2958
  ]
2959
 
2960
  [package.dependencies]
2961
  gradio = "4.44.0"
2962
- lisa-on-cuda = "1.4.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 = "705ac5fb3c810f43f54a7af8ef2b7a0ffee523a975464d4af1bd75932f5c45d9"
 
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.2"
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.2"
13
 
14
  [tool.poetry.dependencies]
15
  python = ">=3.10,<3.11"
16
- samgis-lisa = "1.0.3"
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
 
1
+ samgis-lisa==1.0.5