Linzaer / Ultra-Light-Fast-Generic-Face-Detector-1MB

💎1MB lightweight face detection model (1MB轻量级人脸检测模型)
MIT License
7.17k stars 1.54k forks source link

ModuleNotFoundError: No module named 'tf' in convert_tensorflow.py #285

Open Learner00100 opened 1 year ago

Learner00100 commented 1 year ago

changed current working directory tf. and while running below command python3 ./convert_tensorflow.py --net_type RFB|slim

getting this error Traceback (most recent call last): File "/content/Ultra-Light-Fast-Generic-Face-Detector-1MB/tf/convert_tensorflow.py", line 5, in from tf.backend.utils import load_weight ModuleNotFoundError: No module named 'tf'

i tried import tensorflow as tf or changing all tf to tensorflow but getting same error no module named as ....

is convert_tensorflow.py code have any error? import sys is thier in code, but it is not used anywhere

kindly help me to slove issue

YilanWang commented 1 year ago

I think maybe the code is too old, maybe you can try import tensorflow.campat.v1 as tf