Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
🐛 Fix: cnt
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerohertz authored Apr 14, 2023
1 parent 42da96f commit fdf8c1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions labelme2YOLOv5.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def labelme2YOLOv5(target, relJson):
for i in range(len(data['shapes'])):
tmp = data['shapes'][i]['points']
tar = []
cnt = 0
for j in tmp:
tar.append(j[0]/w)
tar.append(j[1]/h)
Expand Down Expand Up @@ -95,4 +94,4 @@ def labelme2YOLOv5(target, relJson):
print('No. Total GT Data: ', ttn + vtn)
print('=' * 30)

os.chdir(datasets + '/MakeData')
os.chdir(datasets + '/MakeData')

0 comments on commit fdf8c1f

Please sign in to comment.