Skip to content

Instantly share code, notes, and snippets.

@afaqueumer
Created January 8, 2023 07:57
Show Gist options
  • Select an option

  • Save afaqueumer/b40e1565089ae18c56c91fa990538b4e to your computer and use it in GitHub Desktop.

Select an option

Save afaqueumer/b40e1565089ae18c56c91fa990538b4e to your computer and use it in GitHub Desktop.
# Download generate_tfrecord.py
tfrecord_url =
wget.download(tfrecord_url, paths['scripts_path'])
# Generate Records
!python {files['tf_record_script']} -x {os.path.join(paths['image_path'], 'train')} -l {files['labelmap']} -o {os.path.join(paths['annotation_path'], 'train.record')}
!python {files['tf_record_script']} -x {os.path.join(paths['image_path'], 'test')} -l {files['labelmap']} -o {os.path.join(paths['annotation_path'], 'test.record')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment