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

Error in Roboflow-TensorFlow2-Object-Detection.ipynb #302

Open
1 of 2 tasks
dldiab15 opened this issue Aug 14, 2024 · 0 comments
Open
1 of 2 tasks

Error in Roboflow-TensorFlow2-Object-Detection.ipynb #302

dldiab15 opened this issue Aug 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dldiab15
Copy link

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

Notebook name

Roboflow-TensorFlow2-Object-Detection.ipynb

Bug

Screenshot from 2024-08-14 10-38-25

Environment

Google Colab

Minimal Reproducible Example

#prepare
pipeline_fname = '/content/models/research/deploy/' + base_pipeline_file
fine_tune_checkpoint = '/content/models/research/deploy/' + model_name + '/checkpoint/ckpt-0'

Update the path to your label map file

label_map_pbtxt_fname = '/content/models/research/deploy/Beyond-Vision-Detection-1/train/cells_label_map.pbtxt' # Adjust this path if necessary

def get_num_classes(pbtxt_fname):
from object_detection.utils import label_map_util
label_map = label_map_util.load_labelmap(pbtxt_fname)
categories = label_map_util.convert_label_map_to_categories(
label_map, max_num_classes=90, use_display_name=True)
category_index = label_map_util.create_category_index(categories)
return len(category_index.keys())
num_classes = get_num_classes(label_map_pbtxt_fname)

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@dldiab15 dldiab15 added the bug Something isn't working label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant