You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.py 1.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. """
  2. /**
  3. * Copyright 2020 Zhejiang Lab. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. * =============================================================
  17. */
  18. """
  19. # coding:utf-8
  20. import json
  21. host = ''
  22. port = 6379
  23. db = 0
  24. password = ''
  25. # annotation
  26. queue = 'annotation_task_queue'
  27. annotationStartQueue = 'annotation_processing_queue'
  28. annotationFinishQueue = 'annotation_finished_queue'
  29. # imagenet
  30. imagenetTaskQueue = 'imagenet_task_queue'
  31. imagenetStartQueue = 'imagenet_processing_queue'
  32. imagenetFinishQueue = 'imagenet_finished_queue'
  33. # ofrecord
  34. ofrecordTaskQueue = 'ofrecord_task_queue'
  35. ofrecordStartQueue = 'ofrecord_processing_queue'
  36. ofrecordFinishQueue = 'ofrecord_finished_queue'
  37. # track
  38. trackTaskQueue = 'track_task_queue'
  39. trackStartQueue = 'track_processing_queue'
  40. trackFinishQueue = 'track_finished_queue'
  41. # videosample
  42. videoPendingQueue = "videoSample_unprocessed"
  43. videoStartQueue = "videoSample_processing"
  44. videoFinishQueue = "videoSample_finished"
  45. videoFailedQueue = "videoSample_failed"
  46. # imgprocess
  47. imgProcessTaskQueue = 'imgProcess_unprocessed'
  48. imgProcessFinishQueue = 'imgProcess_finished'
  49. imgProcessStartQueue = "imgProcess_processing"
  50. imgProcessFailedQueue = "imgProcess_failed"
  51. threadCount = 5
  52. configPath = "/root/algorithm/config.json"
  53. sign = "/root/algorithm/sign"
  54. def loadJsonData(path):
  55. with open(path, 'r', encoding='utf8') as fp:
  56. jsonData = json.load(fp)
  57. return jsonData

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能

Contributors (1)