Skip to content

Commit

Permalink
Fixed X and Y axis in coco.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilavaran committed Jan 5, 2025
1 parent a313db7 commit 5b9b622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion tools/upscale_coco/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def showAnns(self, anns):
v = kp[2::3]
for sk in sks:
if np.all(v[sk] > 0):
plt.plot(x[sk], y[sk], linewidth=3, color=c)
plt.plot(x[sk], y[sk], linewidth=3, color=c,label=f"keypoint {sk}")
plt.plot(
x[v > 0],
y[v > 0],
Expand All @@ -336,6 +336,10 @@ def showAnns(self, anns):
markeredgecolor=c,
markeredgewidth=2,
)
plt.xlabel("X Coordinate")
plt.ylabel("Y Coordinate")
print("Script is running correctly!")
plt.show()
p = PatchCollection(
polygons,
facecolor=color,
Expand Down

0 comments on commit 5b9b622

Please sign in to comment.