Skip to content

Instantly share code, notes, and snippets.

@AyaanZaveri
Created May 22, 2021 01:11
Show Gist options
  • Save AyaanZaveri/b65992838ca74966ec17698d54b5ffed to your computer and use it in GitHub Desktop.
Save AyaanZaveri/b65992838ca74966ec17698d54b5ffed to your computer and use it in GitHub Desktop.
#Use Proxima Nova Font
!mv "/content/models/research/object_detection/Proxima Nova Bold.ttf" /usr/share/fonts/truetype
#Install Packages
%%bash
sudo apt install -y protobuf-compiler
cd models/research/
protoc object_detection/protos/*.proto --python_out=.
cp object_detection/packages/tf2/setup.py .
python -m pip install .
#MORE Dependencies To Import!
from object_detection.utils import label_map_util
from object_detection.utils import visualization_utils as viz_utils
from object_detection.utils import ops as utils_ops
%matplotlib inline
#Labels
PATH_TO_LABELS = './models/research/object_detection/data/mscoco_label_map.pbtxt'
category_index = label_map_util.create_category_index_from_labelmap(PATH_TO_LABELS, use_display_name=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment