Spaces:
Runtime error
Runtime error
Tobias Cornille
commited on
Commit
•
77a096a
1
Parent(s):
94040eb
Fix bitmap file output
Browse files
app.py
CHANGED
@@ -267,7 +267,7 @@ def inds_to_segments_format(
|
|
267 |
):
|
268 |
panoptic_inds_array = panoptic_inds.numpy().astype(np.uint32)
|
269 |
bitmap_file = bitmap2file(panoptic_inds_array, is_segmentation_bitmap=True)
|
270 |
-
output_file.write(bitmap_file)
|
271 |
|
272 |
unique_inds = np.unique(panoptic_inds_array)
|
273 |
stuff_annotations = [
|
|
|
267 |
):
|
268 |
panoptic_inds_array = panoptic_inds.numpy().astype(np.uint32)
|
269 |
bitmap_file = bitmap2file(panoptic_inds_array, is_segmentation_bitmap=True)
|
270 |
+
output_file.write(bitmap_file.read())
|
271 |
|
272 |
unique_inds = np.unique(panoptic_inds_array)
|
273 |
stuff_annotations = [
|