airockchip / rknn_model_zoo

Apache License 2.0
1.05k stars 192 forks source link

Problem with cyclic import of Optimizer module #43

Closed eleprog closed 8 months ago

eleprog commented 1 year ago

image

ShakhzodbekYuldoshov commented 1 year ago

Same error have you found its solution. I am using conda environment with 3.8 python version installed tensorflow==2.2.0. There is no version less that that in my case. Using Ubuntu 20.04, python3.8, conda environment, tensorflow=2.2.0, torch=1.10.0(installed using conda install), torchvision=0.11.0, mxnet-cu101==1.5.0.

Can anyone help to solve it or do anyone have another environment where yolov5 converter worked?

rkunpeng commented 1 year ago

我也被这个问题困扰了多日,然后通过修改文件【rknn/base/acuitylib/init.py】注释掉两行代码,解决了该问题。具体位置如下图。 image

ShakhzodbekYuldoshov commented 1 year ago

@rkunpeng Worked! Thank you very much!