Spaces:
Running
on
Zero
Running
on
Zero
File size: 1,797 Bytes
c98003f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
ORIGINAL_GOLIATH_CLASSES = (
"Background",
"Apparel",
"Chair",
"Eyeglass_Frame",
"Eyeglass_Lenses",
"Face_Neck",
"Hair",
"Headset",
"Left_Foot",
"Left_Hand",
"Left_Lower_Arm",
"Left_Lower_Leg",
"Left_Shoe",
"Left_Sock",
"Left_Upper_Arm",
"Left_Upper_Leg",
"Lower_Clothing",
"Lower_Spandex",
"Right_Foot",
"Right_Hand",
"Right_Lower_Arm",
"Right_Lower_Leg",
"Right_Shoe",
"Right_Sock",
"Right_Upper_Arm",
"Right_Upper_Leg",
"Torso",
"Upper_Clothing",
"Visible_Badge",
"Lower_Lip",
"Upper_Lip",
"Lower_Teeth",
"Upper_Teeth",
"Tongue",
)
ORIGINAL_GOLIATH_PALETTE = [
[50, 50, 50],
[255, 218, 0],
[102, 204, 0],
[14, 0, 204],
[0, 204, 160],
[128, 200, 255],
[255, 0, 109],
[0, 255, 36],
[189, 0, 204],
[255, 0, 218],
[0, 160, 204],
[0, 255, 145],
[204, 0, 131],
[182, 0, 255],
[255, 109, 0],
[0, 255, 255],
[72, 0, 255],
[204, 43, 0],
[204, 131, 0],
[255, 0, 0],
[72, 255, 0],
[189, 204, 0],
[182, 255, 0],
[102, 0, 204],
[32, 72, 204],
[0, 145, 255],
[14, 204, 0],
[0, 128, 72],
[204, 0, 43],
[235, 205, 119],
[115, 227, 112],
[157, 113, 143],
[132, 93, 50],
[82, 21, 114],
]
## 6 classes to remove
REMOVE_CLASSES = (
"Eyeglass_Frame",
"Eyeglass_Lenses",
"Visible_Badge",
"Chair",
"Lower_Spandex",
"Headset",
)
## 34 - 6 = 28 classes left
GOLIATH_CLASSES = tuple(
[x for x in ORIGINAL_GOLIATH_CLASSES if x not in REMOVE_CLASSES]
)
GOLIATH_PALETTE = [
ORIGINAL_GOLIATH_PALETTE[idx]
for idx in range(len(ORIGINAL_GOLIATH_CLASSES))
if ORIGINAL_GOLIATH_CLASSES[idx] not in REMOVE_CLASSES
] |