Spaces:
Running
on
Zero
Running
on
Zero
hugohabicht01
commited on
Commit
·
c45a224
1
Parent(s):
19284aa
make the axis smaller in the vis
Browse files
utils.py
CHANGED
@@ -334,8 +334,10 @@ def visualize_boxes_annotated(image: np.ndarray | Image.Image, boxes: list[Bound
|
|
334 |
ax.imshow(image)
|
335 |
|
336 |
# Set x-axis and y-axis ticks every 50 units
|
337 |
-
ax.set_xticks(np.arange(0, image.shape[1],
|
338 |
-
ax.set_yticks(np.arange(0, image.shape[0],
|
|
|
|
|
339 |
|
340 |
|
341 |
# Define a list of colors for the boxes
|
|
|
334 |
ax.imshow(image)
|
335 |
|
336 |
# Set x-axis and y-axis ticks every 50 units
|
337 |
+
ax.set_xticks(np.arange(0, image.shape[1], 50))
|
338 |
+
ax.set_yticks(np.arange(0, image.shape[0], 50))
|
339 |
+
# Make tick labels smaller
|
340 |
+
ax.tick_params(axis='both', which='both', labelsize=4)
|
341 |
|
342 |
|
343 |
# Define a list of colors for the boxes
|