Skip to content

Commit 3cac8e2

Browse files
committed
Replace tflite with ai-edge-litert
1 parent 5b85e93 commit 3cac8e2

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

docker/requirements.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11

2-
--extra-index-url https://packages.dea.ga.gov.au/
2+
# For ML
3+
ai-edge-litert
34
datacube-ows>=1.9
45
datacube[performance,s3]>=1.9.5
56
eodatasets3>1.9
6-
hdstats==0.1.8.post1
7+
geomad<=1.0.0
78
numexpr>=2.11
89
odc-algo>=1.0.1
910
odc-apps-cloud>=0.2.2
@@ -16,7 +17,4 @@ odc-stac>=0.4.0
1617

1718
# odc-stac is in PyPI
1819
odc-stats[ows]
19-
20-
# For ML
21-
tflite-runtime
2220
tl2cgen

odc/stats/plugins/_worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
from dask.distributed import WorkerPlugin, get_worker
8-
import tflite_runtime.interpreter as tflite
8+
from ai_edge_litert.interpreter import Interpreter
99
import tl2cgen
1010
import threading
1111
import logging
@@ -25,7 +25,7 @@ def get_interpreter(self):
2525
worker = get_worker()
2626
thread_id = threading.get_ident()
2727
if thread_id not in worker.interpreters:
28-
interpreter = tflite.Interpreter(model_path=self.model_path)
28+
interpreter = Interpreter(model_path=self.model_path)
2929
interpreter.allocate_tensors()
3030
worker.interpreters[thread_id] = interpreter
3131
self._log.info(

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ install_requires =
2626
distributed>=2025.4
2727
numpy
2828
odc-cloud[ASYNC]>=0.2.5
29-
odc_algo>=1.0.1
29+
odc_algo[geomad]>=1.0.1
3030
odc_dscache>=1.9
3131
odc_io
3232
odc-geo>=0.5.0rc1
@@ -42,7 +42,7 @@ install_requires =
4242
fiona
4343
rasterio>=1.3.2
4444
s3fs
45-
tflite-runtime
45+
ai-edge-litert
4646
tl2cgen
4747

4848
[options.entry_points]

tests/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--extra-index-url https://packages.dea.ga.gov.au/
1+
ai-edge-litert
22
datacube>=1.9.5
33
datacube-ows>=1.9
44
# for pytest-depends
@@ -22,7 +22,6 @@ pytest-cov
2222
pytest-httpserver
2323
pytest-timeout
2424
s3fs
25-
tflite-runtime
2625
tl2cgen
2726

2827
# patch image

0 commit comments

Comments
 (0)