mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 12:36:36 +00:00
add dataset-visualiser.py
This commit is contained in:
@@ -105,7 +105,7 @@ def read_bbox_oriented(width, height, s):
|
||||
if c_x > 1 or c_y > 1 or c_w > 1 or c_h > 1:
|
||||
print('Values are out of bounds')
|
||||
else:
|
||||
yolo_lines.append(f'1 {c_x} {c_y} {c_w} {c_h}\n')
|
||||
yolo_lines.append(f'2 {c_x} {c_y} {c_w} {c_h}\n')
|
||||
return yolo_lines
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user