Spaces:
Sleeping
Sleeping
Commit
·
802c00d
1
Parent(s):
08f1bfe
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ from PIL import Image
|
|
18 |
from IPython.display import display
|
19 |
import io
|
20 |
import pathlib
|
21 |
-
|
22 |
RoboflowAPI = os.environ['RoboflowAPI']
|
23 |
RoboflowCocoAPI = os.environ['RoboflowCocoAPI']
|
24 |
|
@@ -61,7 +61,9 @@ test_record_fname = dataset + '/test/tortoise.tfrecord'
|
|
61 |
train_record_fname = dataset + '/train/tortoise.tfrecord'
|
62 |
label_map_pbtxt_fname = dataset + '/train/tortoise_label_map.pbtxt'
|
63 |
PATH_TO_LABELS = dataset + '/train/tortoise_label_map.pbtxt'
|
64 |
-
|
|
|
|
|
65 |
category_index = label_map_util.create_category_index_from_labelmap(PATH_TO_LABELS, use_display_name=False)
|
66 |
|
67 |
|
|
|
18 |
from IPython.display import display
|
19 |
import io
|
20 |
import pathlib
|
21 |
+
|
22 |
RoboflowAPI = os.environ['RoboflowAPI']
|
23 |
RoboflowCocoAPI = os.environ['RoboflowCocoAPI']
|
24 |
|
|
|
61 |
train_record_fname = dataset + '/train/tortoise.tfrecord'
|
62 |
label_map_pbtxt_fname = dataset + '/train/tortoise_label_map.pbtxt'
|
63 |
PATH_TO_LABELS = dataset + '/train/tortoise_label_map.pbtxt'
|
64 |
+
with open(PATH_TO_LABELS, 'r') as f:
|
65 |
+
contents = f.read()
|
66 |
+
print(contents)
|
67 |
category_index = label_map_util.create_category_index_from_labelmap(PATH_TO_LABELS, use_display_name=False)
|
68 |
|
69 |
|