raccoon_dataset icon indicating copy to clipboard operation
raccoon_dataset copied to clipboard

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

Open Meharaj002 opened this issue 3 years ago • 4 comments

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

Meharaj002 avatar Jan 10 '21 07:01 Meharaj002

I'm using tf 2.2 and having the same issue

liamhan0905 avatar Jan 13 '21 01:01 liamhan0905

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

liamhan0905 avatar Jan 13 '21 01:01 liamhan0905

@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?

Meharaj002 avatar Jan 13 '21 05:01 Meharaj002

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/

liamhan0905 avatar Jan 13 '21 06:01 liamhan0905