ade20k.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # -------------------------------------------------------------------------
  2. # Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
  3. #
  4. # NVIDIA CORPORATION & AFFILIATES and its licensors retain all intellectual
  5. # property and proprietary rights in and to this software, related
  6. # documentation and any modifications thereto. Any use, reproduction,
  7. # disclosure or distribution of this software and related documentation
  8. # without an express license agreement from NVIDIA CORPORATION is strictly
  9. # prohibited.
  10. #
  11. # Written by Jiarui Xu
  12. # -------------------------------------------------------------------------
  13. # Modified by Jilan Xu
  14. # -------------------------------------------------------------------------
  15. from mmseg.datasets import DATASETS
  16. from mmseg.datasets import ADE20KDataset as _ADE20KDataset
  17. @DATASETS.register_module(force=True)
  18. class ADE20KDataset(_ADE20KDataset):
  19. CLASSES = (
  20. 'wall', 'building', 'sky', 'floor', 'tree', 'ceiling', 'road', 'bed ',
  21. 'windowpane', 'grass', 'cabinet', 'sidewalk', 'person', 'earth',
  22. 'door', 'table', 'mountain', 'plant', 'curtain', 'chair', 'car',
  23. 'water', 'painting', 'sofa', 'shelf', 'house', 'sea', 'mirror', 'rug',
  24. 'field', 'armchair', 'seat', 'fence', 'desk', 'rock', 'wardrobe',
  25. 'lamp', 'bathtub', 'railing', 'cushion', 'base', 'box', 'column',
  26. 'signboard', 'chest of drawers', 'counter', 'sand', 'sink',
  27. 'skyscraper', 'fireplace', 'refrigerator', 'grandstand', 'path',
  28. 'stairs', 'runway', 'case', 'pool table', 'pillow', 'screen door',
  29. 'stairway', 'river', 'bridge', 'bookcase', 'blind', 'coffee table',
  30. 'toilet', 'flower', 'book', 'hill', 'bench', 'countertop', 'stove',
  31. 'palm', 'kitchen island', 'computer', 'swivel chair', 'boat', 'bar',
  32. 'arcade machine', 'hovel', 'bus', 'towel', 'light', 'truck', 'tower',
  33. 'chandelier', 'awning', 'streetlight', 'booth', 'television receiver',
  34. 'airplane', 'dirt track', 'apparel', 'pole', 'land', 'bannister',
  35. 'escalator', 'ottoman', 'bottle', 'buffet', 'poster', 'stage', 'van',
  36. 'ship', 'fountain', 'conveyer belt', 'canopy', 'washer', 'plaything',
  37. 'swimming pool', 'stool', 'barrel', 'basket', 'waterfall', 'tent',
  38. 'bag', 'minibike', 'cradle', 'oven', 'ball', 'food', 'step', 'tank',
  39. 'trade name', 'microwave', 'pot', 'animal', 'bicycle', 'lake',
  40. 'dishwasher', 'screen', 'blanket', 'sculpture', 'hood', 'sconce',
  41. 'vase', 'traffic light', 'tray', 'ashcan', 'fan', 'pier', 'crt screen',
  42. 'plate', 'monitor', 'bulletin board', 'shower', 'radiator', 'glass',
  43. 'clock', 'flag')