fix(worker): real image 加 tensorflow 支援 tflite #2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/tflite-tensorflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
摘要
real worker image 加裝 tensorflow,修復 tflite 輸入格式轉檔失敗。
背景
staging real worker 轉 tflite 時失敗:
ModuleNotFoundError: No module named 'tensorflow'。tflite 走 tflite→(tflite2onnx)→onnx→bie→nef,第一步需要 tensorflow,但先前 build image 時為省大小沒裝(只驗過 onnx/bie/nef 輸入)。變更(Dockerfile.real)
tensorflow-cpu==2.13.1(Python 3.9 + numpy<2 + ktc TF compat patch 交集;-cpu 省 ~1.5GB)igraph==1.0.0(tree_structure.py 硬 import)typing-extensions>=4.8.0(防 TF 降版打爆 fastapi)<2→==1.23.5(語意子集、非破鎖)驗證(本機)
🤖 Generated with Claude Code