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

in <module> flags = tf.app.flags AttributeError: module 'tensorflow' has no attribute 'app' #122

Open
Meharaj002 opened this issue Jan 10, 2021 · 4 comments

Comments

@Meharaj002
Copy link

tf_version= 2.4.0
how can i solve this problem? please help!

@liamhan0905
Copy link

I'm using tf 2.2 and having the same issue

@liamhan0905
Copy link

So I was able to resolve this issue by just running the command on the IDE. I have vscode.

@Meharaj002
Copy link
Author

@liamhan0905 i use vscode too! and the error i got is from vscode!.. would you like to share how did you solve it? or how can I contact you?

@liamhan0905
Copy link

happy to help. Let's keep the chat on here so others can also take a look if they have similar issues. Below are the code that I'm running on vscode. I'm using a virtualenv but that shouldn't matter too much

run the code for test data
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=data/test.record --image_dir=images/

run the code for train data
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=data/train.record --image_dir=images/

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