Coverage for orchestr_ant_ion / yolo / core / constants.py: 0%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-19 08:36 +0000

1"""Model constants for class names and colors.""" 

2 

3from __future__ import annotations 

4 

5import numpy as np 

6 

7 

8CLASS_NAMES = [ 

9 "person", 

10 "bicycle", 

11 "car", 

12 "motorcycle", 

13 "airplane", 

14 "bus", 

15 "train", 

16 "truck", 

17 "boat", 

18 "traffic light", 

19 "fire hydrant", 

20 "stop sign", 

21 "parking meter", 

22 "bench", 

23 "bird", 

24 "cat", 

25 "dog", 

26 "horse", 

27 "sheep", 

28 "cow", 

29 "elephant", 

30 "bear", 

31 "zebra", 

32 "giraffe", 

33 "backpack", 

34 "umbrella", 

35 "handbag", 

36 "tie", 

37 "suitcase", 

38 "frisbee", 

39 "skis", 

40 "snowboard", 

41 "sports ball", 

42 "kite", 

43 "baseball bat", 

44 "baseball glove", 

45 "skateboard", 

46 "surfboard", 

47 "tennis racket", 

48 "bottle", 

49 "wine glass", 

50 "cup", 

51 "fork", 

52 "knife", 

53 "spoon", 

54 "bowl", 

55 "banana", 

56 "apple", 

57 "sandwich", 

58 "orange", 

59 "broccoli", 

60 "carrot", 

61 "hot dog", 

62 "pizza", 

63 "donut", 

64 "cake", 

65 "chair", 

66 "couch", 

67 "potted plant", 

68 "bed", 

69 "dining table", 

70 "toilet", 

71 "tv", 

72 "laptop", 

73 "mouse", 

74 "remote", 

75 "keyboard", 

76 "cell phone", 

77 "microwave", 

78 "oven", 

79 "toaster", 

80 "sink", 

81 "refrigerator", 

82 "book", 

83 "clock", 

84 "vase", 

85 "scissors", 

86 "teddy bear", 

87 "hair drier", 

88 "toothbrush", 

89] 

90 

91_rng = np.random.default_rng(42) 

92COLORS = _rng.integers(0, 255, size=(len(CLASS_NAMES), 3), dtype=np.uint8)