Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Learner00100 opened this issue Mar 20, 2023 · 1 comment
Open

Comments

@Learner00100
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants