-
Notifications
You must be signed in to change notification settings - Fork 1.3k
i execute this code but i have those erros #560
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
Comments
i use this code for TF recorde """ Sample TensorFlow XML-to-TFRecord converter usage: generate_tfrecord.py [-h] [-x XML_DIR] [-l LABELS_PATH] [-o OUTPUT_PATH] [-i IMAGE_DIR] [-c CSV_PATH] optional arguments: import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # Suppress TensorFlow logging (1) Initiate argument parserparser = argparse.ArgumentParser( args = parser.parse_args() if args.image_dir is None: label_map = label_map_util.load_labelmap(args.labels_path) def xml_to_csv(path):
def class_text_to_int(row_label): def split(df, group): def create_tf_example(group, path):
def main(_):
if name == 'main': whene i execute it by those commands !python {SCRIPTS_PATH + '/generate_tfrecord.py'} -x {IMAGE_PATH + '/train'} -l {ANNOTATION_PATH + '/label_map.pbtxt'} -o {ANNOTATION_PATH + '/train.record'} i get those errors Traceback (most recent call last): what should i do |
No description provided.
The text was updated successfully, but these errors were encountered: