我在带有 2GB 模块的树莓派 pi4 上使用 yolov4 tiny。
我安装了几乎所有软件包并激活了环境。安装tensor-flow和tft-lite,但是当我执行 detector.py 代码时,我收到错误。
值错误:未找到内置操作码“RESIZE_BILINEAR”版本“3”的操作,注册失败。
我正在使用“theAIGuysCode”代码...
存储库链接 = https://github.com/theAIGuysCode/yolov4-custom-functions
最佳答案
问题是转换器版本和运行时版本不匹配。确保您使用recommended setup (tf 2.3.0):
Conda (Recommended)
Tensorflow CPU conda env create -f conda-cpu.yml conda activate yolov4-cpu
Tensorflow GPU conda env create -f conda-gpu.yml conda activate yolov4-gpu
Pip
TensorFlow CPU pip install -r requirements.txt
TensorFlow GPU pip install -r requirements-gpu.txt
检查已安装的版本(调用 print(tf.version) 或检查requirements.txt)并为您的 RPi 安装相同的版本.
关于tensorflow - 值错误: Didn't find op for builtin opcode 'RESIZE_BILINEAR' version '3' Registration failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65287265/