-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathobject_data.py
More file actions
608 lines (596 loc) · 18.1 KB
/
Copy pathobject_data.py
File metadata and controls
608 lines (596 loc) · 18.1 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
from enum import Enum
class OBJECT_DATA(Enum):
DEFAULT = "default"
def get_object_dicts(key):
if key == OBJECT_DATA.DEFAULT:
obj = STARTING_OBJECTS()
else:
raise Exception("Object class does not exist")
return obj.return_items()
class OBJECT_CLASS:
def __init__(self):
self.damage_dict = {}
self.object_list = []
self.backgrounds = []
def return_items(self):
return self.object_list, self.damage_dict, self.backgrounds
class STARTING_OBJECTS(OBJECT_CLASS):
def __init__(self):
super().__init__()
self.damage_dict = {
"apple": [
"bruised",
"wrinkled",
"rotten",
"moldy",
"dented",
"discolored",
"soft spots",
],
"banana": [
"bruised",
"overripe",
"blackened",
"split peel",
"mushy",
"spotted",
],
"carrot": ["softened", "cracked", "dehydrated", "spotted", "moldy", "bent"],
"potato": [
"sprouted",
"rotting",
"green spots",
"wrinkled",
"moldy",
"soft spots",
],
"egg": [
"cracked",
"leaking",
"discolored shell",
"dented",
"rotten",
"thin shell",
],
"bread": ["stale", "moldy", "crumbling", "burnt", "hardened", "soggy"],
"cheese": [
"moldy",
"dried out",
"cracked",
"discolored",
"sweating",
"crumbly",
],
"butter": ["rancid", "melted", "discolored", "greasy residue", "hardened"],
"milk carton": [
"dented",
"leaking",
"stained",
"faded label",
"torn packaging",
],
"chocolate bar": ["melted", "bloomed", "crumbled", "discolored"],
"cookies": ["crumbled", "stale", "burnt", "moldy"],
"apple slice": ["oxidized", "bruised", "dried out"],
"orange": ["dried skin", "moldy", "bruised", "discolored"],
"grape": ["wrinkled", "moldy", "shriveled"],
"strawberry": ["moldy", "bruised", "shrinking"],
"lettuce": ["wilting", "yellowing", "rotting"],
"tomato": ["soft spots", "cracked skin", "moldy"],
"onion": ["sprouted", "dried layers", "rotting"],
"garlic": ["sprouted", "dried out", "moldy"],
"hammer": ["rusty", "chipped", "bent", "dented", "scratched", "loose head"],
"screwdriver": ["worn tip", "rusty", "scratched", "bent", "cracked handle"],
"wrench": ["rusty", "scratched", "dented", "worn edges", "corroded"],
"pliers": ["rusty", "loose grip", "scratched", "chipped", "stiff joint"],
"saw": ["rusty blade", "dull teeth", "chipped handle", "bent blade"],
"drill": [
"worn chuck",
"scratched casing",
"broken switch",
"dented battery",
],
"tape measure": ["cracked casing", "faded markings", "stuck mechanism"],
"paintbrush": ["frayed bristles", "stiffened bristles", "dried paint"],
"shovel": ["rusty blade", "dented handle", "worn grip"],
"rake": ["bent tines", "rusty", "loose handle"],
"ball": ["deflated", "scuffed", "punctured", "faded", "cracked surface"],
"doll": [
"torn clothing",
"missing eye",
"stained",
"frayed hair",
"loose limbs",
],
"teddy bear": [
"ripped seam",
"matted fur",
"faded color",
"stained",
"missing stuffing",
],
"yo-yo": ["scratched", "cracked", "tangled string", "chipped edge"],
"kite": ["torn fabric", "bent frame", "frayed string", "missing tail"],
"toy car": [
"scratched paint",
"missing wheel",
"cracked body",
"loose parts",
],
"board game": ["torn box", "missing pieces", "faded board", "bent cards"],
"lamp": ["flickering", "scratched base", "broken switch"],
"chair": ["scratched wood", "stained cushion", "wobbly leg"],
"table": ["scratched surface", "dented corner", "water stains"],
"window": ["scratched glass", "cracked", "foggy"],
"mirror": ["scratched", "chipped edge", "cloudy", "stained surface"],
"carpet": ["stained", "frayed edges", "worn patches"],
"toothbrush": ["frayed bristles", "stained", "bent handle", "worn grip"],
"toothpaste tube": ["dented", "leaking", "crumpled", "worn cap"],
"wallet": [
"worn edges",
"cracked leather",
"faded color",
"frayed stitching",
],
"belt": ["cracked leather", "frayed edges", "worn holes", "peeling finish"],
"watch": [
"scratched face",
"broken strap",
"faded markings",
"cracked casing",
],
"glasses": [
"scratched lenses",
"bent frame",
"loose arms",
"cloudy lenses",
],
"bicycle": ["flat tire", "rusty chain", "scratched frame", "worn seat"],
"car tire": ["bald tread", "cracked rubber", "punctured", "worn sidewall"],
"helmet": ["scratched shell", "cracked foam", "loose straps"],
"tent": ["torn fabric", "bent poles", "moldy spots"],
"grill": ["rusty grates", "blackened residue", "scratched body"],
"garden hose": ["cracked", "leaking", "kinked", "faded"],
"jeans": ["worn knees", "frayed hem", "ripped pocket", "faded"],
"jacket": ["broken zipper", "faded color", "torn lining"],
"gloves": ["frayed fingers", "stretched out", "stained"],
"hat": ["faded color", "stretched", "frayed edges"],
"scarf": ["pilled fabric", "snagged threads", "stained"],
"socks": ["hole in toe", "stretched elastic", "faded"],
"shoes": ["worn sole", "scuffed leather", "torn fabric", "faded color"],
"phone": ["cracked screen", "scratched back", "worn buttons"],
"laptop": ["scratched casing", "cracked hinge", "faded keyboard keys"],
"TV remote": ["worn-out buttons", "cracked case", "faded labels"],
"headphones": ["frayed cable", "scratched ear cups", "loose padding"],
"key": ["bent", "worn teeth", "rusty", "scratched surface"],
"battery": ["leaking", "corroded", "dented", "faded label"],
"light bulb": ["burnt out", "cracked", "blackened", "loose filament"],
"smooth wood plank Texture": [
"cracked",
"splintered",
"warped",
"knotted",
"rotten",
"scratched",
"stained",
],
"concrete Texture": [
"cracked",
"pitted",
"stained",
"eroded",
"chipped",
"weathered",
],
"smooth glass Texture": [
"scratched",
"cracked",
"chipped",
"foggy",
"stained",
"shattered",
],
"smooth metal Texture": [
"rusted",
"scratched",
"dented",
"corroded",
"pitted",
"tarnished",
],
"fabric Texture": [
"frayed",
"torn",
"stained",
"faded",
"pilled",
"snagged",
],
"paper Texture": [
"torn",
"wrinkled",
"stained",
"yellowed",
"brittle",
"moldy",
],
"plastic Texture": [
"scratched",
"cracked",
"discolored",
"warped",
"brittle",
"faded",
],
"smooth tile Texture": [
"cracked",
"chipped",
"stained",
"scratched",
"dull",
"loose",
],
"carpet Texture": [
"stained",
"frayed",
"worn",
"faded",
"pilled",
"matted",
],
"asphalt Texture": [
"cracked",
"pitted",
"faded",
"eroded",
"oil-stained",
"uneven",
],
"stone tile Texture": [
"chipped",
"cracked",
"eroded",
"stained",
"pitted",
"weathered",
],
"leather Texture": [
"cracked",
"faded",
"scratched",
"stained",
"peeling",
"dried out",
],
"cork Texture": [
"cracked",
"crumbled",
"stained",
"dried out",
"warped",
"pitted",
],
"rubber floor Texture": [
"cracked",
"brittle",
"discolored",
"stiffened",
"melted",
"torn",
],
"velvet Texture": [
"crushed",
"faded",
"stained",
"pilled",
"torn",
"frayed",
],
"linen Texture": [
"wrinkled",
"stained",
"faded",
"torn",
"frayed",
"pilled",
],
"mesh Texture": [
"frayed",
"torn",
"snagged",
"discolored",
"brittle",
"stretched",
],
"synthetic fiber Texture": [
"frayed",
"torn",
"stained",
"faded",
"pilled",
"melted",
],
"fur Texture": ["matted", "shedding", "stained", "torn", "faded", "dull"],
"denim Texture": ["frayed", "torn", "stained", "faded", "pilled", "worn"],
"carbon fiber Texture": [
"frayed",
"chipped",
"cracked",
"delaminated",
"scratched",
"discolored",
],
"wallpaper Texture": [
"peeled",
"torn",
"stained",
"faded",
"bubbled",
"wrinkled",
],
"plywood Texture": [
"warped",
"splintered",
"chipped",
"stained",
"delaminated",
"cracked",
],
"stainless steel Texture": [
"scratched",
"dented",
"stained",
"scuffed",
"fingerprinted",
"corroded",
],
"brushed aluminum Texture": [
"scratched",
"dented",
"stained",
"faded",
"oxidized",
"pitted",
],
"corrugated metal Texture": [
"dented",
"rusted",
"bent",
"scratched",
"corroded",
"pitted",
],
"smooth ceramic tile Texture": [
"chipped",
"cracked",
"stained",
"crazed",
"dull",
"scratched",
],
"mirror Texture": [
"scratched",
"cracked",
"foggy",
"stained",
"warped",
"discolored",
],
"chalkboard Texture": [
"scratched",
"smudged",
"cracked",
"chipped",
"stained",
"uneven",
],
"whiteboard Texture": [
"scratched",
"stained",
"ghosting",
"cracked",
"faded",
"dented",
],
"laminate Texture": [
"scratched",
"chipped",
"peeled",
"bubbled",
"stained",
"warped",
],
"hemp fabric Texture": [
"frayed",
"torn",
"faded",
"pilled",
"stained",
"snagged",
],
"rattan Texture": [
"splintered",
"frayed",
"cracked",
"stained",
"brittle",
"discolored",
],
"woven mat Texture": [
"frayed",
"torn",
"faded",
"loose fibers",
"stained",
"worn",
],
"parquet flooring Texture": [
"scratched",
"warped",
"faded",
"chipped",
"stained",
"dull",
],
}
self.object_list = [
"apple",
"banana",
"carrot",
"potato",
"egg",
"bread",
"cheese",
"butter",
"milk carton",
"chocolate bar",
"cookies",
"apple slice",
"orange",
"grape",
"strawberry",
"lettuce",
"tomato",
"onion",
"garlic",
"hammer",
"screwdriver",
"wrench",
"pliers",
"saw",
"drill",
"tape measure",
"paintbrush",
"shovel",
"rake",
"ball",
"doll",
"teddy bear",
"yo-yo",
"kite",
"toy car",
"board game",
"lamp",
"chair",
"table",
"window",
"mirror",
"carpet",
"toothbrush",
"toothpaste tube",
"wallet",
"belt",
"watch",
"glasses",
"bicycle",
"car tire",
"helmet",
"tent",
"grill",
"garden hose",
"jeans",
"jacket",
"gloves",
"hat",
"scarf",
"socks",
"shoes",
"phone",
"laptop",
"TV remote",
"headphones",
"key",
"battery",
"light bulb",
"smooth wood plank Texture",
"concrete Texture",
"smooth glass Texture",
"smooth metal Texture",
"fabric Texture",
"paper Texture",
"plastic Texture",
"smooth tile Texture",
"carpet Texture",
"asphalt Texture",
"stone tile Texture",
"leather Texture",
"cork Texture",
"rubber floor Texture",
"velvet Texture",
"linen Texture",
"mesh Texture",
"synthetic fiber Texture",
"fur Texture",
"denim Texture",
"carbon fiber Texture",
"wallpaper Texture",
"plywood Texture",
"stainless steel Texture",
"brushed aluminum Texture",
"corrugated metal Texture",
"smooth ceramic tile Texture",
"mirror Texture",
"chalkboard Texture",
"whiteboard Texture",
"laminate Texture",
"hemp fabric Texture",
"rattan Texture",
"woven mat Texture",
"parquet flooring Texture",
]
self.backgrounds = [
"wood",
"marble",
"concrete",
"glass",
"metal",
"fabric",
"paper",
"plastic",
"brick",
"tile",
"carpet",
"grass",
"sand",
"gravel",
"asphalt",
"stone",
"leather",
"foam",
"cork",
"bamboo",
"rubber",
"velvet",
"linen",
"canvas",
"mesh",
"synthetic fiber",
"fur",
"denim",
"carbon fiber",
"granite",
"pebbles",
"water",
"snow",
"ice",
"clouds",
"wallpaper",
"plywood",
"wire mesh",
"stainless steel",
"brushed aluminum",
"corrugated metal",
"ceramic",
"mirror",
"painted wall",
"chalkboard",
"whiteboard",
"laminate",
"hemp fabric",
"rattan",
"woven mat",
"terrazzo",
"parquet flooring",
"tarpaulin",
"fleece",
]