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

create_kitti_tf_record.py #3239

Closed
PythonImageDeveloper opened this issue Jan 24, 2018 · 7 comments
Closed

create_kitti_tf_record.py #3239

PythonImageDeveloper opened this issue Jan 24, 2018 · 7 comments

Comments

@PythonImageDeveloper
Copy link

hi
when i run this code , convert kitti to tfrecord , i get this error :
#################################
python3 dataset_tools/create_kitti_tf_record.py \

    --data_dir=kitti \
    --output_path=kitti.record

Traceback (most recent call last):
File "dataset_tools/create_kitti_tf_record.py", line 65, in
tf.app.flags.DEFINE_list('classes_to_use', ['Car', 'Pedestrian' , 'DontCare'],
AttributeError: module 'tensorflow.python.platform.flags' has no attribute 'DEFINE_list'
#############################################
data_dir=kitti is my dataset , which in this folder is training and labels .
what is this error ?
in folder data : kitti_label_map.pbtxt
item {
id: 1
name: 'Car'
}

item {
id: 2
name: 'Pedestrian'
}

item {
id: 3
name: 'DontCare'
}

@SamDon87
Copy link

SamDon87 commented Jan 25, 2018

Change the line
tf.app.flags.DEFINE_list to
tf.app.flags.DEFINE_string
in dataset_tools/create_kitti_tf_record.py

@tatatodd
Copy link

Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version. Also, did you compile from source or install a binary? Make sure you also include the exact command if possible to produce the output included in your test case. If you are unclear what to include see the issue template displayed in the Github new issue template.

We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks!

@PythonImageDeveloper
Copy link
Author

Ubuntu 16.04
Tensorow 1.4 binary

@PythonImageDeveloper
Copy link
Author

I also some question :
When i used 3 id in the kitti–label-map.pbtxt, so this be trained only 3 class automatically or be needed to change some modification in some files?

@tatatodd
Copy link

What is the full stack trace of the error?

@tatatodd tatatodd added the stat:awaiting response Waiting on input from the contributor label Jan 26, 2018
@PythonImageDeveloper
Copy link
Author

thanks for SamDon87 ,
i Change the line , my problem is ok.
tf.app.flags.DEFINE_list to
tf.app.flags.DEFINE_string
in dataset_tools/create_kitti_tf_record.py

i have question also ,
i want to detection only pedestrian , car , cyclist , when i want to convert kitti to tfrecord in dataset_tools\create_kitti_tf_record.py , If I change that part classes_to_use', ['Car', 'Pedestrian' , 'cyclist' ] , just only train for those classes? Is it necessary to put " dontcare" in this flag ? in the data\kitti_label_map.pbtxt , also is it necessary to put dontcare ?

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Waiting on input from the contributor label Apr 6, 2018
@tensorflowbutler
Copy link
Member

Hi There,
We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing.
If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.

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

4 participants